2
0

Makefile 916 B

123456789101112131415161718192021222324252627282930313233343536
  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:=http://downloads.openwrt.org/sources/
  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. endef
  27. $(eval $(call HostBuild))