2006-12-11 16:42:57 +00:00
|
|
|
#
|
2015-06-23 05:21:45 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2006-12-11 16:42:57 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ccache
|
2020-01-16 15:35:00 +00:00
|
|
|
PKG_VERSION:=3.7.7
|
2006-12-11 16:42:57 +00:00
|
|
|
|
2012-04-02 16:25:08 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2019-04-29 05:26:36 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION)
|
2020-01-16 15:35:00 +00:00
|
|
|
PKG_HASH:=b7c1d6d6fe42f18e424de92746af863e0bc85794da3d69e44300840c478c98cd
|
2006-12-11 16:42:57 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-08-10 19:27:03 +00:00
|
|
|
HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
|
2012-08-10 19:05:22 +00:00
|
|
|
|
2012-06-06 13:27:11 +00:00
|
|
|
define Host/Install/ccache
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(CP) ./files/* $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
2015-07-14 10:30:38 +00:00
|
|
|
define Host/Clean
|
2009-02-22 04:37:20 +00:00
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
|
|
|
$(call Host/Clean/Default)
|
2015-07-14 10:30:38 +00:00
|
|
|
endef
|
|
|
|
define Host/Install
|
2012-06-06 13:27:11 +00:00
|
|
|
$(call Host/Install/Default)
|
|
|
|
$(call Host/Install/ccache)
|
2015-07-14 10:30:38 +00:00
|
|
|
endef
|
2007-02-27 23:44:04 +00:00
|
|
|
|
2006-12-11 16:42:57 +00:00
|
|
|
$(eval $(call HostBuild))
|