1# $FreeBSD$ 2 3.sinclude <src.opts.mk> 4 5.if defined(.PARSEDIR) 6# make sure this is available to unit-tests/Makefile 7.export SRCTOP 8.endif 9 10.if exists(${.CURDIR}/tests) 11PROG= make 12.endif 13 14.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no" 15NO_SHARED?= YES 16.endif 17 18# hack to not add tests to tests subdir since this is included from 19# there and to avoid renaming things that require changes to generated 20# files. 21.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests) 22SUBDIR+= tests 23.endif 24 25WARNS=3 26CFLAGS+= -DNO_PWD_OVERRIDE 27 28.if make(after-import) 29# use our preferred value 30DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk 31.export DEFAULT_SYS_PATH 32.endif 33 34.if ${MACHINE} != "host" 35FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h 36.endif 37