summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dd01454e3..3dbd983f9 100644
--- a/Makefile
+++ b/Makefile
@@ -106,6 +106,13 @@ LDFLAGS := -Xlinker -symbols=$(OBJROOT)/sym -lxml2 -lz -lm -lcurl -lssl -lcrypto
else
LDFLAGS := $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl openssl)
LDFLAGS += -lz -lm -lmng -ljpeg
+
+CCACHE := $(shell which ccache)
+
+ifneq ($(CCACHE),)
+CC := $(CCACHE) $(CC)
+endif
+
endif
ifeq ($(TARGET),gtk)