Makefile revision 76012
118730Ssteve#	@(#)Makefile	5.2 (Berkeley) 12/28/90
250477Speter# $FreeBSD: head/usr.bin/make/Makefile 76012 2001-04-26 04:40:57Z will $
31590Srgrimes
41590SrgrimesPROG=	make
576012SwillCFLAGS+=-I${.CURDIR}
61590SrgrimesSRCS=	arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
718730Ssteve	make.c parse.c str.c suff.c targ.c var.c util.c
81590SrgrimesSRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
91590Srgrimes	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
101590Srgrimes	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
111590Srgrimes	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
121590Srgrimes	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
131590Srgrimes.PATH:	${.CURDIR}/lst.lib
141590Srgrimes
1564739Sgreen# Set the shell which make(1) uses.  Bourne is the default, but a decent
1664739Sgreen# Korn shell works fine, and much faster.  Using the C shell for this
1764739Sgreen# will almost certainly break everything, but it's Unix tradition to
1864739Sgreen# allow you to shoot yourself in the foot if you want to :-)
1964739Sgreen
2064739SgreenMAKE_SHELL?=	sh
2164739Sgreen.if ${MAKE_SHELL} == "csh"
2264739SgreenCFLAGS+=	-DDEFSHELL=0
2364739Sgreen.elif ${MAKE_SHELL} == "sh"
2464739SgreenCFLAGS+=	-DDEFSHELL=1
2564739Sgreen.elif ${MAKE_SHELL} == "ksh"
2664739SgreenCFLAGS+=	-DDEFSHELL=2
2764739Sgreen.else
2864739Sgreen.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
2964739Sgreen.endif
3064739Sgreen
311590Srgrimes.include <bsd.prog.mk>
32