From: Yves Orton Date: Sat, 27 Dec 2008 15:05:03 +0000 (+0100) Subject: add cflags as a dependency for all object files. (it is used to control the arguments... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e21c97b9063f1fc4ea77e8bcfbdaddeaa8edc398;p=p5sagit%2Fp5-mst-13.2.git add cflags as a dependency for all object files. (it is used to control the arguments they are compiled with) --- diff --git a/Makefile.SH b/Makefile.SH index c746aed..0544918 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -513,13 +513,13 @@ splintflags = \ splintfiles = $(c1) -.c$(OBJ_EXT): cflags +.c$(OBJ_EXT): $(CCCMD) $(PLDLFLAGS) $*.c -.c.i: cflags +.c.i: $(CCCMDSRC) -E $*.c > $*.i -.c.s: cflags +.c.s: $(CCCMDSRC) -S $*.c all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make diff --git a/makedepend.SH b/makedepend.SH index 229a73d..e4f8252 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -179,6 +179,7 @@ for file in `$cat .clist`; do -e 's|\.c\.c|.c|' $uwinfix .cout .cerr| \ $uniq | $sort | $uniq >> .deptmp fi + echo "$filebase\$(OBJ_EXT): cflags" >> .deptmp done $sed <$mf >$mf.new -e '1,/^# AUTOMATICALLY/!d'