]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/lzma/Makefile.am
Some API changes, bug fixes, cleanups etc.
[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_LZMA1
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_optimum_fast.c \
35         lzma_encoder_optimum_normal.c
36
37 if !COND_SMALL
38 liblzma2_la_SOURCES += fastpos_table.c
39 endif
40 endif
41
42 if COND_DECODER_LZMA1
43 liblzma2_la_SOURCES += \
44         lzma_decoder.c \
45         lzma_decoder.h
46 endif
47
48 if COND_ENCODER_LZMA2
49 liblzma2_la_SOURCES += \
50         lzma2_encoder.c \
51         lzma2_encoder.h
52 endif
53
54 if COND_DECODER_LZMA2
55 liblzma2_la_SOURCES += \
56         lzma2_decoder.c \
57         lzma2_decoder.h
58 endif