]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/lzma/Makefile.am
Sort of garbage collection commit. :-| Many things are still
[icculus/xz.git] / src / liblzma / lzma / Makefile.am
1 ##
2 ##  Copyright (C) 2007 Lasse Collin
3 ##
4 ##  This library is free software; you can redistribute it and/or
5 ##  modify it under the terms of the GNU Lesser General Public
6 ##  License as published by the Free Software Foundation; either
7 ##  version 2.1 of the License, or (at your option) any later version.
8 ##
9 ##  This library is distributed in the hope that it will be useful,
10 ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 ##  Lesser General Public License for more details.
13 ##
14
15 EXTRA_DIST = fastpos_tablegen.c
16
17 ## Using liblzma2 since liblzma is already used for the final library.
18 noinst_LTLIBRARIES = liblzma2.la
19 liblzma2_la_CPPFLAGS = \
20         -I@top_srcdir@/src/liblzma/api \
21         -I@top_srcdir@/src/liblzma/common \
22         -I@top_srcdir@/src/liblzma/lz \
23         -I@top_srcdir@/src/liblzma/rangecoder
24
25 liblzma2_la_SOURCES = lzma_common.h
26
27 if COND_ENCODER_LZMA
28 liblzma2_la_SOURCES += \
29         fastpos.h \
30         lzma_encoder.h \
31         lzma_encoder.c \
32         lzma_encoder_presets.c \
33         lzma_encoder_private.h \
34         lzma_encoder_features.c \
35         lzma_encoder_optimum_fast.c \
36         lzma_encoder_optimum_normal.c
37
38 if !COND_SMALL
39 liblzma2_la_SOURCES += fastpos_table.c
40 endif
41 endif
42
43 if COND_DECODER_LZMA
44 liblzma2_la_SOURCES += \
45         lzma_decoder.c \
46         lzma_decoder.h
47 endif
48
49 if COND_ENCODER_LZMA2
50 liblzma2_la_SOURCES += \
51         lzma2_encoder.c \
52         lzma2_encoder.h
53 endif
54
55 if COND_DECODER_LZMA2
56 liblzma2_la_SOURCES += \
57         lzma2_decoder.c \
58         lzma2_decoder.h
59 endif