Add -ffreestanding
This commit is contained in:
parent
0a7cc0d7d1
commit
8881697abd
|
@ -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
|
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+= 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
|
SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c video.c
|
||||||
|
|
||||||
|
CFLAGS+= -ffreestanding
|
||||||
AFLAGS= -x assembler-with-cpp -traditional-cpp
|
AFLAGS= -x assembler-with-cpp -traditional-cpp
|
||||||
|
|
||||||
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
|
CPPFLAGS= -nostdinc -I${.OBJDIR} -I${.CURDIR}/../mkbootimage -I${S}
|
||||||
|
|
|
@ -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}/../../../..
|
S= ${.CURDIR}/../../../..
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@ CPPFLAGS+= -D_STANDALONE
|
||||||
CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
|
CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
|
||||||
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||||
|
|
||||||
|
CFLAGS+= -ffreestanding
|
||||||
|
|
||||||
CLEANFILES+= machine powerpc
|
CLEANFILES+= machine powerpc
|
||||||
|
|
||||||
.BEGIN: machine powerpc
|
.BEGIN: machine powerpc
|
||||||
|
|
Loading…
Reference in New Issue