2023-04-25 01:55:45 +02:00
|
|
|
# we do not need this
|
|
|
|
MK_host_egacy= no
|
|
|
|
|
2014-05-06 16:33:18 +02:00
|
|
|
.sinclude <src.opts.mk>
|
2012-10-06 21:19:21 +02:00
|
|
|
|
|
|
|
.if defined(.PARSEDIR)
|
|
|
|
# make sure this is available to unit-tests/Makefile
|
|
|
|
.export SRCTOP
|
|
|
|
.endif
|
|
|
|
|
2015-09-23 23:35:58 +02:00
|
|
|
.if exists(${.CURDIR}/tests)
|
2012-10-06 21:19:21 +02:00
|
|
|
PROG= make
|
2021-03-06 18:45:08 +01:00
|
|
|
.if ${PROGNAME:U} != "bmake"
|
2021-02-15 19:05:00 +01:00
|
|
|
LINKS= ${BINDIR}/make ${BINDIR}/bmake
|
2021-02-15 02:20:10 +01:00
|
|
|
MLINKS= ${MAN} b${MAN}
|
2015-09-23 23:35:58 +02:00
|
|
|
.endif
|
2021-03-06 18:45:08 +01:00
|
|
|
.endif
|
2012-10-06 21:19:21 +02:00
|
|
|
|
2014-05-15 17:45:45 +02:00
|
|
|
# hack to not add tests to tests subdir since this is included from
|
|
|
|
# there and to avoid renaming things that require changes to generated
|
|
|
|
# files.
|
|
|
|
.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests)
|
2014-05-15 03:27:24 +02:00
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2020-09-11 15:28:37 +02:00
|
|
|
WARNS?=3
|
2013-05-17 21:37:16 +02:00
|
|
|
CFLAGS+= -DNO_PWD_OVERRIDE
|
2017-07-24 06:38:05 +02:00
|
|
|
|
|
|
|
.if make(after-import)
|
|
|
|
# use our preferred value
|
|
|
|
DEFAULT_SYS_PATH= .../share/mk:/usr/share/mk
|
|
|
|
.export DEFAULT_SYS_PATH
|
|
|
|
.endif
|
2018-03-02 02:53:50 +01:00
|
|
|
|
|
|
|
.if ${MACHINE} != "host"
|
|
|
|
FILEMON_H ?= ${SRCTOP}/sys/dev/filemon/filemon.h
|
|
|
|
.endif
|