noinst_LTLIBRARIES = libcompression.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test
libcompression_la_SOURCES = \
libcompression_la_LIBADD = \
$(COMPRESS_LIBS)
pkginc_libdir = $(pkgincludedir)
pkginc_lib_HEADERS = \
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)
test_libs = \
$(noinst_LTLIBRARIES) \
test_deps = $(test_libs)
test_compression_SOURCES = test-compression.c
test_compression_LDADD = $(test_libs)
test_compression_DEPENDENCIES = $(test_deps)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done