Add -I${S} for <lib/libsa/stand.h> inclusion, and add

include of ../Makefile.booters for -ffreestanding.
This commit is contained in:
he 2003-10-30 22:23:51 +00:00
parent da61544d69
commit 4f5db11dc0

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2003/10/26 07:25:37 lukem Exp $
# $NetBSD: Makefile,v 1.15 2003/10/30 22:23:51 he Exp $
NOMAN= # defined
@ -41,7 +41,7 @@ CPPFLAGS+= -DBOOT=\"$(BOOT)\" -DBOOT_VERS=\"$(VERSION)\"
CPPFLAGS+= -DSCSI_ADHOC_BOOTPART
#CPPFLAGS+= -DBOOT_DEBUG
CPPFLAGS+= -DUSE_FFS -DUSE_LFS -DUSE_UFS1 -DUSE_UFS2 -D__daddr_t=int32_t
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS}
CPPFLAGS+= -I${COMMONDIR} -I${LIBIOCS} -I${S}
AFLAGS= ${CFLAGS:M-[ID]*}
.if ${OBJECT_FMT} == "ELF"
LDFLAGS= -n -Bstatic -T ${.CURDIR}/${BOOT}.ldscript -M
@ -51,6 +51,8 @@ LDFLAGS= -n -Bstatic -Ttext ${TEXT} -M
OBJCOPY?= objcopy
.endif
.include "${.CURDIR}/../Makefile.booters"
CLEANFILES+= $(PROG).x $(PROG).map