Only include ../Makefile.inc once in loader/Makefile.
This commit is contained in:
parent
fb94df0e92
commit
742816a54a
@ -9,8 +9,7 @@ CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2
|
||||
.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
|
||||
.endif
|
||||
|
||||
.if defined(REALLY_AMD64) && !defined(__been_to_Makefile_inc)
|
||||
__been_to_Makefile_inc= 1
|
||||
.if defined(REALLY_AMD64)
|
||||
CFLAGS+= -m32
|
||||
LDFLAGS+= -m elf_i386_fbsd
|
||||
AFLAGS+= --32
|
||||
|
@ -41,7 +41,7 @@ CFLAGS+= -DLOADER_GZIP_SUPPORT
|
||||
|
||||
# Always add MI sources
|
||||
.PATH: ${.CURDIR}/../../common
|
||||
.include <${.CURDIR}/../../common/Makefile.inc>
|
||||
.include "${.CURDIR}/../../common/Makefile.inc"
|
||||
CFLAGS+= -I${.CURDIR}/../../common
|
||||
CFLAGS+= -I${.CURDIR}/../../.. -I.
|
||||
|
||||
@ -109,8 +109,6 @@ FILESDIR_loader.conf= /boot/defaults
|
||||
FILES+= ${.CURDIR}/loader.rc
|
||||
.endif
|
||||
|
||||
.include <${.CURDIR}/../Makefile.inc>
|
||||
|
||||
# Cannot use ${OBJS} above this line
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user