Makefile 873 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2006-2015 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.3.6
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://download.samba.org/pub/ccache/ \
  13. https://samba.org/ftp/ccache/
  14. PKG_HASH:=410a27fdaff64ead6df3fa57fa74bca0eca6b5f6ac77d7288af1256f6b12141d
  15. include $(INCLUDE_DIR)/host-build.mk
  16. HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
  17. define Host/Install/ccache
  18. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
  19. $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
  20. endef
  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. $(eval $(call HostBuild))