Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 08/01/2003 17:04:08
Module Name:	src
Committed By:	lukem
Date:		Fri Aug  1 17:04:08 UTC 2003

Modified Files:
	src/bin/csh: Makefile
	src/bin/ksh: Makefile
	src/games/atc: Makefile
	src/games/hack: Makefile
	src/gnu/lib/libgcc3: Makefile
	src/gnu/lib/libobjc: Makefile
	src/gnu/lib/libobjc3: Makefile
	src/gnu/usr.bin/binutils/ld: Makefile
	src/gnu/usr.bin/gcc/backend: Makefile
	src/gnu/usr.bin/gcc/f771: Makefile
	src/gnu/usr.bin/gcc3/backend: Makefile
	src/gnu/usr.bin/gcc3/f771: Makefile
	src/gnu/usr.bin/gcc3/frontend: Makefile
	src/lib/libasn1: Makefile
	src/lib/libc/arch/alpha/gen: Makefile.inc
	src/lib/libc/arch/alpha/net: Makefile.inc
	src/lib/libc/arch/arm/gen: Makefile.inc
	src/lib/libc/arch/i386/gen: Makefile.inc
	src/lib/libc/arch/i386/net: Makefile.inc
	src/lib/libc/arch/i386/stdlib: Makefile.inc
	src/lib/libc/arch/i386/string: Makefile.inc
	src/lib/libc/arch/m68k/gen: Makefile.inc
	src/lib/libc/arch/mips/gen: Makefile.inc
	src/lib/libc/arch/mips/net: Makefile.inc
	src/lib/libc/arch/ns32k: Makefile.inc
	src/lib/libc/arch/ns32k/gen: Makefile.inc
	src/lib/libc/arch/powerpc/gen: Makefile.inc
	src/lib/libc/arch/sh3/gen: Makefile.inc
	src/lib/libc/arch/sh5/gen: Makefile.inc
	src/lib/libc/arch/sh5/net: Makefile.inc
	src/lib/libc/arch/sparc/gen: Makefile.inc
	src/lib/libc/arch/sparc64/gen: Makefile.inc
	src/lib/libc/arch/vax/gen: Makefile.inc
	src/lib/libc/arch/x86_64/gen: Makefile.inc
	src/lib/libc/arch/x86_64/net: Makefile.inc
	src/lib/libc/arch/x86_64/stdlib: Makefile.inc
	src/lib/libc/arch/x86_64/string: Makefile.inc
	src/lib/libc/sys: Makefile.inc
	src/lib/libedit: Makefile
	src/lib/libkadm5srv: Makefile
	src/lib/libpcap: Makefile
	src/lib/libposix/sys: Makefile.inc
	src/lib/libpthread: Makefile
	src/regress/lib/libc/rpc/xdr: Makefile
	src/sbin/wsconsctl: Makefile
	src/share/doc/standards/xopen: Makefile
	src/share/mk: bsd.dep.mk bsd.hostlib.mk bsd.hostprog.mk bsd.kmod.mk
	    bsd.lib.mk bsd.prog.mk
	src/sys/lkm/compat: Makefile.inc
	src/sys/lkm/exec/ultrix_ecoff: Makefile
	src/tools/compat: Makefile
	src/usr.bin/mkcsmapper: Makefile
	src/usr.bin/mkesdb: Makefile
	src/usr.bin/mklocale: Makefile
	src/usr.bin/tn3270/mset: Makefile
	src/usr.bin/tn3270/tn3270: Makefile
	src/usr.bin/tn3270/tools/prt3270: Makefile
	src/usr.bin/top: Makefile
	src/usr.bin/xlint/lint1: Makefile
	src/usr.sbin/amd/amd: Makefile
	src/usr.sbin/amd/fsinfo: Makefile
	src/usr.sbin/bind/named: Makefile
	src/usr.sbin/gspa/gspa: Makefile
	src/usr.sbin/rpc.pcnfsd: Makefile.clnt

Log Message:
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".


