6 .sinclude <src.opts.mk>
9 # make sure this is available to unit-tests/Makefile
13 .if exists(${.CURDIR}/tests)
15 .if ${PROGNAME:U} != "bmake"
16 LINKS= ${BINDIR}/make ${BINDIR}/bmake
17 MLINKS= ${MAN} b${MAN}
21 .if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
25 # hack to not add tests to tests subdir since this is included from
26 # there and to avoid renaming things that require changes to generated
28 .if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests)
33 CFLAGS+= -DNO_PWD_OVERRIDE
35 .if make(after-import)
36 # use our preferred value
37 DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk
38 .export DEFAULT_SYS_PATH
41 .if ${MACHINE} != "host"
42 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h