abd45729ab
This file is one of a handful that can be included at the top of a
Makefile (via src.opts.mk). Therefore, all the targets it defines
must be marked .NOTMAIN so they don't accidentally become the default
target of the Makefile.
Fixes: cf5f0744cd ("Add .NOTMAIN to guard targets")
Reviewed by: sjg, bdrewery
Differential Revision: https://reviews.freebsd.org/D51824
38 lines
673 B
Makefile
38 lines
673 B
Makefile
|
|
.if !target(__<src.init.mk>__)
|
|
__<src.init.mk>__: .NOTMAIN
|
|
|
|
.if !target(buildenv)
|
|
buildenv: .PHONY .NOTMAIN
|
|
${_+_}@env BUILDENV_DIR=${.CURDIR} ${MAKE} -C ${SRCTOP} buildenv
|
|
.endif
|
|
|
|
.if ${MACHINE:Nhost*} == ""
|
|
.if ${.MAKE.OS} != "FreeBSD"
|
|
# these won't work anyway - see tools/build/mk/Makefile.boot.pre
|
|
MK_DEBUG_FILES= no
|
|
MK_MAN= no
|
|
MK_PIE= no
|
|
MK_RETPOLINE= no
|
|
NO_SHARED= no
|
|
MK_TESTS= no
|
|
|
|
.-include <src.init.${.MAKE.OS:tl}.mk>
|
|
|
|
CFLAGS+= \
|
|
-DHAVE_NBTOOL_CONFIG_H=1 \
|
|
-I${SRCTOP}/tools/build/cross-build/include/common \
|
|
|
|
.endif
|
|
|
|
.if ${MK_host_egacy} == "yes"
|
|
.ifdef PROG
|
|
LOCAL_LIBRARIES+= egacy
|
|
LIBADD+= egacy
|
|
.endif
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif # !target(__<src.init.mk>__)
|