Buildsystem changes for GCC

-Makefile updates
-Update mkdep
-Build fixes/warning cleanups for some programs
-Restore leading underscores on global syms in kernel asm files
-Increase ramdisk size
This commit is contained in:
Arun Thomas
2010-05-19 13:24:15 +00:00
parent bcdaf033b5
commit b0159ad168
40 changed files with 419 additions and 354 deletions

View File

@@ -12,13 +12,19 @@ SRCS+= start.c table.c main.c proc.c \
DPADD+= ${LIBTIMERS} ${LIBSYS}
LDADD+= -ltimers -lsys
LDFLAGS+= -.o
.if ${COMPILER_TYPE} == "ack"
LDFLAGS+= -.o
.elif ${COMPILER_TYPE} == "gnu"
CPPFLAGS+= -fno-builtin -ffreestanding -fno-stack-protector
LDFLAGS+= -T arch/${ARCH}/kernel.lds
LDFLAGS+= -nostdlib
DPADD+= ${LIBC}
LDADD+= -lgcc -lc -lgcc
.endif
CPPFLAGS+= -I${.CURDIR}/arch/${ARCH}/include -I${MINIXSRCDIR}
AFLAGS+= -I${.CURDIR}/arch/${ARCH}/include -I${MINIXSRCDIR}
#Tell ASMCONV to prepend underscores to symbols
ASMCONVFLAGS+= -u
INSTALLFLAGS+= -S 0
BINDIR= /usr/sbin
MAN=