2012-10-06 20:19:21 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "bsd.own.mk"
|
|
|
|
|
|
|
|
.if defined(.PARSEDIR)
|
|
|
|
# make sure this is available to unit-tests/Makefile
|
|
|
|
.export SRCTOP
|
|
|
|
.endif
|
|
|
|
|
2013-05-17 23:18:27 +01:00
|
|
|
# Sadly, we cannot assume bsd.own.mk did its job,
|
|
|
|
# nor can we safely include the one we want
|
|
|
|
.if !defined(WITHOUT_BMAKE)
|
|
|
|
MK_BMAKE= yes
|
|
|
|
.endif
|
|
|
|
|
2013-05-16 23:25:17 +01:00
|
|
|
.if defined(MK_BMAKE) && ${MK_BMAKE} != "no"
|
2012-10-06 20:19:21 +01:00
|
|
|
PROG= make
|
|
|
|
.endif
|
|
|
|
|
2013-05-16 23:35:33 +01:00
|
|
|
.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
|
2012-11-16 01:37:25 +00:00
|
|
|
NO_SHARED?= YES
|
|
|
|
.endif
|
|
|
|
|
2014-12-30 02:32:48 +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)
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2012-10-06 20:19:21 +01:00
|
|
|
WARNS=3
|
2013-05-17 20:37:16 +01:00
|
|
|
CFLAGS+= -DNO_PWD_OVERRIDE
|