Root/tools/lzma/Makefile

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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=lzma
10PKG_VERSION:=4.65
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
14PKG_MD5SUM:=434e51a018b4c8ef377bf81520a53af0
15
16HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
17
18include $(INCLUDE_DIR)/host-build.mk
19
20UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
21ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone
22
23define Host/Compile
24    $(MAKE) -C $(UTIL_DIR) -f makefile.gcc
25    $(MAKE) -C $(ALONE_DIR) -f makefile.gcc
26endef
27
28define Host/Install
29    $(INSTALL_DIR) $(STAGING_DIR_HOST)/lib $(STAGING_DIR_HOST)/include $(STAGING_DIR_HOST)/bin
30    $(INSTALL_BIN) $(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone/lzma_alone $(STAGING_DIR_HOST)/bin/lzma
31    $(CP) $(HOST_BUILD_DIR)/C/*.h $(STAGING_DIR_HOST)/include/
32    $(CP) $(UTIL_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/
33endef
34
35define Host/Clean
36endef
37
38$(eval $(call HostBuild))
39

Archive Download this file



interactive