local.init.mk (ee7b0571c2c18bdec848ed2044223cc88db29bd8) | local.init.mk (4113aa90776ac4b6d192cfbef7f021f8d6a98cf4) |
---|---|
1 2.include "src.opts.mk" 3 4.if defined(.PARSEDIR) 5.if ${.MAKE.MODE:Unormal:Mmeta*} != "" 6.if !empty(SUBDIR) && !defined(LIB) && !defined(PROG) && ${.MAKE.MAKEFILES:M*bsd.prog.mk} == "" 7.if ${.MAKE.MODE:Mleaf*} != "" 8# we only want leaf dirs to build in meta mode... and we are not one 9.MAKE.MODE = normal 10.endif 11.endif 12.endif 13.endif 14 15.if ${MK_SYSROOT} == "yes" && !empty(SYSROOT) 16CFLAGS_LAST+= --sysroot=${SYSROOT} 17CXXFLAGS_LAST+= --sysroot=${SYSROOT} 18LDADD+= --sysroot=${SYSROOT} | 1 2.include "src.opts.mk" 3 4.if defined(.PARSEDIR) 5.if ${.MAKE.MODE:Unormal:Mmeta*} != "" 6.if !empty(SUBDIR) && !defined(LIB) && !defined(PROG) && ${.MAKE.MAKEFILES:M*bsd.prog.mk} == "" 7.if ${.MAKE.MODE:Mleaf*} != "" 8# we only want leaf dirs to build in meta mode... and we are not one 9.MAKE.MODE = normal 10.endif 11.endif 12.endif 13.endif 14 15.if ${MK_SYSROOT} == "yes" && !empty(SYSROOT) 16CFLAGS_LAST+= --sysroot=${SYSROOT} 17CXXFLAGS_LAST+= --sysroot=${SYSROOT} 18LDADD+= --sysroot=${SYSROOT} |
19.elif ${MK_STAGING} == "yes" 20CFLAGS+= -I${STAGE_INCLUDEDIR} 21LDADD+= -L${STAGE_LIBDIR} 22.endif |
|
19.if ${MACHINE} == "host" 20# we cheat? 21LDADD+= -B/usr/lib 22CFLAGS_LAST+= -I/usr/include 23CXXFLAGS_LAST+= -I/usr/include 24.endif | 23.if ${MACHINE} == "host" 24# we cheat? 25LDADD+= -B/usr/lib 26CFLAGS_LAST+= -I/usr/include 27CXXFLAGS_LAST+= -I/usr/include 28.endif |
25.endif | |
26 27.if ${MACHINE} == "host" 28.if ${.MAKE.DEPENDFILE:E} != "host" 29UPDATE_DEPENDFILE?= no 30.endif 31HOST_CC?= /usr/bin/cc 32HOST_CFLAGS+= -DHOSTPROG 33CC= ${HOST_CC} 34CFLAGS+= ${HOST_CFLAGS} 35.endif | 29 30.if ${MACHINE} == "host" 31.if ${.MAKE.DEPENDFILE:E} != "host" 32UPDATE_DEPENDFILE?= no 33.endif 34HOST_CC?= /usr/bin/cc 35HOST_CFLAGS+= -DHOSTPROG 36CC= ${HOST_CC} 37CFLAGS+= ${HOST_CFLAGS} 38.endif |