Makefile revision 66465
1#	@(#)Makefile	5.2 (Berkeley) 12/28/90
2# $FreeBSD: head/usr.bin/make/Makefile 66465 2000-09-29 19:51:48Z will $
3#
4# MAINTAINER = Will Andrews <will@FreeBSD.org>
5
6PROG=	make
7CFLAGS+= -I${.CURDIR}
8SRCS=	arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
9	make.c parse.c str.c suff.c targ.c var.c util.c
10SRCS+=	lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
11	lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
12	lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
13	lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
14	lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
15.PATH:	${.CURDIR}/lst.lib
16
17# Set the shell which make(1) uses.  Bourne is the default, but a decent
18# Korn shell works fine, and much faster.  Using the C shell for this
19# will almost certainly break everything, but it's Unix tradition to
20# allow you to shoot yourself in the foot if you want to :-)
21
22MAKE_SHELL?=	sh
23.if ${MAKE_SHELL} == "csh"
24CFLAGS+=	-DDEFSHELL=0
25.elif ${MAKE_SHELL} == "sh"
26CFLAGS+=	-DDEFSHELL=1
27.elif ${MAKE_SHELL} == "ksh"
28CFLAGS+=	-DDEFSHELL=2
29.else
30.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
31.endif
32
33.include <bsd.prog.mk>
34