xref: /freebsd/usr.bin/bmake/Makefile.inc (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1# $FreeBSD$
2
3# we do not need this
4MK_host_egacy= no
5
6.sinclude <src.opts.mk>
7
8.if defined(.PARSEDIR)
9# make sure this is available to unit-tests/Makefile
10.export SRCTOP
11.endif
12
13.if exists(${.CURDIR}/tests)
14PROG= make
15.if ${PROGNAME:U} != "bmake"
16LINKS= ${BINDIR}/make ${BINDIR}/bmake
17MLINKS= ${MAN} b${MAN}
18.endif
19.endif
20
21.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no"
22NO_SHARED?=     YES
23.endif
24
25# hack to not add tests to tests subdir since this is included from
26# there and to avoid renaming things that require changes to generated
27# files.
28.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests)
29SUBDIR+= tests
30.endif
31
32WARNS?=3
33CFLAGS+= -DNO_PWD_OVERRIDE
34
35.if make(after-import)
36# use our preferred value
37DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk
38.export DEFAULT_SYS_PATH
39.endif
40
41.if ${MACHINE} != "host"
42FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
43.endif
44