Makefile 894 B

1234567891011121314151617181920212223242526272829303132333435363738
  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-old
  9. PKG_VERSION:=4.32
  10. PKG_SOURCE:=lzma-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@LIBRECMC
  12. PKG_HASH:=49053e4bb5e0646a841d250d9cb81f7714f5fff04a133216c4748163567acc3d
  13. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/lzma-$(PKG_VERSION)
  14. include $(INCLUDE_DIR)/host-build.mk
  15. LIB_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
  16. ALONE_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
  17. define Host/Compile
  18. +$(HOST_MAKE_VARS) \
  19. $(MAKE) -C $(LIB_DIR)
  20. +$(HOST_MAKE_VARS) \
  21. $(MAKE) -f makefile.gcc -C $(ALONE_DIR)
  22. endef
  23. define Host/Install
  24. $(INSTALL_DATA) $(LIB_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/liblzma-old.a
  25. endef
  26. define Host/Clean
  27. rm -f $(STAGING_DIR_HOST)/lib/liblzma-old.a
  28. endef
  29. $(eval $(call HostBuild))