2006-12-11 16:42:57 +00:00
|
|
|
#
|
2012-04-02 16:25:08 +00:00
|
|
|
# Copyright (C) 2006-2012 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
|
2012-04-02 16:25:08 +00:00
|
|
|
PKG_VERSION:=3.1.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
|
2006-12-11 16:42:57 +00:00
|
|
|
PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
|
2012-04-02 16:25:08 +00:00
|
|
|
PKG_MD5SUM:=80a698c22d0b06b19c88ac58e8d8b632
|
2006-12-11 16:42:57 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-08-10 19:05:22 +00:00
|
|
|
HOSTCC:=$(HOSTCC_NOCACHE)
|
|
|
|
|
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
|
|
|
|
|
2007-02-27 23:44:04 +00:00
|
|
|
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
2012-08-10 19:05:22 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)
|
2006-12-11 16:42:57 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
|
|
|
$(call Host/Clean/Default)
|
2007-02-27 23:44:04 +00:00
|
|
|
endef
|
2012-06-06 13:27:11 +00:00
|
|
|
define Host/Install
|
|
|
|
$(call Host/Install/Default)
|
|
|
|
$(call Host/Install/ccache)
|
|
|
|
endef
|
2007-02-27 23:44:04 +00:00
|
|
|
else
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Prepare
|
2007-02-27 23:44:04 +00:00
|
|
|
endef
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Configure
|
2007-02-27 23:44:04 +00:00
|
|
|
endef
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
2007-02-27 23:44:04 +00:00
|
|
|
endef
|
2009-04-09 13:16:57 +00:00
|
|
|
define Host/Install
|
2012-06-06 13:27:11 +00:00
|
|
|
$(call Host/Install/ccache)
|
2009-04-09 13:16:57 +00:00
|
|
|
endef
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2006-12-11 16:42:57 +00:00
|
|
|
endef
|
2012-01-15 11:43:13 +00:00
|
|
|
define Download
|
|
|
|
endef
|
2006-12-11 16:42:57 +00:00
|
|
|
endif
|
2007-02-27 23:44:04 +00:00
|
|
|
|
2006-12-11 16:42:57 +00:00
|
|
|
$(eval $(call HostBuild))
|