diff options
Diffstat (limited to 'share/mk/local.init.mk')
-rw-r--r-- | share/mk/local.init.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/share/mk/local.init.mk b/share/mk/local.init.mk new file mode 100644 index 0000000..eb15b1e --- /dev/null +++ b/share/mk/local.init.mk @@ -0,0 +1,18 @@ + +.if defined(.PARSEDIR) +.if ${.MAKE.MODE:Mmeta*} != "" +.if !empty(SUBDIR) && !defined(LIB) && !defined(PROG) && ${.MAKE.MAKEFILES:M*bsd.prog.mk} == "" +.if ${.MAKE.MODE:Mleaf*} != "" +# we only want leaf dirs to build in meta mode... and we are not one +.MAKE.MODE = normal +.endif +.endif +.endif +.endif + +.if ${MACHINE} == "host" +HOST_CC?= /usr/bin/cc +HOST_CFLAGS+= -DHOSTPROG +CC= ${HOST_CC} +CFLAGS+= ${HOST_CFLAGS} +.endif |