2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/target.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
14 PKG_SOURCE_URL
:=http
://samba.org
/ftp
/ccache
/
15 PKG_MD5SUM
:=80a698c22d0b06b19c88ac58e8d8b632
18 include $(INCLUDE_DIR
)/host-build.mk
20 define Host
/Install
/ccache
21 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
22 $(CP
) .
/files
/* $(STAGING_DIR_HOST
)/bin
/
25 ifneq ($(strip $(shell which ccache
>/dev
/null
&& echo found
)),found
)
27 $(MAKE
) CC
="$(HOSTCC_NOCACHE)" -C
$(HOST_BUILD_DIR
)
31 -$(MAKE
) -C
$(HOST_BUILD_DIR
) uninstall
32 $(call Host
/Clean
/Default
)
35 $(call Host
/Install
/Default
)
36 $(call Host
/Install
/ccache
)
46 $(call Host
/Install
/ccache
)
54 $(eval
$(call HostBuild
))