Makefile revision 76801
118730Ssteve#	@(#)Makefile	5.2 (Berkeley) 12/28/90
250477Speter# $FreeBSD: head/usr.bin/make/Makefile 76801 2001-05-18 09:05:56Z sobomax $
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
1576801SsobomaxNOSHARED?=	YES
1676801Ssobomax
1764739Sgreen# Set the shell which make(1) uses.  Bourne is the default, but a decent
1864739Sgreen# Korn shell works fine, and much faster.  Using the C shell for this
1964739Sgreen# will almost certainly break everything, but it's Unix tradition to
2064739Sgreen# allow you to shoot yourself in the foot if you want to :-)
2164739Sgreen
2264739SgreenMAKE_SHELL?=	sh
2364739Sgreen.if ${MAKE_SHELL} == "csh"
2464739SgreenCFLAGS+=	-DDEFSHELL=0
2564739Sgreen.elif ${MAKE_SHELL} == "sh"
2664739SgreenCFLAGS+=	-DDEFSHELL=1
2764739Sgreen.elif ${MAKE_SHELL} == "ksh"
2864739SgreenCFLAGS+=	-DDEFSHELL=2
2964739Sgreen.else
3064739Sgreen.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
3164739Sgreen.endif
3264739Sgreen
331590Srgrimes.include <bsd.prog.mk>
34