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". --- lib/libc/sys/Makefile.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/libc/sys') diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 438ff77e303..e4e3d4a08a4 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.140 2003/05/08 13:19:44 christos Exp $ +# $NetBSD: Makefile.inc,v 1.141 2003/08/01 17:03:58 lukem Exp $ # @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 # sys sources @@ -18,8 +18,9 @@ _LSRC= Lint_Ovfork.c Lint___clone.c Lint___vfork14.c Lint_brk.c Lint_clone.c \ LintSysNormal.c LintSysNoerr.c LintSysPseudoNoerr.c .if ${MKLINT} != "no" -LSRCS+= ${_LSRC} -DPSRCS+=${_LSRC:MLintSys*.c} +LSRCS+= ${_LSRC} +DPSRCS+= ${_LSRC:MLintSys*.c} +CLEANFILES+= ${_LSRC:MLintSys*.c} .endif # glue to offer userland wrappers for some syscalls -- cgit