blob: f689b0c783076d7901adfa10263afc385a9202a6 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
|