-
Notifications
You must be signed in to change notification settings - Fork 271
/
Makefile.am
70 lines (56 loc) · 1.94 KB
/
Makefile.am
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
62
63
64
65
66
67
68
69
70
noinst_LTLIBRARIES = libdcrypt.la
pkglib_LTLIBRARIES =
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-ssl-iostream
libdcrypt_la_SOURCES = \
dcrypt.c \
istream-decrypt.c \
ostream-encrypt.c
libdcrypt_la_CFLAGS = $(AM_CPPFLAGS) \
-DDCRYPT_MODULE_DIR=\"$(pkglibdir)\"
libdcrypt_la_LDFLAGS = -export-dynamic
if BUILD_DCRYPT_OPENSSL
pkglib_LTLIBRARIES += libdcrypt_openssl.la
libdcrypt_openssl_la_SOURCES = dcrypt-openssl.c
libdcrypt_openssl_la_LDFLAGS = -module -avoid-version -shared ../lib-ssl-iostream/libdovecot_openssl_common.la ../lib/liblib.la
libdcrypt_openssl_la_LIBADD = $(SSL_LIBS)
libdcrypt_openssl_la_DEPENDENCIES = ../lib-ssl-iostream/libdovecot_openssl_common.la ../lib/liblib.la
libdcrypt_openssl_la_CFLAGS = $(AM_CPPFLAGS) \
-DDCRYPT_MODULE_DIR=\"$(pkglibdir)\" \
$(SSL_CFLAGS)
endif
headers = \
dcrypt.h \
dcrypt-iostream.h \
dcrypt-private.h \
ostream-encrypt.h \
istream-decrypt.h
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
EXTRA_DIST = \
sample-v1.asc \
sample-v1_short.asc \
sample-v2.asc
test_programs = test-crypto test-stream
noinst_PROGRAMS = $(test_programs)
check: check-am check-test
check-test: all-am
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done
LIBDOVECOT_TEST_DEPS = \
../lib-test/libtest.la \
../lib/liblib.la
LIBDOVECOT_TEST = \
$(LIBDOVECOT_TEST_DEPS) \
$(MODULE_LIBS)
test_crypto_LDADD = $(LIBDOVECOT_TEST)
test_crypto_DEPENDENCIES = $(LIBDOVECOT_TEST_DEPS)
test_crypto_CFLAGS = $(AM_CPPFLAGS) -DDCRYPT_MODULE_DIR=\".libs\" -DDCRYPT_SRC_DIR=\"$(top_srcdir)/src/lib-dcrypt\"
test_crypto_SOURCES = $(libdcrypt_la_SOURCES) test-crypto.c
test_stream_LDADD = $(LIBDOVECOT_TEST)
test_stream_DEPENDENCIES = $(LIBDOVECOT_TEST_DEPS)
test_stream_CFLAGS = $(AM_CPPFLAGS) -DDCRYPT_MODULE_DIR=\".libs\" -DDCRYPT_SRC_DIR=\"$(top_srcdir)/src/lib-dcrypt\"
test_stream_SOURCES = $(libdcrypt_la_SOURCES) test-stream.c