a93ea220fc
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204. * To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx * If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES * Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS} * Deprecate the (short lived) DEPENDSRCS Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries. Tested with "make -j 8 distribution" and "make distribution".
24 lines
523 B
Makefile
24 lines
523 B
Makefile
# $NetBSD: Makefile,v 1.2 2003/08/01 17:04:03 lukem Exp $
|
|
|
|
.ifndef HOSTPROG
|
|
.include <bsd.own.mk>
|
|
.endif
|
|
|
|
.PATH: ${NETBSDSRCDIR}/lib/libc/citrus
|
|
|
|
WARNS?= 2
|
|
PROG= mkcsmapper
|
|
SRCS= yacc.y lex.l \
|
|
citrus_db_factory.c citrus_bcs.c citrus_db_hash.c \
|
|
citrus_lookup_factory.c citrus_pivot_factory.c
|
|
CPPFLAGS+= -I. -I${.CURDIR} -I${NETBSDSRCDIR}/lib/libc \
|
|
-I${NETBSDSRCDIR}/lib/libc/citrus \
|
|
-I${NETBSDSRCDIR}/lib/libc/citrus/modules \
|
|
-DHOSTPROG
|
|
YHEADER= 1
|
|
MKMAN= no
|
|
|
|
.ifndef HOSTPROG
|
|
.include <bsd.prog.mk>
|
|
.endif
|