patch-7.107
[dragonfly.git] / usr.bin / make / Makefile
1 #       @(#)Makefile    5.2 (Berkeley) 12/28/90
2 # $FreeBSD: src/usr.bin/make/Makefile,v 1.13.2.1 2001/05/25 08:33:40 sobomax Exp $
3 # $DragonFly: src/usr.bin/make/Makefile,v 1.18 2005/01/09 18:32:28 okumoto Exp $
4
5 PROG=   make
6 CFLAGS+=-I${.CURDIR}
7 SRCS=   arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c lst.c main.c \
8         make.c parse.c str.c suff.c targ.c util.c var.c var_modify.c
9
10 WARNS?= 6
11 NOSHARED?=      YES
12
13 CFLAGS+=-DMAKE_VERSION=\"5200408120\"
14
15 # There is no obvious performance improvement currently.
16 # CFLAGS+=-DUSE_KQUEUE
17
18 main.o: ${MAKEFILE}
19
20 # Set the shell which make(1) uses.  Bourne is the default, but a decent
21 # Korn shell works fine, and much faster.  Using the C shell for this
22 # will almost certainly break everything, but it's Unix tradition to
23 # allow you to shoot yourself in the foot if you want to :-)
24
25 MAKE_SHELL?=    sh
26 .if ${MAKE_SHELL} == "csh"
27 CFLAGS+=        -DDEFSHELL=0
28 .elif ${MAKE_SHELL} == "sh"
29 CFLAGS+=        -DDEFSHELL=1
30 .elif ${MAKE_SHELL} == "ksh"
31 CFLAGS+=        -DDEFSHELL=2
32 .else
33 .error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
34 .endif
35
36 .include <bsd.prog.mk>