kernel: Remove some unused variables in netgraph/netgraph7.
[dragonfly.git] / usr.bin / bmake / Makefile
blob4d8b233e0784a9607678c0a4a637182009c3ab8d
1 # $NetBSD: Makefile,v 1.56 2012/05/30 21:54:23 sjg Exp $
2 # @(#)Makefile 5.2 (Berkeley) 12/28/90
3 # $Id: Makefile.in,v 1.174 2012/10/10 18:46:24 sjg Exp $
5 PROG= make
6 SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \
7 make.c parse.c str.c suff.c targ.c trace.c var.c util.c
8 SRCS+= strlist.c
9 SRCS+= make_malloc.c
10 SRCS+= 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 SRCS += lstPrev.c
17 SRCS+= stresep.c
18 SRCS+= meta.c
20 # you can use this Makefile if you have an earlier version of bmake.
21 srcdir= ${.CURDIR}/../../contrib/bmake
23 # Base version on src date
24 MAKE_VERSION= 20121010
25 .if defined(BOOTSTRAPPING)
26 DEFAULT_SYS_PATH = ${.CURDIR}/../../share/mk
27 .else
28 DEFAULT_SYS_PATH = /usr/share/mk:.../share/mk
29 .endif
31 WARNS?= 4
33 CPPFLAGS+= -DUSE_EMALLOC
34 CPPFLAGS+= -DUSE_META
35 CPPFLAGS+= -DMAKE_NATIVE
36 CFLAGS+= ${CPPFLAGS}
37 CFLAGS+= -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
38 CFLAGS+= -I${.CURDIR}
39 CFLAGS+= -I${.OBJDIR}
40 CFLAGS+= -I${srcdir}
41 CFLAGS+= -DHAVE_CONFIG_H
42 CFLAGS+= ${XDEFS}
43 CFLAGS+= ${CFLAGS_${.TARGET:T}}
44 CFLAGS+= ${COPTS.${.ALLSRC:M*.c:T}}
45 COPTS.main.c= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
46 COPTS.var.c= -Wno-cast-qual
47 COPTS.job.c= -Wno-format-nonliteral
48 COPTS.parse.c= -Wno-format-nonliteral
49 COPTS.var.c= -Wno-format-nonliteral
51 LDADD= -lutil
53 .PATH: ${srcdir}
54 .PATH: ${srcdir}/lst.lib
56 MAN= make.1
57 make.1: bmake.1
58 sed -e 's/^.Nx/NetBSD/' -e '/^.Nm/s/bmake/${PROG}/' \
59 -e '/^.Sh HISTORY/rmy.history' \
60 -e '/^.Sh HISTORY/,$$s,^.Nm,make,' \
61 < ${.ALLSRC} > ${.TARGET}
63 CLEANFILES+= make.1
65 .include <bsd.prog.mk>