Makefile 939 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Copyright (C) 2006 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.3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
  13. PKG_MD5SUM:=b952d75e9ca37209d608ea58d84135cd
  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)" -C $(HOST_BUILD_DIR)
  19. endef
  20. define Host/Install
  21. $(MAKE) -C $(HOST_BUILD_DIR) install
  22. endef
  23. define Host/Clean
  24. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  25. $(call Host/Clean/Default)
  26. endef
  27. else
  28. define Host/Prepare
  29. endef
  30. define Host/Configure
  31. endef
  32. define Host/Compile
  33. endef
  34. define Host/Install
  35. endef
  36. define Host/Clean
  37. endef
  38. endif
  39. $(eval $(call HostBuild))