1
0

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.2
  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:=907685cb23d8f82074b8d1a9b4ebabb36914d151ac7b96a840c68c08d1a14530
  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))