summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc
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 /gnu/usr.bin/gcc
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 'gnu/usr.bin/gcc')
-rw-r--r--gnu/usr.bin/gcc/backend/Makefile5
-rw-r--r--gnu/usr.bin/gcc/f771/Makefile4
2 files changed, 5 insertions, 4 deletions
diff --git a/gnu/usr.bin/gcc/backend/Makefile b/gnu/usr.bin/gcc/backend/Makefile
index b6652821b2a..a9119ae5395 100644
--- a/gnu/usr.bin/gcc/backend/Makefile
+++ b/gnu/usr.bin/gcc/backend/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2003/07/28 15:25:04 lukem Exp $
+# $NetBSD: Makefile,v 1.11 2003/08/01 17:03:44 lukem Exp $
NOLINKLIB= # defined
NOLINT= # defined
@@ -13,6 +13,8 @@ CPPFLAGS+= -I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
-DTARGET_NAME=\"${MACHINE_GNU_PLATFORM}\"
HOST_CPPFLAGS+= -I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
+DPSRCS+= insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
+
.include <bsd.lib.mk>
# Independent generation programs.
@@ -41,6 +43,5 @@ insn-${f}: genrtl.h gen${f:R}.c obstack.c ${G_md_file} \
insn-attrtab.c: ${G_HOST_RTLANAL:S/^l-//:.o=.c}
insn-attrtab.c insn-extract.c: insn-config.h
-${OBJS} ${DEPENDSRCS}: insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
.PATH: ${DIST}/gcc ${DIST}/libiberty ${G_out_file:H}
diff --git a/gnu/usr.bin/gcc/f771/Makefile b/gnu/usr.bin/gcc/f771/Makefile
index c2e622db185..46c73b3f8b5 100644
--- a/gnu/usr.bin/gcc/f771/Makefile
+++ b/gnu/usr.bin/gcc/f771/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2003/07/28 15:25:04 lukem Exp $
+# $NetBSD: Makefile,v 1.6 2003/08/01 17:03:44 lukem Exp $
PROG= f771
SRCS= ${G_F77_OBJS:.o=.c}
@@ -8,6 +8,7 @@ HOST_CPPFLAGS+= -I${GCCARCH} -DUSE_HCONFIG= \
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
.for f in 1t 2t fo io nq op ot
+DPSRCS+= str-${f}.h
CLEANFILES+= str-${f}.h str-${f}.j
.endfor
@@ -21,7 +22,6 @@ CLEANFILES+= fini
str-${f}.h str-${f}.j: str-${f}.fin fini
./fini ${>:M*.fin} str-${f}.j str-${f}.h
-${OBJS} ${DEPENDSRCS}: str-${f}.h
.endfor
.PATH: ${DIST}/gcc/f