diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/lib-compression/Makefile.am | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib-compression/Makefile.am')
-rw-r--r-- | src/lib-compression/Makefile.am | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib-compression/Makefile.am b/src/lib-compression/Makefile.am new file mode 100644 index 0000000..f689b0c --- /dev/null +++ b/src/lib-compression/Makefile.am @@ -0,0 +1,61 @@ +noinst_LTLIBRARIES = libcompression.la + +AM_CPPFLAGS = \ + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/lib-test \ + $(ZSTD_CFLAGS) + +libcompression_la_SOURCES = \ + compression.c \ + istream-decompress.c \ + istream-lzma.c \ + istream-lz4.c \ + istream-zlib.c \ + istream-bzlib.c \ + istream-zstd.c \ + ostream-lz4.c \ + ostream-zlib.c \ + ostream-bzlib.c \ + ostream-zstd.c +libcompression_la_LIBADD = \ + $(COMPRESS_LIBS) + +pkginc_libdir = $(pkgincludedir) +pkginc_lib_HEADERS = \ + compression.h \ + iostream-lz4.h \ + istream-zlib.h \ + ostream-zlib.h + +noinst_HEADERS = \ + iostream-zstd-private.h + +pkglib_LTLIBRARIES = libdovecot-compression.la +libdovecot_compression_la_SOURCES = +libdovecot_compression_la_LIBADD = libcompression.la ../lib-dovecot/libdovecot.la $(COMPRESS_LIBS) +libdovecot_compression_la_DEPENDENCIES = libcompression.la ../lib-dovecot/libdovecot.la +libdovecot_compression_la_LDFLAGS = -export-dynamic + +test_programs = \ + test-compression + +noinst_PROGRAMS = $(test_programs) bench-compression + +test_libs = \ + $(noinst_LTLIBRARIES) \ + ../lib-test/libtest.la \ + ../lib/liblib.la +test_deps = $(test_libs) + +test_compression_SOURCES = test-compression.c +test_compression_LDADD = $(test_libs) +test_compression_DEPENDENCIES = $(test_deps) + +bench_compression_SOURCES = bench-compression.c +bench_compression_LDADD = $(test_libs) +bench_compression_DEPENDENCIES = $(test_deps) + +check-local: + for bin in $(test_programs); do \ + if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ + done |