2 # Copyright (C) 2006-2013 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
:=522a6016bda56892653612bbdefff3e0
17 include $(INCLUDE_DIR
)/host-build.mk
19 HOST_LDFLAGS
+= $(HOST_STATIC_LINKING
)
20 HOST_CONFIGURE_VARS
+= CC
="$(HOSTCC_NOCACHE)"
22 define Host
/Install
/ccache
23 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
/
24 $(CP
) .
/files
/* $(STAGING_DIR_HOST
)/bin
/
27 ifneq ($(strip $(shell which ccache
>/dev
/null
&& echo found
)),found
)
29 -$(MAKE
) -C
$(HOST_BUILD_DIR
) uninstall
30 $(call Host
/Clean
/Default
)
33 $(call Host
/Install
/Default
)
34 $(call Host
/Install
/ccache
)
44 $(call Host
/Install
/ccache
)
52 $(eval
$(call HostBuild
))