2006-12-11 17:42:57 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
PKG_VERSION:=2.4
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
|
|
|
|
PKG_MD5SUM:=73c1ed1e767c1752dd0f548ec1e66ce7
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2007-02-28 00:44:04 +01:00
|
|
|
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) CC="$(HOSTCC)" -C $(HOST_BUILD_DIR)
|
2006-12-11 17:42:57 +01:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Install
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) install
|
2006-12-11 17:42:57 +01:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Clean
|
|
|
|
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
|
|
|
|
$(call Host/Clean/Default)
|
2007-02-28 00:44:04 +01:00
|
|
|
endef
|
|
|
|
else
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Prepare
|
2007-02-28 00:44:04 +01:00
|
|
|
endef
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Configure
|
2007-02-28 00:44:04 +01:00
|
|
|
endef
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Compile
|
2007-02-28 00:44:04 +01:00
|
|
|
endef
|
2009-04-09 15:16:57 +02:00
|
|
|
define Host/Install
|
|
|
|
endef
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Clean
|
2006-12-11 17:42:57 +01:00
|
|
|
endef
|
|
|
|
endif
|
2007-02-28 00:44:04 +01:00
|
|
|
|
2006-12-11 17:42:57 +01:00
|
|
|
$(eval $(call HostBuild))
|