summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-11-25 02:24:18 +0000
committerGitHub <noreply@github.com>2020-11-25 02:24:18 +0000
commit4f5f73d18b137930fb3048c0b385c82fa078db38 (patch)
tree7d021a1570e0edbc4596f2968056d6c84d9b8763
parent341db25668f3054c87aa3372c794e180f629af5d (diff)
parent2343da6bf1f41995b41a6c49d8a4993df0f7bcd1 (diff)
downloadabc-4f5f73d18b137930fb3048c0b385c82fa078db38.tar.gz
abc-4f5f73d18b137930fb3048c0b385c82fa078db38.tar.bz2
abc-4f5f73d18b137930fb3048c0b385c82fa078db38.zip
Merge pull request #8 from cr1901/dep-ccache
Makefile: support ccache for compiling ABC.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 641cd6ac..ee4172f5 100644
--- a/Makefile
+++ b/Makefile
@@ -186,15 +186,15 @@ DEP := $(OBJ:.o=.d)
%.d: %.c
@echo "$(MSG_PREFIX)\`\` Generating dependency:" $(LOCAL_PATH)/$<
- $(VERBOSE)$(ABCSRC)/depends.sh $(CC) `dirname $*.c` $(OPTFLAGS) $(INCLUDES) $(CFLAGS) $< > $@
+ $(VERBOSE)$(ABCSRC)/depends.sh "$(CC)" `dirname $*.c` $(OPTFLAGS) $(INCLUDES) $(CFLAGS) $< > $@
%.d: %.cc
@echo "$(MSG_PREFIX)\`\` Generating dependency:" $(LOCAL_PATH)/$<
- $(VERBOSE)$(ABCSRC)/depends.sh $(CXX) `dirname $*.cc` $(OPTFLAGS) $(INCLUDES) $(CXXFLAGS) $< > $@
+ $(VERBOSE)$(ABCSRC)/depends.sh "$(CXX)" `dirname $*.cc` $(OPTFLAGS) $(INCLUDES) $(CXXFLAGS) $< > $@
%.d: %.cpp
@echo "$(MSG_PREFIX)\`\` Generating dependency:" $(LOCAL_PATH)/$<
- $(VERBOSE)$(ABCSRC)/depends.sh $(CXX) `dirname $*.cpp` $(OPTFLAGS) $(INCLUDES) $(CXXFLAGS) $< > $@
+ $(VERBOSE)$(ABCSRC)/depends.sh "$(CXX)" `dirname $*.cpp` $(OPTFLAGS) $(INCLUDES) $(CXXFLAGS) $< > $@
ifndef ABC_MAKE_NO_DEPS
-include $(DEP)