1253883Ssjg# $Id: init.mk,v 1.9 2013/07/18 05:46:24 sjg Exp $
2246149Ssjg#
3246149Ssjg#	@(#) Copyright (c) 2002, Simon J. Gerraty
4246149Ssjg#
5246149Ssjg#	This file is provided in the hope that it will
6246149Ssjg#	be of use.  There is absolutely NO WARRANTY.
7246149Ssjg#	Permission to copy, redistribute or otherwise
8246149Ssjg#	use this file is hereby granted provided that 
9246149Ssjg#	the above copyright notice and this notice are
10246149Ssjg#	left intact. 
11246149Ssjg#      
12246149Ssjg#	Please send copies of changes and bug-fixes to:
13246149Ssjg#	sjg@crufty.net
14246149Ssjg#
15246149Ssjg
16246149Ssjg.if !target(__${.PARSEFILE}__)
17246149Ssjg__${.PARSEFILE}__:
18246149Ssjg
19246149Ssjg.if ${MAKE_VERSION:U0} > 20100408
20246149Ssjg_this_mk_dir := ${.PARSEDIR:tA}
21246149Ssjg.else
22246149Ssjg_this_mk_dir := ${.PARSEDIR}
23246149Ssjg.endif
24246149Ssjg
25246149Ssjg.-include <local.init.mk>
26246149Ssjg.-include "${.CURDIR:H}/Makefile.inc"
27246149Ssjg.include <own.mk>
28246149Ssjg
29246149Ssjg.MAIN:		all
30246149Ssjg
31246149Ssjg.if !empty(WARNINGS_SET) || !empty(WARNINGS_SET_${MACHINE_ARCH})
32246149Ssjg.include <warnings.mk>
33246149Ssjg.endif
34246149Ssjg
35246149SsjgCOPTS += ${COPTS.${.IMPSRC:T}}
36246149SsjgCPPFLAGS += ${CPPFLAGS.${.IMPSRC:T}}
37246149SsjgCPUFLAGS += ${CPUFLAGS.${.IMPSRC:T}}
38246149Ssjg
39253883SsjgCC_PG?= -pg
40253883SsjgCXX_PG?= ${CC_PG}
41253883SsjgCC_PIC?= -DPIC
42253883SsjgCXX_PIC?= ${CC_PIC}
43253883SsjgPROFFLAGS?= -DGPROF -DPROF
44253883Ssjg
45246149Ssjg.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no"
46246149Ssjg# this tells lib.mk and prog.mk to not actually build anything
47246149Ssjg_SKIP_BUILD = not building at level 0
48246149Ssjg.endif
49246149Ssjg
50246149Ssjg.endif
51