From a93ea220fcb3e34cdfdcd4d7a5d391e0b2b4f2ba Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 1 Aug 2003 17:03:41 +0000 Subject: Rework how dependency generation is performed: * 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". --- tools/compat/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/compat/Makefile b/tools/compat/Makefile index f1e892d1c7d..48717de0246 100644 --- a/tools/compat/Makefile +++ b/tools/compat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2003/07/29 19:25:02 fredb Exp $ +# $NetBSD: Makefile,v 1.26 2003/08/01 17:04:02 lukem Exp $ HOSTLIB= nbcompat @@ -38,7 +38,8 @@ CPPFLAGS+= -I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H \ ${.CURDIR}/../../usr.bin/lex DPSRCS+= defs.mk -CLEANFILES= config.log config.status configure.lineno confdefs.h *.stamp +CLEANFILES+= defs.mk +CLEANFILES+= config.log config.status configure.lineno confdefs.h *.stamp # Get components of Berkeley DB. _CURDIR:= ${.CURDIR} -- cgit