summaryrefslogtreecommitdiffstats
path: root/src/lib/cryptolink/Makefile.am
blob: 4644b8a11ed61816689fb9c7a2c9813942225177 (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
SUBDIRS = . tests

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
AM_CXXFLAGS = $(KEA_CXXFLAGS)

CLEANFILES = *.gcno *.gcda

lib_LTLIBRARIES = libkea-cryptolink.la

libkea_cryptolink_la_SOURCES = cryptolink.h cryptolink.cc
libkea_cryptolink_la_SOURCES += crypto_hash.h crypto_hash.cc
libkea_cryptolink_la_SOURCES += crypto_hmac.h crypto_hmac.cc
libkea_cryptolink_la_SOURCES += crypto_rng.h crypto_rng.cc
if HAVE_BOTAN
libkea_cryptolink_la_SOURCES += botan_link.cc
libkea_cryptolink_la_SOURCES += botan_common.h
libkea_cryptolink_la_SOURCES += botan_hash.cc
libkea_cryptolink_la_SOURCES += botan_hmac.cc
endif
if HAVE_OPENSSL
libkea_cryptolink_la_SOURCES += openssl_link.cc
libkea_cryptolink_la_SOURCES += openssl_common.h
libkea_cryptolink_la_SOURCES += openssl_hash.cc
libkea_cryptolink_la_SOURCES += openssl_compat.h
libkea_cryptolink_la_SOURCES += openssl_hmac.cc
endif

libkea_cryptolink_la_LDFLAGS = $(CRYPTO_LDFLAGS)
libkea_cryptolink_la_LDFLAGS += -no-undefined -version-info 27:0:0
libkea_cryptolink_la_LIBADD  = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
libkea_cryptolink_la_LIBADD += $(CRYPTO_LIBS)


# Specify the headers for copying into the installation directory tree.
libkea_cryptolink_includedir = $(pkgincludedir)/cryptolink
libkea_cryptolink_include_HEADERS = \
	crypto_hash.h \
	crypto_hmac.h \
	crypto_rng.h \
	cryptolink.h

if HAVE_BOTAN
libkea_cryptolink_include_HEADERS += \
	botan_common.h
endif

if HAVE_OPENSSL
libkea_cryptolink_include_HEADERS += \
	openssl_common.h \
	openssl_compat.h
endif