Add -ffreestanding

This commit is contained in:
matt 2003-09-30 18:58:39 +00:00
parent 0a7cc0d7d1
commit 8881697abd
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2001/12/12 12:24:25 lukem Exp $
# $NetBSD: Makefile,v 1.9 2003/09/30 18:58:39 matt Exp $
NOMAN= # defined
@ -21,6 +21,7 @@ SRCS+= boot.c clock.c com.c conf.c cons.c devopen.c fd.c
SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c video.c
CFLAGS+= -ffreestanding
AFLAGS= -x assembler-with-cpp -traditional-cpp
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2001/12/12 01:49:50 tv Exp $
# $NetBSD: Makefile,v 1.3 2003/09/30 18:58:39 matt Exp $
S= ${.CURDIR}/../../../..
@ -8,6 +8,8 @@ CPPFLAGS+= -D_STANDALONE
CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -ffreestanding
CLEANFILES+= machine powerpc
.BEGIN: machine powerpc