Makefile 800 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.1.11
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
  13. PKG_MD5SUM:=0f6df80c8941d9020a1fd5df5ad57dd7
  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))