2006-12-12 00:42:57 +08:00
|
|
|
#
|
2015-06-23 13:21:45 +08:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2006-12-12 00:42:57 +08: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
|
2016-10-03 04:44:06 +08:00
|
|
|
PKG_VERSION:=3.3.2
|
2006-12-12 00:42:57 +08:00
|
|
|
|
2012-04-03 00:25:08 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2017-02-02 05:17:37 +08:00
|
|
|
PKG_SOURCE_URL:=https://download.samba.org/pub/ccache/ \
|
|
|
|
https://samba.org/ftp/ccache/
|
2016-12-17 00:32:10 +08:00
|
|
|
PKG_HASH:=907685cb23d8f82074b8d1a9b4ebabb36914d151ac7b96a840c68c08d1a14530
|
2006-12-12 00:42:57 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-08-11 03:27:03 +08:00
|
|
|
HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
|
2012-08-11 03:05:22 +08:00
|
|
|
|
2012-06-06 21:27:11 +08:00
|
|
|
define Host/Install/ccache
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(CP) ./files/* $(STAGING_DIR_HOST)/bin/
|
|
|
|
endef
|
|
|
|
|
2015-07-14 18:30:38 +08:00
|
|
|
define Host/Clean
|
2009-02-22 12:37:20 +08:00
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
|
|
|
$(call Host/Clean/Default)
|
2015-07-14 18:30:38 +08:00
|
|
|
endef
|
|
|
|
define Host/Install
|
2012-06-06 21:27:11 +08:00
|
|
|
$(call Host/Install/Default)
|
|
|
|
$(call Host/Install/ccache)
|
2015-07-14 18:30:38 +08:00
|
|
|
endef
|
2007-02-28 07:44:04 +08:00
|
|
|
|
2006-12-12 00:42:57 +08:00
|
|
|
$(eval $(call HostBuild))
|