Makefile revision 103508
118730Ssteve# @(#)Makefile 5.2 (Berkeley) 12/28/90 294589Sobrien# $Id: Makefile,v 1.6 1994/06/30 05:33:39 cgd Exp $ 350477Speter# $FreeBSD: head/usr.bin/make/Makefile 103508 2002-09-17 22:31:26Z jmallett $ 41590Srgrimes 51590SrgrimesPROG= make 676012SwillCFLAGS+=-I${.CURDIR} 71590SrgrimesSRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \ 893056Simp make.c parse.c str.c suff.c targ.c var.c 91590SrgrimesSRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \ 101590Srgrimes lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \ 111590Srgrimes lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \ 121590Srgrimes lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \ 131590Srgrimes lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c 141590Srgrimes.PATH: ${.CURDIR}/lst.lib 151590Srgrimes 1676801SsobomaxNOSHARED?= YES 1776801Ssobomax 18103508SjmallettCFLAGS+=-DMAKE_VERSION=\"5200209170\" 19102692Speter.if defined(_UPGRADING) 20102692SpeterCFLAGS+=-D__FBSDID=__RCSID 21102692Speter.endif 2297121Sru 2397121Srumain.o: ${MAKEFILE} 2497121Sru 2564739Sgreen# Set the shell which make(1) uses. Bourne is the default, but a decent 2664739Sgreen# Korn shell works fine, and much faster. Using the C shell for this 2764739Sgreen# will almost certainly break everything, but it's Unix tradition to 2864739Sgreen# allow you to shoot yourself in the foot if you want to :-) 2964739Sgreen 3064739SgreenMAKE_SHELL?= sh 3164739Sgreen.if ${MAKE_SHELL} == "csh" 3264739SgreenCFLAGS+= -DDEFSHELL=0 3364739Sgreen.elif ${MAKE_SHELL} == "sh" 3464739SgreenCFLAGS+= -DDEFSHELL=1 3564739Sgreen.elif ${MAKE_SHELL} == "ksh" 3664739SgreenCFLAGS+= -DDEFSHELL=2 3764739Sgreen.else 3864739Sgreen.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"." 3964739Sgreen.endif 4064739Sgreen 411590Srgrimes.include <bsd.prog.mk> 42