2006-12-11 16:42:57 +00: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-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
|
|
|
|
$(MAKE) CC="$(HOSTCC)" -C $(HOST_BUILD_DIR)
|
2006-12-11 16:42:57 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) install
|
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
|
|
|
|
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
|
|
|
|
endef
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2006-12-11 16:42:57 +00:00
|
|
|
endef
|
|
|
|
endif
|
2007-02-27 23:44:04 +00:00
|
|
|
|
2006-12-11 16:42:57 +00:00
|
|
|
$(eval $(call HostBuild))
|