2012-10-06 19:19:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 14:33:18 +00:00
|
|
|
.sinclude <src.opts.mk>
|
2012-10-06 19:19:21 +00:00
|
|
|
|
|
|
|
.if defined(.PARSEDIR)
|
|
|
|
# make sure this is available to unit-tests/Makefile
|
|
|
|
.export SRCTOP
|
|
|
|
.endif
|
|
|
|
|
2015-09-23 21:35:58 +00:00
|
|
|
.if exists(${.CURDIR}/tests)
|
2012-10-06 19:19:21 +00:00
|
|
|
PROG= make
|
2015-09-23 21:35:58 +00:00
|
|
|
.endif
|
2012-10-06 19:19:21 +00:00
|
|
|
|
2013-05-16 22:35:33 +00:00
|
|
|
.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
|
2012-11-16 01:37:25 +00:00
|
|
|
NO_SHARED?= YES
|
|
|
|
.endif
|
|
|
|
|
2014-05-15 15:45:45 +00:00
|
|
|
# hack to not add tests to tests subdir since this is included from
|
|
|
|
# there and to avoid renaming things that require changes to generated
|
|
|
|
# files.
|
|
|
|
.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests)
|
2014-05-15 01:27:24 +00:00
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2012-10-06 19:19:21 +00:00
|
|
|
WARNS=3
|
2013-05-17 19:37:16 +00:00
|
|
|
CFLAGS+= -DNO_PWD_OVERRIDE
|
2017-07-24 04:38:05 +00:00
|
|
|
|
|
|
|
.if make(after-import)
|
|
|
|
# use our preferred value
|
|
|
|
DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk
|
|
|
|
.export DEFAULT_SYS_PATH
|
|
|
|
.endif
|
2018-03-02 01:53:50 +00:00
|
|
|
|
|
|
|
.if ${MACHINE} != "host"
|
|
|
|
FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
|
|
|
|
.endif
|