]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/bmake/Makefile.inc
Merge llvm-project main llvmorg-18-init-16595-g7c00a5be5cde
[FreeBSD/FreeBSD.git] / usr.bin / bmake / Makefile.inc
1
2 # we do not need this
3 MK_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)
13 PROG= make
14 .if ${PROGNAME:U} != "bmake"
15 LINKS= ${BINDIR}/make ${BINDIR}/bmake
16 MLINKS= ${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)
24 SUBDIR+= tests
25 .endif
26
27 WARNS?=3
28 CFLAGS+= -DNO_PWD_OVERRIDE
29
30 .if make(after-import)
31 # use our preferred value
32 DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk
33 .export DEFAULT_SYS_PATH
34 .endif
35
36 .if ${MACHINE} != "host"
37 FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
38 .endif