Makefile 867 B

1234567891011121314151617181920212223242526272829303132333435
  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.7.2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=a5da0008512ff9e882097acaffb3616fae98ec25827167bb4bd1e4acf0b66793
  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. define Host/Clean
  21. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  22. $(call Host/Clean/Default)
  23. endef
  24. define Host/Install
  25. $(call Host/Install/Default)
  26. $(call Host/Install/ccache)
  27. endef
  28. $(eval $(call HostBuild))