source: trunk/tools/ccache/Makefile @ 31166

Last change on this file since 31166 was 31166, checked in by florian, 4 years ago

[tools] ccache: update to 3.1.7

Signed-off-by: Luka Perkov <openwrt@…>

File size: 909 bytes
Line 
1#
2# Copyright (C) 2006-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8include $(INCLUDE_DIR)/target.mk
9
10PKG_NAME:=ccache
11PKG_VERSION:=3.1.7
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
15PKG_MD5SUM:=80a698c22d0b06b19c88ac58e8d8b632
16PKG_CAT:=zcat
17
18include $(INCLUDE_DIR)/host-build.mk
19
20ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
21  define Host/Compile
22        $(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR)
23  endef
24
25  define Host/Clean
26        -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
27        $(call Host/Clean/Default)
28  endef
29else
30  define Host/Prepare
31  endef
32  define Host/Configure
33  endef
34  define Host/Compile
35  endef
36  define Host/Install
37  endef
38  define Host/Clean
39  endef
40  define Download
41  endef
42endif
43
44$(eval $(call HostBuild))
Note: See TracBrowser for help on using the repository browser.