diff options
author | John Crispin <john@openwrt.org> | 2012-01-15 11:43:13 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-01-15 11:43:13 +0000 |
commit | ccb6b0a063a4133ac59c811476b670c7d66f84ed (patch) | |
tree | 6a897cd4b2dfd787d1b4da763623b8157945324a /tools/Makefile | |
parent | f9e41adc80d0492ff9c94b4b660ac9ac8a6cae02 (diff) | |
download | mtk-20170518-ccb6b0a063a4133ac59c811476b670c7d66f84ed.zip mtk-20170518-ccb6b0a063a4133ac59c811476b670c7d66f84ed.tar.gz mtk-20170518-ccb6b0a063a4133ac59c811476b670c7d66f84ed.tar.bz2 |
tools: clean up Makefiles / make ccache work
SVN-Revision: 29754
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile index 0c2706d..9f8665c 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -21,10 +21,9 @@ tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2 tools-$(CONFIG_powerpc) += upx tools-$(CONFIG_TARGET_x86) += qemu ifneq ($(CONFIG_TARGET_ar71xx),) -tools-y += lzma-old squashfs +tools-y += lzma-old squashfs endif tools-y += lzma squashfs4 -tools-$(CONFIG_CCACHE) += ccache ifdef CONFIG_GCC_USE_GRAPHITE ifeq ($(CONFIG_GCC_USE_SYSTEM_PPL_CLOOG),) @@ -59,6 +58,11 @@ $(curdir)/missing-macros/compile := $(curdir)/automake/install $(curdir)/e2fsprogs/compile := $(curdir)/automake/install $(curdir)/libelf/compile := $(curdir)/automake/install +ifneq ($(CONFIG_CCACHE),) +$(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/install)) +tools-y += ccache +endif + $(curdir)/builddirs := $(tools-y) $(tools-dep) $(tools-) $(curdir)/builddirs-default := $(tools-y) |