[ifxos] (oops - second try) fixed autoconf detection for 2.6.33 kernel
[openwrt.git] / tools / lzma-old / 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 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=lzma-old
10 PKG_VERSION:=4.32
11
12 PKG_SOURCE:=lzma-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
14 PKG_MD5SUM:=5587d6ac230ad1903d504fc3253f0e42
15
16 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/lzma-$(PKG_VERSION)
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 LIB_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
21 ALONE_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
22
23 define Host/Compile
24 $(MAKE) -C $(LIB_DIR)
25 $(MAKE) -f makefile.gcc -C $(ALONE_DIR)
26 endef
27
28 define Host/Install
29 $(INSTALL_DATA) $(LIB_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/liblzma-old.a
30 $(INSTALL_BIN) $(ALONE_DIR)/lzma $(STAGING_DIR_HOST)/bin/
31 endef
32
33 define Host/Clean
34 rm -f \
35 $(STAGING_DIR_HOST)/lib/liblzma-old.a \
36 $(STAGING_DIR_HOST)/bin/lzma
37 endef
38
39 $(eval $(call HostBuild))
This page took 0.046513 seconds and 5 git commands to generate.