xref: /freebsd/usr.bin/bmake/Makefile.inc (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1
2# we do not need this
3MK_host_egacy= no
4
5.sinclude <src.opts.mk>
6
7.if defined(.PARSEDIR)
8# make sure this is available to unit-tests/Makefile
9.export SRCTOP
10.endif
11
12.if exists(${.CURDIR}/tests)
13PROG= make
14.if ${PROGNAME:U} != "bmake"
15LINKS= ${BINDIR}/make ${BINDIR}/bmake
16MLINKS= ${MAN} b${MAN}
17.endif
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