a93ea220fc
* 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".
28 lines
561 B
Makefile
28 lines
561 B
Makefile
# $NetBSD: Makefile,v 1.6 2003/08/01 17:03:44 lukem Exp $
|
|
|
|
PROG= f771
|
|
SRCS= ${G_F77_OBJS:.o=.c}
|
|
|
|
CPPFLAGS+= -I${DIST}/gcc/f -I.
|
|
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
|
|
|
|
.include "../Makefile.backend"
|
|
|
|
fini: fini.c proj.c
|
|
${HOST_LINK.c} -o $@ $>
|
|
CLEANFILES+= fini
|
|
|
|
.for f in 1t 2t fo io nq op ot
|
|
str-${f}.h str-${f}.j: str-${f}.fin fini
|
|
./fini ${>:M*.fin} str-${f}.j str-${f}.h
|
|
|
|
.endfor
|
|
|
|
.PATH: ${DIST}/gcc/f
|