From 3c56b49df6a8bac1b9141585144006d52a2a8c21 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 19 May 2015 18:26:59 +0200 Subject: [PATCH] make: use ccache if environment variable is set --- Makefile.base | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.base b/Makefile.base index 9b1bc4c044..fcdd36fadb 100644 --- a/Makefile.base +++ b/Makefile.base @@ -57,13 +57,13 @@ CXXFLAGS = $(filter-out $(CXXUWFLAGS), $(CFLAGS)) $(CXXEXFLAGS) # compile and generate dependency info $(OBJC): $(BINDIR)$(MODULE)/%.o: %.c - $(AD)$(CC) \ + $(AD)$(CCACHE) $(CC) \ -DRIOT_FILE_RELATIVE=\"$(patsubst $(RIOTBASE)/%,%,$(abspath $<))\" \ -DRIOT_FILE_NOPATH=\"$(notdir $<)\" \ $(CFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<) $(OBJCXX): $(BINDIR)$(MODULE)/%.o: %.cpp - $(AD)$(CXX) \ + $(AD)$(CCACHE) $(CXX) \ -DRIOT_FILE_RELATIVE=\"$(patsubst $(RIOTBASE)/%,%,$(abspath $<))\" \ -DRIOT_FILE_NOPATH=\"$(notdir $<)\" \ $(CXXFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)