Reduce diff between FreeBSD. kqueue code doesn't crash the kernel.
[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.16 2005/01/05 22:21:46 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 main.c \
8         make.c parse.c str.c suff.c targ.c util.c var.c var_modify.c
9 SRCS+=  lstAppend.c lstConcat.c lstDeQueue.c lstDestroy.c \
10         lstDupl.c lstFindFrom.c lstForEachFrom.c lstInsert.c \
11         lstMember.c lstRemove.c
12 .PATH:  ${.CURDIR}/lst.lib
13
14 WARNS?= 3
15 NOSHARED?=      YES
16
17 CFLAGS+=-DMAKE_VERSION=\"5200408120\"
18
19 # There is no obvious performance improvement currently.
20 # CFLAGS+=-DUSE_KQUEUE
21
22 main.o: ${MAKEFILE}
23
24 # Set the shell which make(1) uses.  Bourne is the default, but a decent
25 # Korn shell works fine, and much faster.  Using the C shell for this
26 # will almost certainly break everything, but it's Unix tradition to
27 # allow you to shoot yourself in the foot if you want to :-)
28
29 MAKE_SHELL?=    sh
30 .if ${MAKE_SHELL} == "csh"
31 CFLAGS+=        -DDEFSHELL=0
32 .elif ${MAKE_SHELL} == "sh"
33 CFLAGS+=        -DDEFSHELL=1
34 .elif ${MAKE_SHELL} == "ksh"
35 CFLAGS+=        -DDEFSHELL=2
36 .else
37 .error "MAKE_SHELL must be set to one of \"csh\", \"sh\" or \"ksh\"."
38 .endif
39
40 .include <bsd.prog.mk>