diff options
| author | lukem <lukem@NetBSD.org> | 2003-08-01 17:03:41 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2003-08-01 17:03:41 +0000 |
| commit | a93ea220fcb3e34cdfdcd4d7a5d391e0b2b4f2ba (patch) | |
| tree | c9adfc000f1b3f310cf2f812f02823dbff7766ca /lib/libc/arch/mips | |
| parent | 5aa077f5cfe13c86bb3596f0e709337147ffc49c (diff) | |
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".
Diffstat (limited to 'lib/libc/arch/mips')
| -rw-r--r-- | lib/libc/arch/mips/gen/Makefile.inc | 11 | ||||
| -rw-r--r-- | lib/libc/arch/mips/net/Makefile.inc | 8 |
2 files changed, 10 insertions, 9 deletions
diff --git a/lib/libc/arch/mips/gen/Makefile.inc b/lib/libc/arch/mips/gen/Makefile.inc index d1106246f0a..cd6166ebd21 100644 --- a/lib/libc/arch/mips/gen/Makefile.inc +++ b/lib/libc/arch/mips/gen/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.16 2003/05/17 15:05:53 thorpej Exp $ +# $NetBSD: Makefile.inc,v 1.17 2003/08/01 17:03:49 lukem Exp $ SRCS+= fabs.S ldexp.S modf.S @@ -20,8 +20,7 @@ SRCS+= makecontext.c resumecontext.c _resumecontext.S swapcontext.S _lwp.c # mips abi builtin extensions (used by GCC for lexical-closure trampoline) SRCS+= cacheflush.c -LSRCS+= Lint_bswap16.c Lint_bswap32.c -DPSRCS+= Lint_bswap16.c Lint_bswap32.c - -LSRCS+= Lint_swapcontext.c -DPSRCS+= Lint_swapcontext.c +SRCS.mips.gen= Lint_bswap16.c Lint_bswap32.c Lint_swapcontext.c +LSRCS+= ${SRCS.mips.gen} +DPSRCS+= ${SRCS.mips.gen} +CLEANFILES+= ${SRCS.mips.gen} diff --git a/lib/libc/arch/mips/net/Makefile.inc b/lib/libc/arch/mips/net/Makefile.inc index cdc4458ef4e..bb679933b08 100644 --- a/lib/libc/arch/mips/net/Makefile.inc +++ b/lib/libc/arch/mips/net/Makefile.inc @@ -1,8 +1,10 @@ -# $NetBSD: Makefile.inc,v 1.2 1999/01/15 13:31:19 bouyer Exp $ +# $NetBSD: Makefile.inc,v 1.3 2003/08/01 17:03:51 lukem Exp $ # objects built from assembler sources (need lint stubs) # hton* and nto* functions provided by ../gen/byte_swap_*.S SRCS+= -LSRCS+= Lint_htonl.c Lint_htons.c Lint_ntohl.c Lint_ntohs.c -DPSRCS+= Lint_htonl.c Lint_htons.c Lint_ntohl.c Lint_ntohs.c +SRCS.mips.net= Lint_htonl.c Lint_htons.c Lint_ntohl.c Lint_ntohs.c +LSRCS+= ${SRCS.mips.net} +DPSRCS+= ${SRCS.mips.net} +CLEANFILES+= ${SRCS.mips.net} |
