1241279Smarcel# $FreeBSD: releng/10.3/usr.bin/bmake/Makefile.inc 288403 2015-09-29 22:00:03Z bdrewery $ 2241279Smarcel 3241279Smarcel.include "bsd.own.mk" 4241279Smarcel 5241279Smarcel.if defined(.PARSEDIR) 6241279Smarcel# make sure this is available to unit-tests/Makefile 7241279Smarcel.export SRCTOP 8241279Smarcel.endif 9241279Smarcel 10250755Ssjg# Sadly, we cannot assume bsd.own.mk did its job, 11250755Ssjg# nor can we safely include the one we want 12250755Ssjg.if !defined(WITHOUT_BMAKE) 13250755SsjgMK_BMAKE= yes 14250755Ssjg.endif 15250755Ssjg 16288403Sbdrewery.if defined(MK_BMAKE) && ${MK_BMAKE} != "no" && exists(${.CURDIR}/tests) 17241279SmarcelPROG= make 18241279Smarcel.endif 19241279Smarcel 20250722Sdelphij.if !defined(MK_SHARED_TOOLCHAIN) || ${MK_SHARED_TOOLCHAIN} == "no" 21243115SsjgNO_SHARED?= YES 22243115Ssjg.endif 23243115Ssjg 24276389Sngie# hack to not add tests to tests subdir since this is included from 25276389Sngie# there and to avoid renaming things that require changes to generated 26276389Sngie# files. 27276389Sngie.if defined(MK_TESTS) && ${MK_TESTS} != no && exists(${.CURDIR}/tests) 28276389SngieSUBDIR+= tests 29276389Sngie.endif 30276389Sngie 31241279SmarcelWARNS=3 32250750SsjgCFLAGS+= -DNO_PWD_OVERRIDE 33