xref: /freebsd/share/mk/src.init.mk (revision 0f87915f4338cbe2bb73999a85fb8b91a7936ac7)
1208f1083SBryan Drewery
2208f1083SBryan Drewery.if !target(__<src.init.mk>__)
3208f1083SBryan Drewery__<src.init.mk>__:
4208f1083SBryan Drewery
5208f1083SBryan Drewery.if !target(buildenv)
6208f1083SBryan Drewerybuildenv: .PHONY
78260928dSBryan Drewery	${_+_}@env BUILDENV_DIR=${.CURDIR} ${MAKE} -C ${SRCTOP} buildenv
8208f1083SBryan Drewery.endif
9208f1083SBryan Drewery
10*8561d0b2SSimon J. Gerraty.if ${MACHINE:Nhost*} == ""
11*8561d0b2SSimon J. Gerraty.if ${.MAKE.OS} != "FreeBSD"
12*8561d0b2SSimon J. Gerraty# these won't work anyway - see tools/build/mk/Makefile.boot.pre
13*8561d0b2SSimon J. GerratyMK_DEBUG_FILES= no
14*8561d0b2SSimon J. GerratyMK_MAN= no
15*8561d0b2SSimon J. GerratyMK_PIE= no
16*8561d0b2SSimon J. GerratyMK_RETPOLINE= no
17*8561d0b2SSimon J. GerratyNO_SHARED= no
18*8561d0b2SSimon J. GerratyMK_TESTS= no
19*8561d0b2SSimon J. Gerraty
20*8561d0b2SSimon J. Gerraty.-include <src.init.${.MAKE.OS:tl}.mk>
21*8561d0b2SSimon J. Gerraty
22*8561d0b2SSimon J. GerratyCFLAGS+= \
23*8561d0b2SSimon J. Gerraty	-DHAVE_NBTOOL_CONFIG_H=1 \
24*8561d0b2SSimon J. Gerraty	-I${SRCTOP}/tools/build/cross-build/include/common \
25*8561d0b2SSimon J. Gerraty
26*8561d0b2SSimon J. Gerraty.endif
27*8561d0b2SSimon J. Gerraty
28*8561d0b2SSimon J. Gerraty.if ${MK_host_egacy} == "yes"
29*8561d0b2SSimon J. Gerraty.ifdef PROG
30*8561d0b2SSimon J. GerratyLOCAL_LIBRARIES+= egacy
31*8561d0b2SSimon J. GerratyLIBADD+= egacy
32*8561d0b2SSimon J. Gerraty.endif
33*8561d0b2SSimon J. Gerraty.endif
34*8561d0b2SSimon J. Gerraty
35*8561d0b2SSimon J. Gerraty.endif
36*8561d0b2SSimon J. Gerraty
37208f1083SBryan Drewery.endif	# !target(__<src.init.mk>__)
38