aboutsummaryrefslogtreecommitdiff
path: root/lib/fstream/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-14 16:17:15 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-16 09:34:35 +0200
commit5f637f97c3427dc6e1a68678aefee1f62ca34d62 (patch)
tree75254191b93adce81e188069d54de383c0123984 /lib/fstream/Makemodule.am
parent0a0cbefc6ebb6174aad3e6f0b8a6dea87aed49da (diff)
Implement ostream compressor wrapper
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstream/Makemodule.am')
-rw-r--r--lib/fstream/Makemodule.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/fstream/Makemodule.am b/lib/fstream/Makemodule.am
index 27e4701..9178647 100644
--- a/lib/fstream/Makemodule.am
+++ b/lib/fstream/Makemodule.am
@@ -2,6 +2,8 @@ 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_CFLAGS = $(AM_CFLAGS) $(ZLIB_CFLAGS) $(XZ_CFLAGS)
libfstream_a_CPPFLAGS = $(AM_CPPFLAGS)
@@ -14,4 +16,14 @@ 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
+libfstream_a_CPPFLAGS += -DWITH_XZ
+endif
+
+if WITH_GZIP
+libfstream_a_SOURCES += lib/fstream/compress/gzip.c
+libfstream_a_CPPFLAGS += -DWITH_GZIP
+endif
+
noinst_LIBRARIES += libfstream.a