From 5f637f97c3427dc6e1a68678aefee1f62ca34d62 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 14 Sep 2020 16:17:15 +0200 Subject: Implement ostream compressor wrapper Signed-off-by: David Oberhollenzer --- lib/fstream/Makemodule.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/fstream/Makemodule.am') 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 -- cgit v1.2.3