summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-04 20:44:56 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-04 20:44:56 +0000
commit189bff103d7a43dace9ae03a4f5953cf55e7d84c (patch)
tree4410d8cc50925a02d3704d115f037f41eaea0c3b
parentd61b1d505ceb7b9ba39915b252529691ef4e1f44 (diff)
downloadbcm5719-llvm-189bff103d7a43dace9ae03a4f5953cf55e7d84c.tar.gz
bcm5719-llvm-189bff103d7a43dace9ae03a4f5953cf55e7d84c.zip
Fix makefile rules to prevent CFLAGS from appearing twice in the command line.
llvm-svn: 136917
-rw-r--r--lldb/test/make/Makefile.rules9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules
index 540e97ca564..59aefc749f4 100644
--- a/lldb/test/make/Makefile.rules
+++ b/lldb/test/make/Makefile.rules
@@ -158,28 +158,27 @@ endif
# the compiler -MM option. The -M option will list all system headers,
# and the -MM option will list all non-system dependencies.
#----------------------------------------------------------------------
-CPPFLAGS ?= $(CFLAGS)
%.d: %.c
@set -e; rm -f $@; \
- $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+ $(CC) -M $(CFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.d: %.cpp
@set -e; rm -f $@; \
- $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+ $(CC) -M $(CXXFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.d: %.m
@set -e; rm -f $@; \
- $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+ $(CC) -M $(CFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.d: %.mm
@set -e; rm -f $@; \
- $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+ $(CC) -M $(CXXFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
OpenPOWER on IntegriCloud