xref: /freebsd/usr.bin/bmake/Makefile.inc (revision 63d1fd5970ec814904aa0f4580b10a0d302d08b2)
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