1
0

Makefile 924 B

12345678910111213141516171819202122232425262728293031323334353637
  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. PKG_NAME:=lzma
  9. PKG_VERSION:=4.65
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@LIBRECMC
  12. PKG_HASH:=dcbdb5f4843eff638e4a5e8be0e2486a3c5483df73c70823618db8e66f609ec2
  13. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
  14. include $(INCLUDE_DIR)/host-build.mk
  15. UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
  16. ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone
  17. define Host/Compile
  18. $(MAKE) -C $(UTIL_DIR) -f makefile.gcc
  19. $(MAKE) -C $(ALONE_DIR) -f makefile.gcc
  20. endef
  21. define Host/Install
  22. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  23. $(INSTALL_BIN) $(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone/lzma_alone $(STAGING_DIR_HOST)/bin/lzma
  24. endef
  25. define Host/Clean
  26. rm -f $(STAGING_DIR_HOST)/bin/lzma
  27. endef
  28. $(eval $(call HostBuild))