Makefile revision 136910
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 134843 2004-09-06 15:25:07Z jmg $
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 \
8106106Sjmallett	make.c parse.c str.c suff.c targ.c util.c var.c var_modify.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
18133562ShartiCFLAGS+=-DMAKE_VERSION=\"5200408120\"
19102692Speter.if defined(_UPGRADING)
20102692SpeterCFLAGS+=-D__FBSDID=__RCSID
21102692Speter.endif
2297121Sru
23134843Sjmg# There is no obvious performance improvement currently.
24104475Sphk# CFLAGS+=-DUSE_KQUEUE
25104475Sphk
2697121Srumain.o: ${MAKEFILE}
2797121Sru
2864739Sgreen# Set the shell which make(1) uses.  Bourne is the default, but a decent
2964739Sgreen# Korn shell works fine, and much faster.  Using the C shell for this
3064739Sgreen# will almost certainly break everything, but it's Unix tradition to
3164739Sgreen# allow you to shoot yourself in the foot if you want to :-)
3264739Sgreen
3364739SgreenMAKE_SHELL?=	sh
3464739Sgreen.if ${MAKE_SHELL} == "csh"
3564739SgreenCFLAGS+=	-DDEFSHELL=0
3664739Sgreen.elif ${MAKE_SHELL} == "sh"
3764739SgreenCFLAGS+=	-DDEFSHELL=1
3864739Sgreen.elif ${MAKE_SHELL} == "ksh"
3964739SgreenCFLAGS+=	-DDEFSHELL=2
4064739Sgreen.else
4164739Sgreen.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
4264739Sgreen.endif
4364739Sgreen
441590Srgrimes.include <bsd.prog.mk>
45