use newer config.guess and config.sub for packages then the shipped ones
[openwrt.git] / tools / ccache / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/target.mk
9
10 PKG_NAME:=ccache
11 PKG_VERSION:=2.4
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
15 PKG_MD5SUM:=73c1ed1e767c1752dd0f548ec1e66ce7
16 PKG_CAT:=zcat
17
18 PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
23 define Build/Compile
24 $(MAKE) CC="$(HOSTCC)" -C $(PKG_BUILD_DIR)
25 endef
26
27 define Build/Install
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 DESTDIR="$(STAGING_DIR)" \
30 install
31 endef
32
33 define Build/Clean
34 -$(MAKE) -C $(PKG_BUILD_DIR) uninstall
35 -$(MAKE) -C $(PKG_BUILD_DIR) clean
36 $(call Build/Clean/Default)
37 endef
38 else
39 define Build/Prepare
40 endef
41 define Build/Configure
42 endef
43 define Build/Compile
44 endef
45 define Build/Clean
46 endef
47 endif
48
49 $(eval $(call HostBuild))
This page took 0.045434 seconds and 5 git commands to generate.