summaryrefslogtreecommitdiff
path: root/lib/libc/arch/alpha
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2003-08-01 17:03:41 +0000
committerlukem <lukem@NetBSD.org>2003-08-01 17:03:41 +0000
commita93ea220fcb3e34cdfdcd4d7a5d391e0b2b4f2ba (patch)
treec9adfc000f1b3f310cf2f812f02823dbff7766ca /lib/libc/arch/alpha
parent5aa077f5cfe13c86bb3596f0e709337147ffc49c (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/alpha')
-rw-r--r--lib/libc/arch/alpha/gen/Makefile.inc10
-rw-r--r--lib/libc/arch/alpha/net/Makefile.inc8
2 files changed, 10 insertions, 8 deletions
diff --git a/lib/libc/arch/alpha/gen/Makefile.inc b/lib/libc/arch/alpha/gen/Makefile.inc
index b79b1a2ebc4..38099670ada 100644
--- a/lib/libc/arch/alpha/gen/Makefile.inc
+++ b/lib/libc/arch/alpha/gen/Makefile.inc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.12 2003/05/17 15:05:52 thorpej Exp $
+# $NetBSD: Makefile.inc,v 1.13 2003/08/01 17:03:46 lukem Exp $
SRCS+= fabs.S
@@ -14,10 +14,10 @@ SRCS+= setjmp.S __setjmp14.S
SRCS+= sigsetjmp.S __sigsetjmp14.S
SRCS+= byte_swap_2.S byte_swap_4.S bswap64.c
-LSRCS+= Lint_bswap16.c Lint_bswap32.c
-DPSRCS+= Lint_bswap16.c Lint_bswap32.c
+SRCS.alpha.gen= Lint_bswap16.c Lint_bswap32.c Lint_swapcontext.c
+LSRCS+= ${SRCS.alpha.gen}
+DPSRCS+= ${SRCS.alpha.gen}
+CLEANFILES+= ${SRCS.alpha.gen}
SRCS+= makecontext.c resumecontext.c swapcontext.S _lwp.c
-LSRCS+= Lint_swapcontext.c
-DPSRCS+= Lint_swapcontext.c
diff --git a/lib/libc/arch/alpha/net/Makefile.inc b/lib/libc/arch/alpha/net/Makefile.inc
index 05d86256452..3f3b29e43a8 100644
--- a/lib/libc/arch/alpha/net/Makefile.inc
+++ b/lib/libc/arch/alpha/net/Makefile.inc
@@ -1,8 +1,10 @@
-# $NetBSD: Makefile.inc,v 1.3 1999/01/15 13:31:16 bouyer Exp $
+# $NetBSD: Makefile.inc,v 1.4 2003/08/01 17:03:46 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.alpha.net= Lint_htonl.c Lint_htons.c Lint_ntohl.c Lint_ntohs.c
+LSRCS+= ${SRCS.alpha.net}
+DPSRCS+= ${SRCS.alpha.net}
+CLEANFILES+= ${SRCS.alpha.net}