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