2012-10-06 15:19:21 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2014-05-06 10:33:18 -04:00
|
|
|
.sinclude <src.opts.mk>
|
2012-10-06 15:19:21 -04:00
|
|
|
|
|
|
|
|
.if defined(.PARSEDIR)
|
|
|
|
|
# make sure this is available to unit-tests/Makefile
|
|
|
|
|
.export SRCTOP
|
|
|
|
|
.endif
|
|
|
|
|
|
2015-09-23 17:35:58 -04:00
|
|
|
.if exists(${.CURDIR}/tests)
|
2012-10-06 15:19:21 -04:00
|
|
|
PROG= make
|
2015-09-23 17:35:58 -04:00
|
|
|
.endif
|
2012-10-06 15:19:21 -04:00
|
|
|
|
2013-05-16 18:35:33 -04:00
|
|
|
.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
|
2012-11-15 20:37:25 -05:00
|
|
|
NO_SHARED?= YES
|
|
|
|
|
.endif
|
|
|
|
|
|
2014-05-15 11:45:45 -04: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-14 21:27:24 -04:00
|
|
|
SUBDIR+= tests
|
|
|
|
|
.endif
|
|
|
|
|
|
2012-10-06 15:19:21 -04:00
|
|
|
WARNS=3
|
2013-05-17 15:37:16 -04:00
|
|
|
CFLAGS+= -DNO_PWD_OVERRIDE
|