1
0

Makefile 871 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.5
  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:=bdd44b72ae4506a2e2deef9fefb15c606a474bbca7658cd2be26105155eec012
  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))