make.1: correct a few style issues
[dragonfly.git] / usr.bin / bmake / Makefile
CommitLineData
1957ada4
JM
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 $
4
5PROG= make
6SRCS= 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
8SRCS+= strlist.c
9SRCS+= make_malloc.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
15SRCS += lstPrev.c
16
17SRCS+= stresep.c
18SRCS+= meta.c
19
20# you can use this Makefile if you have an earlier version of bmake.
21srcdir= ${.CURDIR}/../../contrib/bmake
22
23# Base version on src date
24MAKE_VERSION= 20121010
2b01fcf9
JM
25.if defined(BOOTSTRAPPING)
26DEFAULT_SYS_PATH = ${.CURDIR}/../../share/mk
27.else
3db89b52 28DEFAULT_SYS_PATH = /usr/share/mk:.../share/mk
2b01fcf9 29.endif
1957ada4
JM
30
31WARNS?= 4
32
33CPPFLAGS+= -DUSE_EMALLOC
34CPPFLAGS+= -DUSE_META
35CPPFLAGS+= -DMAKE_NATIVE
36CFLAGS+= ${CPPFLAGS}
37CFLAGS+= -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
38CFLAGS+= -I${.CURDIR}
39CFLAGS+= -I${.OBJDIR}
40CFLAGS+= -I${srcdir}
41CFLAGS+= -DHAVE_CONFIG_H
42CFLAGS+= ${XDEFS}
43CFLAGS+= ${CFLAGS_${.TARGET:T}}
44CFLAGS+= ${COPTS.${.ALLSRC:M*.c:T}}
45COPTS.main.c= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
46COPTS.var.c= -Wno-cast-qual
47COPTS.job.c= -Wno-format-nonliteral
48COPTS.parse.c= -Wno-format-nonliteral
49COPTS.var.c= -Wno-format-nonliteral
50
51LDADD= -lutil
52
53.PATH: ${srcdir}
54.PATH: ${srcdir}/lst.lib
55
56MAN= make.1
57make.1: bmake.1
f4b3f8d4
FF
58 @sed -e '/^.Nm/s/bmake/${PROG}/' -e 's/Xr make 1/Nm bmake/' \
59 -e 's/ $$//' -e 's/^make$$/.Nm/' -e 's/ NetBSD$$/\'$$'\n.Nx/' \
60 -e '/^NetBSD .\..$$/s/NetBSD/.Nx/' \
1957ada4
JM
61 < ${.ALLSRC} > ${.TARGET}
62
63CLEANFILES+= make.1
64
65.include <bsd.prog.mk>