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 $
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
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
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
28 DEFAULT_SYS_PATH
= /usr
/share
/mk
:...
/share
/mk
33 CPPFLAGS
+= -DUSE_EMALLOC
35 CPPFLAGS
+= -DMAKE_NATIVE
37 CFLAGS
+= -D_PATH_DEFSYSPATH
=\"${DEFAULT_SYS_PATH}\"
41 CFLAGS
+= -DHAVE_CONFIG_H
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
54 .PATH
: ${srcdir}/lst.lib
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
}
65 .
include <bsd.prog.mk
>