2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/target.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
14 PKG_SOURCE_URL
:=https
://github.com
/ccache
/ccache
/releases
/download
/v
$(PKG_VERSION
)
15 PKG_HASH
:=04c0af414b8cf89e541daed59735547fbfd323b1aaa983da0216f6b6731e6836
17 include $(INCLUDE_DIR
)/host-build.mk
19 HOST_CONFIGURE_VARS
+= CC
="$(HOSTCC_NOCACHE)"
21 define Host
/Install
/ccache
22 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
23 $(CP
) .
/files
/* $(STAGING_DIR_HOST
)/bin
/
27 -$(MAKE
) -C
$(HOST_BUILD_DIR
) uninstall
28 $(call Host
/Clean
/Default
)
31 $(call Host
/Install
/Default
)
32 $(call Host
/Install
/ccache
)
35 $(eval
$(call HostBuild
))