master - makefiles: more _CFLAGS for -MM
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b1002e98e020e0a9e35bcf75eac5a991550fc0b2 Commit: b1002e98e020e0a9e35bcf75eac5a991550fc0b2 Parent: 65d95caad5cb7410286b1c2b189cfedb69fcbe7d Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Feb 12 10:38:01 2015 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Feb 12 15:38:50 2015 +0100
makefiles: more _CFLAGS for -MM
Move of valgrind flags to _CFLAGS make the -MM generation not compilable (d571eab3b2bbb9be80e75e633bf2e30834975552)
Add these _CFLAGS right into .c->.d rules
(as well as UDEV)
--- make.tmpl.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
make.tmpl.in +1 -1
@@ -423,7 +423,7 @@ $(LIB_STATIC): $(OBJECTS) set -e; \ FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \ DEPS=`echo $(DEPS) | sed -e 's/\\//\\\\\\//g'`; \ - $(CC) -MM $(INCLUDES) $(BLKID_CFLAGS) $(DEFS) -o $@ $<; \ + $(CC) -MM $(INCLUDES) $(BLKID_CFLAGS) $(VALGRIND_CFLAGS) $(UDEV_CFLAGS) $(DEFS) -o $@ $<; \ sed -i "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d $$FILE.pot: $$DEPS /g" $@; \ DEPLIST=`sed 's/ \\\\//;s/.*://;' < $@`; \ echo $$DEPLIST | fmt -1 | sed 's/ //g;s/\(.*\)/\1:/' >> $@; \