aboutsummaryrefslogtreecommitdiff
path: root/lib/xfrm/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-12-13 09:15:19 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-19 16:24:56 +0100
commit551dd3879c288a2b6b6fbaca5c09c04fbe994ff4 (patch)
treef3437139699edffd034168999854258f30c4023b /lib/xfrm/Makemodule.am
parent722ecf27eaf83685dfc6e92adc9d66f0107da5ea (diff)
Split stream compression out of libio
Move it to a separate libxfrm library, where it can be independently tested as well. The bulk of the new code is also mainly test cases for the compressors. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/xfrm/Makemodule.am')
-rw-r--r--lib/xfrm/Makemodule.am27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/xfrm/Makemodule.am b/lib/xfrm/Makemodule.am
new file mode 100644
index 0000000..a344820
--- /dev/null
+++ b/lib/xfrm/Makemodule.am
@@ -0,0 +1,27 @@
+libxfrm_a_SOURCES = include/xfrm/stream.h include/xfrm/compress.h
+libxfrm_a_SOURCES += lib/xfrm/compress.c
+libxfrm_a_CFLAGS = $(AM_CFLAGS)
+
+if WITH_XZ
+libxfrm_a_SOURCES += lib/xfrm/xz.c
+libxfrm_a_CFLAGS += $(XZ_CFLAGS) -DWITH_XZ
+endif
+
+if WITH_BZIP2
+libxfrm_a_SOURCES += lib/xfrm/bzip2.c
+libxfrm_a_CFLAGS += $(BZIP2_CFLAGS) -DWITH_BZIP2
+endif
+
+if WITH_GZIP
+libxfrm_a_SOURCES += lib/xfrm/gzip.c
+libxfrm_a_CFLAGS += $(ZLIB_CFLAGS) -DWITH_GZIP
+endif
+
+if WITH_ZSTD
+if HAVE_ZSTD_STREAM
+libxfrm_a_SOURCES += lib/xfrm/zstd.c
+libxfrm_a_CFLAGS += $(ZSTD_CFLAGS) -DWITH_ZSTD
+endif
+endif
+
+noinst_LIBRARIES += libxfrm.a