To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 src/bin/csh/Makefile
cvs rdiff -r1.16 -r1.17 src/bin/ksh/Makefile
cvs rdiff -r1.22 -r1.23 src/games/atc/Makefile
cvs rdiff -r1.34 -r1.35 src/games/hack/Makefile
cvs rdiff -r1.7 -r1.8 src/gnu/lib/libgcc3/Makefile
cvs rdiff -r1.22 -r1.23 src/gnu/lib/libobjc/Makefile
cvs rdiff -r1.5 -r1.6 src/gnu/lib/libobjc3/Makefile
cvs rdiff -r1.12 -r1.13 src/gnu/usr.bin/binutils/ld/Makefile
cvs rdiff -r1.10 -r1.11 src/gnu/usr.bin/gcc/backend/Makefile
cvs rdiff -r1.5 -r1.6 src/gnu/usr.bin/gcc/f771/Makefile
cvs rdiff -r1.4 -r1.5 src/gnu/usr.bin/gcc3/backend/Makefile
cvs rdiff -r1.3 -r1.4 src/gnu/usr.bin/gcc3/f771/Makefile
cvs rdiff -r1.3 -r1.4 src/gnu/usr.bin/gcc3/frontend/Makefile
cvs rdiff -r1.22 -r1.23 src/lib/libasn1/Makefile
cvs rdiff -r1.12 -r1.13 src/lib/libc/arch/alpha/gen/Makefile.inc
cvs rdiff -r1.3 -r1.4 src/lib/libc/arch/alpha/net/Makefile.inc
cvs rdiff -r1.5 -r1.6 src/lib/libc/arch/arm/gen/Makefile.inc
cvs rdiff -r1.15 -r1.16 src/lib/libc/arch/i386/gen/Makefile.inc
cvs rdiff -r1.3 -r1.4 src/lib/libc/arch/i386/net/Makefile.inc
cvs rdiff -r1.3 -r1.4 src/lib/libc/arch/i386/stdlib/Makefile.inc
cvs rdiff -r1.2 -r1.3 src/lib/libc/arch/i386/string/Makefile.inc
cvs rdiff -r1.17 -r1.18 src/lib/libc/arch/m68k/gen/Makefile.inc
cvs rdiff -r1.16 -r1.17 src/lib/libc/arch/mips/gen/Makefile.inc
cvs rdiff -r1.2 -r1.3 src/lib/libc/arch/mips/net/Makefile.inc
cvs rdiff -r1.14 -r1.15 src/lib/libc/arch/ns32k/Makefile.inc
cvs rdiff -r1.17 -r1.18 src/lib/libc/arch/ns32k/gen/Makefile.inc
cvs rdiff -r1.12 -r1.13 src/lib/libc/arch/powerpc/gen/Makefile.inc
cvs rdiff -r1.10 -r1.11 src/lib/libc/arch/sh3/gen/Makefile.inc
cvs rdiff -r1.8 -r1.9 src/lib/libc/arch/sh5/gen/Makefile.inc
cvs rdiff -r1.1 -r1.2 src/lib/libc/arch/sh5/net/Makefile.inc
cvs rdiff -r1.11 -r1.12 src/lib/libc/arch/sparc/gen/Makefile.inc
cvs rdiff -r1.8 -r1.9 src/lib/libc/arch/sparc64/gen/Makefile.inc
cvs rdiff -r1.9 -r1.10 src/lib/libc/arch/vax/gen/Makefile.inc
cvs rdiff -r1.5 -r1.6 src/lib/libc/arch/x86_64/gen/Makefile.inc
cvs rdiff -r1.1 -r1.2 src/lib/libc/arch/x86_64/net/Makefile.inc
cvs rdiff -r1.1 -r1.2 src/lib/libc/arch/x86_64/stdlib/Makefile.inc
cvs rdiff -r1.1 -r1.2 src/lib/libc/arch/x86_64/string/Makefile.inc
cvs rdiff -r1.140 -r1.141 src/lib/libc/sys/Makefile.inc
cvs rdiff -r1.27 -r1.28 src/lib/libedit/Makefile
cvs rdiff -r1.21 -r1.22 src/lib/libkadm5srv/Makefile
cvs rdiff -r1.23 -r1.24 src/lib/libpcap/Makefile
cvs rdiff -r1.17 -r1.18 src/lib/libposix/sys/Makefile.inc
cvs rdiff -r1.19 -r1.20 src/lib/libpthread/Makefile
cvs rdiff -r1.9 -r1.10 src/regress/lib/libc/rpc/xdr/Makefile
cvs rdiff -r1.6 -r1.7 src/sbin/wsconsctl/Makefile
cvs rdiff -r1.4 -r1.5 src/share/doc/standards/xopen/Makefile
cvs rdiff -r1.54 -r1.55 src/share/mk/bsd.dep.mk
cvs rdiff -r1.6 -r1.7 src/share/mk/bsd.hostlib.mk
cvs rdiff -r1.31 -r1.32 src/share/mk/bsd.hostprog.mk
cvs rdiff -r1.66 -r1.67 src/share/mk/bsd.kmod.mk
cvs rdiff -r1.229 -r1.230 src/share/mk/bsd.lib.mk
cvs rdiff -r1.181 -r1.182 src/share/mk/bsd.prog.mk
cvs rdiff -r1.13 -r1.14 src/sys/lkm/compat/Makefile.inc
cvs rdiff -r1.5 -r1.6 src/sys/lkm/exec/ultrix_ecoff/Makefile
cvs rdiff -r1.25 -r1.26 src/tools/compat/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/mkcsmapper/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/mkesdb/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/mklocale/Makefile
cvs rdiff -r1.23 -r1.24 src/usr.bin/tn3270/mset/Makefile
cvs rdiff -r1.33 -r1.34 src/usr.bin/tn3270/tn3270/Makefile
cvs rdiff -r1.8 -r1.9 src/usr.bin/tn3270/tools/prt3270/Makefile
cvs rdiff -r1.5 -r1.6 src/usr.bin/top/Makefile
cvs rdiff -r1.31 -r1.32 src/usr.bin/xlint/lint1/Makefile
cvs rdiff -r1.21 -r1.22 src/usr.sbin/amd/amd/Makefile
cvs rdiff -r1.17 -r1.18 src/usr.sbin/amd/fsinfo/Makefile
cvs rdiff -r1.11 -r1.12 src/usr.sbin/bind/named/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.sbin/gspa/gspa/Makefile
cvs rdiff -r1.12 -r1.13 src/usr.sbin/rpc.pcnfsd/Makefile.clnt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.