summaryrefslogtreecommitdiff
path: root/lib/fstream/Makemodule.am
blob: 8a1254ce004a74bddeecdadd4ea87a30a10a95e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
libfstream_a_SOURCES = include/fstream.h
libfstream_a_SOURCES += lib/fstream/internal.h
libfstream_a_SOURCES += lib/fstream/ostream.c lib/fstream/printf.c
libfstream_a_SOURCES += lib/fstream/istream.c
libfstream_a_SOURCES += lib/fstream/compressor.c
libfstream_a_SOURCES += lib/fstream/compress/ostream_compressor.c
libfstream_a_SOURCES += lib/fstream/uncompress/istream_compressor.c
libfstream_a_SOURCES += lib/fstream/uncompress/autodetect.c
libfstream_a_CFLAGS = $(AM_CFLAGS) $(ZLIB_CFLAGS) $(XZ_CFLAGS)
libfstream_a_CPPFLAGS = $(AM_CPPFLAGS)

if WINDOWS
libfstream_a_SOURCES += lib/fstream/win32/ostream.c
libfstream_a_SOURCES += lib/fstream/win32/istream.c
libfstream_a_CFLAGS += -DWINVER=0x0600 -D_WIN32_WINNT=0x0600
else
libfstream_a_SOURCES += lib/fstream/unix/ostream.c
libfstream_a_SOURCES += lib/fstream/unix/istream.c
endif

if WITH_XZ
libfstream_a_SOURCES += lib/fstream/compress/xz.c lib/fstream/uncompress/xz.c
libfstream_a_CPPFLAGS += -DWITH_XZ
endif

if WITH_GZIP
libfstream_a_SOURCES += lib/fstream/compress/gzip.c
libfstream_a_SOURCES += lib/fstream/uncompress/gzip.c
libfstream_a_CPPFLAGS += -DWITH_GZIP
endif

if WITH_ZSTD
libfstream_a_SOURCES += lib/fstream/compress/zstd.c
libfstream_a_SOURCES += lib/fstream/uncompress/zstd.c
libfstream_a_CPPFLAGS += -DWITH_ZSTD
endif

noinst_LIBRARIES += libfstream.a