Makefile revision 138222
1#	@(#)Makefile	5.2 (Berkeley) 12/28/90
2#	$Id: Makefile,v 1.6 1994/06/30 05:33:39 cgd Exp $
3# $FreeBSD: head/usr.bin/make/Makefile 138222 2004-11-30 10:35:04Z harti $
4
5PROG=	make
6CFLAGS+=-I${.CURDIR}
7SRCS=	arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
8	make.c parse.c str.c suff.c targ.c util.c var.c var_modify.c
9SRCS+=	lstAppend.c lstClose.c lstConcat.c lstDeQueue.c lstDestroy.c \
10	lstDupl.c lstFindFrom.c lstForEachFrom.c lstInit.c lstInsert.c \
11	lstIsAtEnd.c lstMember.c lstNext.c lstOpen.c lstRemove.c
12.PATH:	${.CURDIR}/lst.lib
13
14WARNS?=	3
15NOSHARED?=	YES
16
17CFLAGS+=-DMAKE_VERSION=\"5200408120\"
18.if defined(_UPGRADING)
19CFLAGS+=-D__FBSDID=__RCSID
20.endif
21
22# There is no obvious performance improvement currently.
23# CFLAGS+=-DUSE_KQUEUE
24
25main.o: ${MAKEFILE}
26
27# Set the shell which make(1) uses.  Bourne is the default, but a decent
28# Korn shell works fine, and much faster.  Using the C shell for this
29# will almost certainly break everything, but it's Unix tradition to
30# allow you to shoot yourself in the foot if you want to :-)
31
32MAKE_SHELL?=	sh
33.if ${MAKE_SHELL} == "csh"
34CFLAGS+=	-DDEFSHELL=0
35.elif ${MAKE_SHELL} == "sh"
36CFLAGS+=	-DDEFSHELL=1
37.elif ${MAKE_SHELL} == "ksh"
38CFLAGS+=	-DDEFSHELL=2
39.else
40.error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
41.endif
42
43.include <bsd.prog.mk>
44