Correct math and limerick.
[dragonfly.git] / contrib / bmake / mk / init.mk
blobe700370808969353d6a0a660d778579b2321f0c4
1 # $Id: init.mk,v 1.9 2013/07/18 05:46:24 sjg Exp $
3 # @(#) Copyright (c) 2002, Simon J. Gerraty
5 # This file is provided in the hope that it will
6 # be of use. There is absolutely NO WARRANTY.
7 # Permission to copy, redistribute or otherwise
8 # use this file is hereby granted provided that
9 # the above copyright notice and this notice are
10 # left intact.
12 # Please send copies of changes and bug-fixes to:
13 # sjg@crufty.net
16 .if !target(__${.PARSEFILE}__)
17 __${.PARSEFILE}__:
19 .if ${MAKE_VERSION:U0} > 20100408
20 _this_mk_dir := ${.PARSEDIR:tA}
21 .else
22 _this_mk_dir := ${.PARSEDIR}
23 .endif
25 .-include <local.init.mk>
26 .-include "${.CURDIR:H}/Makefile.inc"
27 .include <own.mk>
29 .MAIN: all
31 .if !empty(WARNINGS_SET) || !empty(WARNINGS_SET_${MACHINE_ARCH})
32 .include <warnings.mk>
33 .endif
35 COPTS += ${COPTS.${.IMPSRC:T}}
36 CPPFLAGS += ${CPPFLAGS.${.IMPSRC:T}}
37 CPUFLAGS += ${CPUFLAGS.${.IMPSRC:T}}
39 CC_PG?= -pg
40 CXX_PG?= ${CC_PG}
41 CC_PIC?= -DPIC
42 CXX_PIC?= ${CC_PIC}
43 PROFFLAGS?= -DGPROF -DPROF
45 .if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no"
46 # this tells lib.mk and prog.mk to not actually build anything
47 _SKIP_BUILD = not building at level 0
48 .endif
50 .endif