xref: /freebsd/usr.bin/bmake/Makefile.inc (revision f15e18a642cb3f7ebc747f8e9cdf11274140107d)
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
12LINKS= make bmake
13MLINKS= ${MAN} b${MAN}
14.endif
15
16.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
17NO_SHARED?=     YES
18.endif
19
20# hack to not add tests to tests subdir since this is included from
21# there and to avoid renaming things that require changes to generated
22# files.
23.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests)
24SUBDIR+= tests
25.endif
26
27WARNS?=3
28CFLAGS+= -DNO_PWD_OVERRIDE
29
30.if make(after-import)
31# use our preferred value
32DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk
33.export DEFAULT_SYS_PATH
34.endif
35
36.if ${MACHINE} != "host"
37FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
38.endif
39