1# $FreeBSD$ 2 3.if !target(__<src.init.mk>__) 4__<src.init.mk>__: 5 6.if !target(buildenv) 7buildenv: .PHONY 8 ${_+_}@env BUILDENV_DIR=${.CURDIR} ${MAKE} -C ${SRCTOP} buildenv 9.endif 10 11.if ${MACHINE:Nhost*} == "" 12.if ${.MAKE.OS} != "FreeBSD" 13# these won't work anyway - see tools/build/mk/Makefile.boot.pre 14MK_DEBUG_FILES= no 15MK_MAN= no 16MK_PIE= no 17MK_RETPOLINE= no 18NO_SHARED= no 19MK_TESTS= no 20 21.-include <src.init.${.MAKE.OS:tl}.mk> 22 23CFLAGS+= \ 24 -DHAVE_NBTOOL_CONFIG_H=1 \ 25 -I${SRCTOP}/tools/build/cross-build/include/common \ 26 27.endif 28 29.if ${MK_host_egacy} == "yes" 30.ifdef PROG 31LOCAL_LIBRARIES+= egacy 32LIBADD+= egacy 33.endif 34.endif 35 36.if ${MK_STAGING} == "yes" 37ISYSTEM= /usr/include 38CFLAGS+= -I${STAGE_INCLUDEDIR} 39.endif 40.endif 41 42.endif # !target(__<src.init.mk>__) 43