Makefile 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2006-2012 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.7
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
  13. PKG_MD5SUM:=80a698c22d0b06b19c88ac58e8d8b632
  14. PKG_CAT:=zcat
  15. include $(INCLUDE_DIR)/host-build.mk
  16. ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
  17. define Host/Compile
  18. $(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR)
  19. endef
  20. define Host/Clean
  21. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  22. $(call Host/Clean/Default)
  23. endef
  24. else
  25. define Host/Prepare
  26. endef
  27. define Host/Configure
  28. endef
  29. define Host/Compile
  30. endef
  31. define Host/Install
  32. endef
  33. define Host/Clean
  34. endef
  35. define Download
  36. endef
  37. endif
  38. $(eval $(call HostBuild))