disable reverse lookup in dropbear
[openwrt.git] / openwrt / target / lzma / Makefile
1 #############################################################
2 #
3 # lzma target
4 #
5 #############################################################
6
7 include $(TOPDIR)/rules.mk
8
9 LZMA_DIR=$(BUILD_DIR)/lzma
10 LZMA_SOURCE=lzma406.zip
11 LZMA_SITE=http://www.7-zip.org/dl
12
13 LZMA_LIB_DIR=$(LZMA_DIR)/SRC/7zip/Compress/LZMA_Lib
14 LZMA_ALONE_DIR=$(LZMA_DIR)/SRC/7zip/Compress/LZMA_Alone
15
16 TARGETS=$(LZMA_LIB_DIR)/liblzma.a $(LZMA_ALONE_DIR)/lzma
17
18 $(DL_DIR)/$(LZMA_SOURCE):
19 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(LZMA_SOURCE) x $(LZMA_SITE)
20
21 $(LZMA_DIR)/.unpacked: $(DL_DIR)/$(LZMA_SOURCE)
22 @rm -rf $(LZMA_DIR) && mkdir -p $(LZMA_DIR)
23 unzip -q $^ -d $(LZMA_DIR)
24 patch -d $(LZMA_DIR) -p1 < lzma-406-zlib-stream.patch
25 touch $(LZMA_DIR)/.unpacked
26
27 $(LZMA_LIB_DIR)/liblzma.a: $(LZMA_DIR)/.unpacked
28 $(MAKE) -C $(LZMA_LIB_DIR)
29
30 $(LZMA_ALONE_DIR)/lzma: $(LZMA_DIR)/.unpacked
31 $(MAKE) -C $(LZMA_ALONE_DIR)
32
33 lzma: $(TARGETS)
34 cp -f $^ $(LZMA_DIR)
35
36 lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
37
38 lzma-clean:
39 -$(MAKE) -C $(LZMA_LIB_DIR) clean
40 -$(MAKE) -C $(LZMA_ALONE_DIR) clean
41 rm -f $(LZMA_DIR)/liblzma.a $(LZMA_DIR)/lzma
42
43 lzma-dirclean:
44 rm -rf $(LZMA_DIR)
45
46 #############################################################
47
48 prepare: $(LZMA_DIR)/.unpacked
49 compile: lzma
50 install: lzma
51 clean: lzma-dirclean
This page took 0.04792 seconds and 5 git commands to generate.