1241279Smarcel# $FreeBSD: stable/11/usr.bin/bmake/Makefile.inc 331246 2018-03-20 15:57:52Z sjg $ 2241279Smarcel 3265448Simp.sinclude <src.opts.mk> 4241279Smarcel 5241279Smarcel.if defined(.PARSEDIR) 6241279Smarcel# make sure this is available to unit-tests/Makefile 7241279Smarcel.export SRCTOP 8241279Smarcel.endif 9241279Smarcel 10288154Sbdrewery.if exists(${.CURDIR}/tests) 11241279SmarcelPROG= make 12288154Sbdrewery.endif 13241279Smarcel 14250722Sdelphij.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no" 15243115SsjgNO_SHARED?= YES 16243115Ssjg.endif 17243115Ssjg 18266147Simp# hack to not add tests to tests subdir since this is included from 19266147Simp# there and to avoid renaming things that require changes to generated 20266147Simp# files. 21266147Simp.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests) 22266104SimpSUBDIR+= tests 23266104Simp.endif 24266104Simp 25241279SmarcelWARNS=3 26250750SsjgCFLAGS+= -DNO_PWD_OVERRIDE 27321653Ssjg 28321653Ssjg.if make(after-import) 29321653Ssjg# use our preferred value 30321653SsjgDEFAULT_SYS_PATH= .../share/mk:/usr/share/mk 31321653Ssjg.export DEFAULT_SYS_PATH 32321653Ssjg.endif 33331246Ssjg 34331246Ssjg.if ${MACHINE} != "host" 35331246SsjgFILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h 36331246Ssjg.endif 37