You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
18 years ago
|
#
|
||
|
# 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
|
||
|
|
||
|
PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||
|
|
||
|
include $(INCLUDE_DIR)/host-build.mk
|
||
|
|
||
18 years ago
|
ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
|
||
18 years ago
|
define Build/Compile
|
||
18 years ago
|
$(MAKE) CC="$(HOSTCC)" -C $(PKG_BUILD_DIR)
|
||
18 years ago
|
endef
|
||
|
|
||
|
define Build/Install
|
||
18 years ago
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
DESTDIR="$(STAGING_DIR)" \
|
||
18 years ago
|
install
|
||
|
endef
|
||
|
|
||
|
define Build/Clean
|
||
18 years ago
|
-$(MAKE) -C $(PKG_BUILD_DIR) uninstall
|
||
18 years ago
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
||
18 years ago
|
$(call Build/Clean/Default)
|
||
|
endef
|
||
|
else
|
||
|
define Build/Prepare
|
||
|
endef
|
||
|
define Build/Configure
|
||
|
endef
|
||
|
define Build/Compile
|
||
|
endef
|
||
|
define Build/Clean
|
||
18 years ago
|
endef
|
||
|
endif
|
||
18 years ago
|
|
||
18 years ago
|
$(eval $(call HostBuild))
|