From b1002e98e020e0a9e35bcf75eac5a991550fc0b2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 12 Feb 2015 10:38:01 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.tmpl.in b/make.tmpl.in index cfa065cfc..72e261362 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -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:/' >> $@; \