silly switch style fix
[oweals/busybox.git] / archival / libunarchive / Makefile.in
1 # Makefile for busybox
2 #
3 # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4 #
5 # Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6
7 LIBUNARCHIVE_AR:=libunarchive.a
8 ifndef $(LIBUNARCHIVE_DIR)
9 LIBUNARCHIVE_DIR:=$(top_builddir)/archival/libunarchive
10 endif
11 srcdir=$(top_srcdir)/archival/libunarchive
12
13 LIBUNARCHIVE-obj:=$(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR)
14
15 libraries-y+=$(LIBUNARCHIVE-obj)
16
17 LIBUNARCHIVE-y:= \
18 \
19         data_skip.o \
20         data_extract_all.o \
21         data_extract_to_stdout.o \
22         data_extract_to_buffer.o \
23 \
24         filter_accept_all.o \
25         filter_accept_list.o \
26         filter_accept_reject_list.o \
27 \
28         header_skip.o \
29         header_list.o \
30         header_verbose_list.o \
31 \
32         archive_xread_all_eof.o \
33 \
34         seek_by_char.o \
35         seek_by_jump.o \
36 \
37         data_align.o \
38         find_list_entry.o \
39         open_transformer.o \
40         init_handle.o
41
42 GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o
43 DPKG_FILES:= \
44         get_header_ar.o \
45         unpack_ar_archive.o \
46         get_header_tar.o \
47         filter_accept_list_reassign.o
48
49 LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
50 LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
51 LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma.o
52 LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o
53 LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES)
54 LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
55 LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o
56 LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o
57 LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
58 LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
59 LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o
60 LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
61 LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
62 LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o
63 LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o
64 LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
65 LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o
66 LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o
67 LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
68 LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES)
69 LIBUNARCHIVE-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o
70
71
72 LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y))
73
74 LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBUNARCHIVE-y)))
75 LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c)
76 LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y)
77 LIBRARY_SRC-a+=$(LIBUNARCHIVE_SRC-a)
78
79 $(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR): $(patsubst %,$(LIBUNARCHIVE_DIR)/%,$(LIBUNARCHIVE-y))
80         $(do_ar)
81
82 $(LIBUNARCHIVE_DIR)/%.o: $(srcdir)/%.c
83         $(compile.c)