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/powerpc | |
| 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/powerpc')
| -rw-r--r-- | lib/libc/arch/powerpc/gen/Makefile.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/arch/powerpc/gen/Makefile.inc b/lib/libc/arch/powerpc/gen/Makefile.inc index 64df7c3a32a..fb5ea20d8a9 100644 --- a/lib/libc/arch/powerpc/gen/Makefile.inc +++ b/lib/libc/arch/powerpc/gen/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.12 2003/05/17 15:05:54 thorpej Exp $ +# $NetBSD: Makefile.inc,v 1.13 2003/08/01 17:03:53 lukem Exp $ SRCS+= _setjmp.S setjmp.S sigsetjmp.S __setjmp14.S __sigsetjmp14.S SRCS+= bswap16.c bswap32.c bswap64.c @@ -13,5 +13,7 @@ SRCS+= infinity_ieee754.c nanf_ieee754.c SRCS+= frexp_ieee754.c isinf_ieee754.c isinfl_ieee754.c isnan_ieee754.c SRCS+= isnanl_ieee754.c ldexp_ieee754.c modf_ieee754.c -LSRCS+= Lint_swapcontext.c -DPSRCS+=Lint_swapcontext.c +SRCS.powerpc.gen=Lint_swapcontext.c +LSRCS+= ${SRCS.powerpc.gen} +DPSRCS+= ${SRCS.powerpc.gen} +CLEANFILES+= ${SRCS.powerpc.gen} |
