Fix version.sh compatiblity with Solaris
[xz/debian.git] / src / liblzma / common / Makefile.inc
blob51b1aae86e298ee55707f68e586e508d5f534374
1 ## SPDX-License-Identifier: 0BSD
2 ## Author: Lasse Collin
4 liblzma_la_SOURCES += \
5         common/common.c \
6         common/common.h \
7         common/memcmplen.h \
8         common/block_util.c \
9         common/easy_preset.c \
10         common/easy_preset.h \
11         common/filter_common.c \
12         common/filter_common.h \
13         common/hardware_physmem.c \
14         common/index.c \
15         common/index.h \
16         common/stream_flags_common.c \
17         common/stream_flags_common.h \
18         common/string_conversion.c \
19         common/vli_size.c
21 if COND_THREADS
22 liblzma_la_SOURCES += \
23         common/hardware_cputhreads.c \
24         common/outqueue.c \
25         common/outqueue.h
26 endif
28 if COND_MAIN_ENCODER
29 liblzma_la_SOURCES += \
30         common/alone_encoder.c \
31         common/block_buffer_encoder.c \
32         common/block_buffer_encoder.h \
33         common/block_encoder.c \
34         common/block_encoder.h \
35         common/block_header_encoder.c \
36         common/easy_buffer_encoder.c \
37         common/easy_encoder.c \
38         common/easy_encoder_memusage.c \
39         common/filter_buffer_encoder.c \
40         common/filter_encoder.c \
41         common/filter_encoder.h \
42         common/filter_flags_encoder.c \
43         common/index_encoder.c \
44         common/index_encoder.h \
45         common/stream_buffer_encoder.c \
46         common/stream_encoder.c \
47         common/stream_flags_encoder.c \
48         common/vli_encoder.c
50 if COND_THREADS
51 liblzma_la_SOURCES += \
52         common/stream_encoder_mt.c
53 endif
55 if COND_MICROLZMA
56 liblzma_la_SOURCES += \
57         common/microlzma_encoder.c
58 endif
59 endif
61 if COND_MAIN_DECODER
62 liblzma_la_SOURCES += \
63         common/alone_decoder.c \
64         common/alone_decoder.h \
65         common/auto_decoder.c \
66         common/block_buffer_decoder.c \
67         common/block_decoder.c \
68         common/block_decoder.h \
69         common/block_header_decoder.c \
70         common/easy_decoder_memusage.c \
71         common/file_info.c \
72         common/filter_buffer_decoder.c \
73         common/filter_decoder.c \
74         common/filter_decoder.h \
75         common/filter_flags_decoder.c \
76         common/index_decoder.c \
77         common/index_decoder.h \
78         common/index_hash.c \
79         common/stream_buffer_decoder.c \
80         common/stream_decoder.c \
81         common/stream_decoder.h \
82         common/stream_flags_decoder.c \
83         common/vli_decoder.c
85 if COND_THREADS
86 liblzma_la_SOURCES += \
87         common/stream_decoder_mt.c
88 endif
90 if COND_MICROLZMA
91 liblzma_la_SOURCES += \
92         common/microlzma_decoder.c
93 endif
95 if COND_LZIP_DECODER
96 liblzma_la_SOURCES += \
97         common/lzip_decoder.c \
98         common/lzip_decoder.h
99 endif
100 endif