1415bccaaSBruce Evans# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 27f3dea24SPeter Wemm# $FreeBSD$ 3afe61c15SRodney W. Grimes 4415bccaaSBruce Evansunix ?= We run FreeBSD, not UNIX. 53f5a93f6SDavid E. O'Brien.FreeBSD ?= true 6afe61c15SRodney W. Grimes 76fc3ead1SWarner Losh.if !defined(%POSIX) 86fc3ead1SWarner Losh# 96fc3ead1SWarner Losh# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with 10bd4473b8SDimitry Andric# the same MACHINE_ARCH can run each other's binaries, so it necessarily 11bd4473b8SDimitry Andric# has word size and endian swizzled in. However, support files for 12bd4473b8SDimitry Andric# these machines often are shared amongst all combinations of size 13bd4473b8SDimitry Andric# and/or endian. This is called MACHINE_CPU in NetBSD, but that's used 14bd4473b8SDimitry Andric# for something different in FreeBSD. 156fc3ead1SWarner Losh# 1673279d41SAndrew TurnerMACHINE_CPUARCH=${MACHINE_ARCH:C/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb|hf)?/arm/:C/powerpc64/powerpc/} 176b14aaa4SWarner Losh.endif 180815243cSMarcel Moolenaar 192be2be74SSteve Price# If the special target .POSIX appears (without prerequisites or 202be2be74SSteve Price# commands) before the first noncomment line in the makefile, make shall 212be2be74SSteve Price# process the makefile as specified by the Posix 1003.2 specification. 222be2be74SSteve Price# make(1) sets the special macro %POSIX in this case (to the actual 232be2be74SSteve Price# value "1003.2", for what it's worth). 242be2be74SSteve Price# 252be2be74SSteve Price# The rules below use this macro to distinguish between Posix-compliant 262be2be74SSteve Price# and default behaviour. 272be2be74SSteve Price 282be2be74SSteve Price.if defined(%POSIX) 292be2be74SSteve Price.SUFFIXES: .o .c .y .l .a .sh .f 302be2be74SSteve Price.else 31d58e932fSRuslan Ermilov.SUFFIXES: .out .a .ln .o .c .cc .cpp .cxx .C .m .F .f .e .r .y .l .S .asm .s .cl .p .h .sh 322be2be74SSteve Price.endif 33afe61c15SRodney W. Grimes 34415bccaaSBruce EvansAR ?= ar 352be2be74SSteve Price.if defined(%POSIX) 362be2be74SSteve PriceARFLAGS ?= -rv 372be2be74SSteve Price.else 38f1c8f60bSDag-Erling SmørgravARFLAGS ?= -crD 392be2be74SSteve Price.endif 40415bccaaSBruce EvansRANLIB ?= ranlib 41f1c8f60bSDag-Erling Smørgrav.if !defined(%POSIX) 42f1c8f60bSDag-Erling SmørgravRANLIBFLAGS ?= -D 43f1c8f60bSDag-Erling Smørgrav.endif 44afe61c15SRodney W. Grimes 45415bccaaSBruce EvansAS ?= as 46415bccaaSBruce EvansAFLAGS ?= 475ada7d99SKonstantin BelousovACFLAGS ?= 48afe61c15SRodney W. Grimes 492be2be74SSteve Price.if defined(%POSIX) 502be2be74SSteve PriceCC ?= c89 51d17387acSBruce EvansCFLAGS ?= -O 522be2be74SSteve Price.else 53415bccaaSBruce EvansCC ?= cc 546fc3ead1SWarner Losh.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips" 5520c46652SDavid E. O'BrienCFLAGS ?= -O -pipe 56cdc162feSOlivier Houchard.else 5720c46652SDavid E. O'BrienCFLAGS ?= -O2 -pipe 58cfb5b325SJohn Birrell.endif 59cfb5b325SJohn Birrell.if defined(NO_STRICT_ALIASING) 60cfb5b325SJohn BirrellCFLAGS += -fno-strict-aliasing 61d17387acSBruce Evans.endif 62cdc162feSOlivier Houchard.endif 63424b4e66SStephane E. PotvinPO_CFLAGS ?= ${CFLAGS} 64afe61c15SRodney W. Grimes 65770ac3b2SJohn Birrell# C Type Format data is required for DTrace 66770ac3b2SJohn BirrellCTFFLAGS ?= -L VERSION 67770ac3b2SJohn Birrell 68770ac3b2SJohn BirrellCTFCONVERT ?= ctfconvert 69770ac3b2SJohn BirrellCTFMERGE ?= ctfmerge 709a1d1150SRui PauloDTRACE ?= dtrace 71770ac3b2SJohn Birrell.if defined(CFLAGS) && (${CFLAGS:M-g} != "") 72770ac3b2SJohn BirrellCTFFLAGS += -g 73770ac3b2SJohn Birrell.endif 74770ac3b2SJohn Birrell 75443dced5SPaul RichardsCXX ?= c++ 7696f2d85eSMarcel MoolenaarCXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:N-Wold-style-definition} 77424b4e66SStephane E. PotvinPO_CXXFLAGS ?= ${CXXFLAGS} 78afe61c15SRodney W. Grimes 79415bccaaSBruce EvansCPP ?= cpp 80afe61c15SRodney W. Grimes 8165d2bdc6SRuslan Ermilov.if empty(.MAKEFLAGS:M-s) 82415bccaaSBruce EvansECHO ?= echo 83415bccaaSBruce EvansECHODIR ?= echo 84415bccaaSBruce Evans.else 85415bccaaSBruce EvansECHO ?= true 86415bccaaSBruce Evans.if ${.MAKEFLAGS:M-s} == "-s" 87415bccaaSBruce EvansECHODIR ?= echo 88415bccaaSBruce Evans.else 89415bccaaSBruce EvansECHODIR ?= true 90415bccaaSBruce Evans.endif 91415bccaaSBruce Evans.endif 92afe61c15SRodney W. Grimes 93b37be1a5SSimon J. Gerraty.if defined(.PARSEDIR) 94b37be1a5SSimon J. Gerraty# _+_ appears to be a workaround for the special src .MAKE not working. 95b37be1a5SSimon J. Gerraty# setting it to + interferes with -N 96b37be1a5SSimon J. Gerraty_+_ ?= 97b37be1a5SSimon J. Gerraty.elif !empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n" 98b37be1a5SSimon J. Gerraty# the check above matches only a single -n, so -n -n will result 99b37be1a5SSimon J. Gerraty# in _+_ = + 100acabf29aSHartmut Brandt_+_ ?= 101acabf29aSHartmut Brandt.else 102acabf29aSHartmut Brandt_+_ ?= + 103acabf29aSHartmut Brandt.endif 104acabf29aSHartmut Brandt 1052be2be74SSteve Price.if defined(%POSIX) 1062be2be74SSteve PriceFC ?= fort77 1072be2be74SSteve PriceFFLAGS ?= -O 1 1082be2be74SSteve Price.else 109415bccaaSBruce EvansFC ?= f77 110415bccaaSBruce EvansFFLAGS ?= -O 1112be2be74SSteve Price.endif 112415bccaaSBruce EvansEFLAGS ?= 113afe61c15SRodney W. Grimes 114c7499507SAndrey A. ChernovINSTALL ?= install 115c7499507SAndrey A. Chernov 116415bccaaSBruce EvansLEX ?= lex 117415bccaaSBruce EvansLFLAGS ?= 118afe61c15SRodney W. Grimes 119415bccaaSBruce EvansLD ?= ld 1205b6dc2efSSimon J. GerratyLDFLAGS ?= # LDFLAGS is for CC, 1215b6dc2efSSimon J. Gerraty_LDFLAGS = ${LDFLAGS:S/-Wl,//g} # strip -Wl, for LD 122afe61c15SRodney W. Grimes 123415bccaaSBruce EvansLINT ?= lint 124bd42830fSRuslan ErmilovLINTFLAGS ?= -cghapbx 125766f7d6eSMark MurrayLINTKERNFLAGS ?= ${LINTFLAGS} 126766f7d6eSMark MurrayLINTOBJFLAGS ?= -cghapbxu -i 12734d81580SMark MurrayLINTOBJKERNFLAGS?= ${LINTOBJFLAGS} 128766f7d6eSMark MurrayLINTLIBFLAGS ?= -cghapbxu -C ${LIB} 129afe61c15SRodney W. Grimes 130415bccaaSBruce EvansMAKE ?= make 131afe61c15SRodney W. Grimes 1326f1d6967SWarner Losh.if !defined(%POSIX) 1336f1d6967SWarner LoshNM ?= nm 1346f1d6967SWarner Losh 13570a6e331SBruce EvansOBJC ?= cc 13670a6e331SBruce EvansOBJCFLAGS ?= ${OBJCINCLUDES} ${CFLAGS} -Wno-import 13770a6e331SBruce Evans 138e97696b5SEd MasteOBJCOPY ?= objcopy 139e97696b5SEd Maste 140415bccaaSBruce EvansPC ?= pc 141415bccaaSBruce EvansPFLAGS ?= 142afe61c15SRodney W. Grimes 143415bccaaSBruce EvansRC ?= f77 144415bccaaSBruce EvansRFLAGS ?= 14544383aa3SEd Maste.endif 146415bccaaSBruce Evans 147415bccaaSBruce EvansSHELL ?= sh 148415bccaaSBruce Evans 149*78abccfcSBaptiste Daroussin.if !defined(%POSIX) 150*78abccfcSBaptiste DaroussinSIZE ?= size 151*78abccfcSBaptiste Daroussin.endif 152*78abccfcSBaptiste Daroussin 153415bccaaSBruce EvansYACC ?= yacc 1542be2be74SSteve Price.if defined(%POSIX) 1552be2be74SSteve PriceYFLAGS ?= 1562be2be74SSteve Price.else 157415bccaaSBruce EvansYFLAGS ?= -d 1582be2be74SSteve Price.endif 1592be2be74SSteve Price 1602be2be74SSteve Price.if defined(%POSIX) 1618d962594SBruce Evans 1622be2be74SSteve Price# Posix 1003.2 mandated rules 1632be2be74SSteve Price# 1642be2be74SSteve Price# Quoted directly from the Posix 1003.2 draft, only the macros 1652be2be74SSteve Price# $@, $< and $* have been replaced by ${.TARGET}, ${.IMPSRC}, and 1662be2be74SSteve Price# ${.PREFIX}, resp. 1672be2be74SSteve Price 1682be2be74SSteve Price# SINGLE SUFFIX RULES 1692be2be74SSteve Price.c: 17032b97f0bSAlexander Langer ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.IMPSRC} 1712be2be74SSteve Price 1722be2be74SSteve Price.f: 17332b97f0bSAlexander Langer ${FC} ${FFLAGS} ${LDFLAGS} -o ${.TARGET} ${.IMPSRC} 1742be2be74SSteve Price 1752be2be74SSteve Price.sh: 1764be3feb2SWill Andrews cp -f ${.IMPSRC} ${.TARGET} 1772be2be74SSteve Price chmod a+x ${.TARGET} 1782be2be74SSteve Price 1792be2be74SSteve Price# DOUBLE SUFFIX RULES 1802be2be74SSteve Price 1812be2be74SSteve Price.c.o: 18232b97f0bSAlexander Langer ${CC} ${CFLAGS} -c ${.IMPSRC} 1832be2be74SSteve Price 1842be2be74SSteve Price.f.o: 18532b97f0bSAlexander Langer ${FC} ${FFLAGS} -c ${.IMPSRC} 1862be2be74SSteve Price 1872be2be74SSteve Price.y.o: 18832b97f0bSAlexander Langer ${YACC} ${YFLAGS} ${.IMPSRC} 18932b97f0bSAlexander Langer ${CC} ${CFLAGS} -c y.tab.c 190fc936cbdSDavid E. O'Brien rm -f y.tab.c 1912be2be74SSteve Price mv y.tab.o ${.TARGET} 1922be2be74SSteve Price 1932be2be74SSteve Price.l.o: 19432b97f0bSAlexander Langer ${LEX} ${LFLAGS} ${.IMPSRC} 19532b97f0bSAlexander Langer ${CC} ${CFLAGS} -c lex.yy.c 196fc936cbdSDavid E. O'Brien rm -f lex.yy.c 1972be2be74SSteve Price mv lex.yy.o ${.TARGET} 1982be2be74SSteve Price 1992be2be74SSteve Price.y.c: 20032b97f0bSAlexander Langer ${YACC} ${YFLAGS} ${.IMPSRC} 2012be2be74SSteve Price mv y.tab.c ${.TARGET} 2022be2be74SSteve Price 2032be2be74SSteve Price.l.c: 20432b97f0bSAlexander Langer ${LEX} ${LFLAGS} ${.IMPSRC} 2052be2be74SSteve Price mv lex.yy.c ${.TARGET} 2062be2be74SSteve Price 2072be2be74SSteve Price.c.a: 20832b97f0bSAlexander Langer ${CC} ${CFLAGS} -c ${.IMPSRC} 20932b97f0bSAlexander Langer ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 210fc936cbdSDavid E. O'Brien rm -f ${.PREFIX}.o 2112be2be74SSteve Price 2122be2be74SSteve Price.f.a: 21332b97f0bSAlexander Langer ${FC} ${FFLAGS} -c ${.IMPSRC} 21432b97f0bSAlexander Langer ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o 215fc936cbdSDavid E. O'Brien rm -f ${.PREFIX}.o 2162be2be74SSteve Price 2172be2be74SSteve Price.else 2182be2be74SSteve Price 2192be2be74SSteve Price# non-Posix rule set 220415bccaaSBruce Evans 221a9076ea0SBruce Evans.sh: 2224be3feb2SWill Andrews cp -fp ${.IMPSRC} ${.TARGET} 223a9076ea0SBruce Evans chmod a+x ${.TARGET} 224afe61c15SRodney W. Grimes 2255741a42fSMark Murray.c.ln: 2265741a42fSMark Murray ${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC} || \ 2275741a42fSMark Murray touch ${.TARGET} 2285741a42fSMark Murray 2295741a42fSMark Murray.cc.ln .C.ln .cpp.ln .cxx.ln: 2305741a42fSMark Murray ${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} || \ 2315741a42fSMark Murray touch ${.TARGET} 2325741a42fSMark Murray 233eb73cacdSDavid E. O'Brien.c: 234eb73cacdSDavid E. O'Brien ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 23578e7e3ecSMax Khon ${CTFCONVERT_CMD} 236eb73cacdSDavid E. O'Brien 237afe61c15SRodney W. Grimes.c.o: 238afe61c15SRodney W. Grimes ${CC} ${CFLAGS} -c ${.IMPSRC} 23978e7e3ecSMax Khon ${CTFCONVERT_CMD} 240afe61c15SRodney W. Grimes 241eb73cacdSDavid E. O'Brien.cc .cpp .cxx .C: 242eb73cacdSDavid E. O'Brien ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 243eb73cacdSDavid E. O'Brien 244c7cbe79eSDmitrij Tejblum.cc.o .cpp.o .cxx.o .C.o: 2453585b293SGarrett Wollman ${CXX} ${CXXFLAGS} -c ${.IMPSRC} 2463585b293SGarrett Wollman 24770a6e331SBruce Evans.m.o: 24870a6e331SBruce Evans ${OBJC} ${OBJCFLAGS} -c ${.IMPSRC} 24978e7e3ecSMax Khon ${CTFCONVERT_CMD} 25070a6e331SBruce Evans 251afe61c15SRodney W. Grimes.p.o: 252afe61c15SRodney W. Grimes ${PC} ${PFLAGS} -c ${.IMPSRC} 25378e7e3ecSMax Khon ${CTFCONVERT_CMD} 254afe61c15SRodney W. Grimes 2557b91cad9SDavid E. O'Brien.e .r .F .f: 2567b91cad9SDavid E. O'Brien ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} \ 2577b91cad9SDavid E. O'Brien -o ${.TARGET} 2587b91cad9SDavid E. O'Brien 259afe61c15SRodney W. Grimes.e.o .r.o .F.o .f.o: 260afe61c15SRodney W. Grimes ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC} 261afe61c15SRodney W. Grimes 262ea569569SRodney W. Grimes.S.o: 2635ada7d99SKonstantin Belousov ${CC} ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC} 26478e7e3ecSMax Khon ${CTFCONVERT_CMD} 265ea569569SRodney W. Grimes 266d58e932fSRuslan Ermilov.asm.o: 2675ada7d99SKonstantin Belousov ${CC} -x assembler-with-cpp ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC} 26878e7e3ecSMax Khon ${CTFCONVERT_CMD} 269d58e932fSRuslan Ermilov 270d58e932fSRuslan Ermilov.s.o: 271e517d11eSDavid E. O'Brien ${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC} 27278e7e3ecSMax Khon ${CTFCONVERT_CMD} 273e517d11eSDavid E. O'Brien 274006f5fe0SPoul-Henning Kamp# XXX not -j safe 275afe61c15SRodney W. Grimes.y.o: 276006f5fe0SPoul-Henning Kamp ${YACC} ${YFLAGS} ${.IMPSRC} 277006f5fe0SPoul-Henning Kamp ${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET} 278fc936cbdSDavid E. O'Brien rm -f y.tab.c 27978e7e3ecSMax Khon ${CTFCONVERT_CMD} 280afe61c15SRodney W. Grimes 281afe61c15SRodney W. Grimes.l.o: 28250ef9020SPoul-Henning Kamp ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c 28350ef9020SPoul-Henning Kamp ${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET} 284fc936cbdSDavid E. O'Brien rm -f ${.PREFIX}.tmp.c 28578e7e3ecSMax Khon ${CTFCONVERT_CMD} 286afe61c15SRodney W. Grimes 287c3e3432cSSteve Price# XXX not -j safe 288afe61c15SRodney W. Grimes.y.c: 289c3e3432cSSteve Price ${YACC} ${YFLAGS} ${.IMPSRC} 290c3e3432cSSteve Price mv y.tab.c ${.TARGET} 291afe61c15SRodney W. Grimes 292afe61c15SRodney W. Grimes.l.c: 29350ef9020SPoul-Henning Kamp ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET} 294afe61c15SRodney W. Grimes 295afe61c15SRodney W. Grimes.s.out .c.out .o.out: 296a9076ea0SBruce Evans ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 29778e7e3ecSMax Khon ${CTFCONVERT_CMD} 298afe61c15SRodney W. Grimes 299afe61c15SRodney W. Grimes.f.out .F.out .r.out .e.out: 300a9076ea0SBruce Evans ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} \ 301afe61c15SRodney W. Grimes ${LDLIBS} -o ${.TARGET} 302fc936cbdSDavid E. O'Brien rm -f ${.PREFIX}.o 30378e7e3ecSMax Khon ${CTFCONVERT_CMD} 304afe61c15SRodney W. Grimes 305006f5fe0SPoul-Henning Kamp# XXX not -j safe 306afe61c15SRodney W. Grimes.y.out: 307006f5fe0SPoul-Henning Kamp ${YACC} ${YFLAGS} ${.IMPSRC} 308006f5fe0SPoul-Henning Kamp ${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} 309fc936cbdSDavid E. O'Brien rm -f y.tab.c 31078e7e3ecSMax Khon ${CTFCONVERT_CMD} 311afe61c15SRodney W. Grimes 312afe61c15SRodney W. Grimes.l.out: 31350ef9020SPoul-Henning Kamp ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c 31450ef9020SPoul-Henning Kamp ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET} 315fc936cbdSDavid E. O'Brien rm -f ${.PREFIX}.tmp.c 31678e7e3ecSMax Khon ${CTFCONVERT_CMD} 3173585b293SGarrett Wollman 31834bbee43SWarner Losh# Pull in global settings. 31934bbee43SWarner Losh__MAKE_CONF?=/etc/make.conf 32034bbee43SWarner Losh.if exists(${__MAKE_CONF}) 32134bbee43SWarner Losh.include "${__MAKE_CONF}" 32234bbee43SWarner Losh.endif 32334bbee43SWarner Losh 32434bbee43SWarner Losh# Setup anything for the FreeBSD source build, if we're building 32534bbee43SWarner Losh# inside the source tree. Needs to be after make.conf, but before 32634bbee43SWarner Losh# local stuff. 32734bbee43SWarner Losh.sinclude <src.sys.mk> 32834bbee43SWarner Losh 32934bbee43SWarner Losh# Set any local definitions first. Place this early, but it needs 33034bbee43SWarner Losh# MACHINE_CPUARCH to be defined. 33134bbee43SWarner Losh.sinclude <local.sys.mk> 33234bbee43SWarner Losh 333a39cea66SYaroslav Tykhiy.if defined(__MAKE_SHELL) && !empty(__MAKE_SHELL) 334a39cea66SYaroslav TykhiySHELL= ${__MAKE_SHELL} 335a39cea66SYaroslav Tykhiy.SHELL: path=${__MAKE_SHELL} 336a39cea66SYaroslav Tykhiy.endif 337a39cea66SYaroslav Tykhiy 3380815243cSMarcel Moolenaar.if !defined(.PARSEDIR) 3390815243cSMarcel Moolenaar# We are not bmake, which is more aggressive about searching .PATH 3400815243cSMarcel Moolenaar# It is sometime necessary to curb its enthusiasm with .NOPATH 3410815243cSMarcel Moolenaar# The following allows us to quietly ignore .NOPATH when not using bmake. 3420815243cSMarcel Moolenaar.NOTMAIN: .NOPATH 3430815243cSMarcel Moolenaar.NOPATH: 3440815243cSMarcel Moolenaar 345dea3d870SHartmut Brandt# Toggle on warnings 346dea3d870SHartmut Brandt.WARN: dirsyntax 347be4646cfSWarner Losh.else # is bmake 348a0f1aa83SSimon J. Gerraty# Tell bmake to expand -V VAR by default 349a0f1aa83SSimon J. Gerraty.MAKE.EXPAND_VARIABLES= yes 350a0f1aa83SSimon J. Gerraty 351a0f1aa83SSimon J. Gerraty# Tell bmake the makefile preference 352a0f1aa83SSimon J. Gerraty.MAKE.MAKEFILE_PREFERENCE= BSDmakefile makefile Makefile 353a0f1aa83SSimon J. Gerraty 354a0f1aa83SSimon J. Gerraty# By default bmake does *not* use set -e 355a0f1aa83SSimon J. Gerraty# when running target scripts, this is a problem for many makefiles here. 356a0f1aa83SSimon J. Gerraty# So define a shell that will do what FreeBSD expects. 357a0f1aa83SSimon J. Gerraty.ifndef WITHOUT_SHELL_ERRCTL 358a0f1aa83SSimon J. Gerraty.SHELL: name=sh \ 359a0f1aa83SSimon J. Gerraty quiet="set -" echo="set -v" filter="set -" \ 360a0f1aa83SSimon J. Gerraty hasErrCtl=yes check="set -e" ignore="set +e" \ 361a0f1aa83SSimon J. Gerraty echoFlag=v errFlag=e \ 362a0f1aa83SSimon J. Gerraty path=${__MAKE_SHELL:U/bin/sh} 363a0f1aa83SSimon J. Gerraty.endif 364be4646cfSWarner Losh.endif # bmake 365a0f1aa83SSimon J. Gerraty 3668d962594SBruce Evans.include <bsd.cpu.mk> 367be4646cfSWarner Losh 368be4646cfSWarner Losh.endif # ! Posix 369