Root/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#
7include $(TOPDIR)/rules.mk
8include $(INCLUDE_DIR)/target.mk
9
10PKG_NAME:=ccache
11PKG_VERSION:=2.4
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
15PKG_MD5SUM:=73c1ed1e767c1752dd0f548ec1e66ce7
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)" -C $(HOST_BUILD_DIR)
23  endef
24
25  define Host/Install
26    $(MAKE) -C $(HOST_BUILD_DIR) install
27  endef
28
29  define Host/Clean
30    -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
31    $(call Host/Clean/Default)
32  endef
33else
34  define Host/Prepare
35  endef
36  define Host/Configure
37  endef
38  define Host/Compile
39  endef
40  define Host/Install
41  endef
42  define Host/Clean
43  endef
44endif
45
46$(eval $(call HostBuild))
47

Archive Download this file



interactive