Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2006-2013 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. PKG_NAME:=ccache
  10. PKG_VERSION:=3.1.9
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
  13. PKG_MD5SUM:=522a6016bda56892653612bbdefff3e0
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
  16. define Host/Install/ccache
  17. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
  18. $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
  19. endef
  20. ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
  21. define Host/Clean
  22. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  23. $(call Host/Clean/Default)
  24. endef
  25. define Host/Install
  26. $(call Host/Install/Default)
  27. $(call Host/Install/ccache)
  28. endef
  29. else
  30. define Host/Prepare
  31. endef
  32. define Host/Configure
  33. endef
  34. define Host/Compile
  35. endef
  36. define Host/Install
  37. $(call Host/Install/ccache)
  38. endef
  39. define Host/Clean
  40. endef
  41. define Download
  42. endef
  43. endif
  44. $(eval $(call HostBuild))