Cleanup CFALGS usage here

Only define the CFLAGS we need.
SSP_CFLAGS is now defined globally, no need to define it here.
Define -D_STANDALONE globally for src/stand builds.

Sponsored by: Netflix
This commit is contained in:
imp 2017-12-02 00:07:04 +00:00
parent 64c33f341f
commit f6a73d1d00
2 changed files with 2 additions and 4 deletions

View File

@ -39,7 +39,7 @@ LIBSA32= ${BOOTOBJ}/libsa32/libsa32.a
.endif
# Standard options:
CFLAGS+= -I${SASRC}
CFLAGS+= -I${SASRC} -D_STANDALONE
CFLAGS+= -I${SYSDIR}
# Filesystem support

View File

@ -2,8 +2,6 @@
.include <bsd.init.mk>
SSP_CFLAGS=
PROG= boot1.elf
NEWVERSWHAT= "Open Firmware boot block" ${MACHINE_ARCH}
INSTALLFLAGS= -b
@ -13,7 +11,7 @@ SRCS= boot1.c ashldi3.c syncicache.c
MAN=
CFLAGS= -I${LDRSRC} -I${SYSDIR} -I${SASRC} -D_STANDALONE
CFLAGS+=-I${LDRSRC}
LDFLAGS=-nostdlib -static -Wl,-N
.PATH: ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR}