Makefile.am 1.58 KB
Newer Older
1 2 3
SUBDIRS = . tests

AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
4
AM_CPPFLAGS += $(BOOST_INCLUDES) $(CRYPTO_CFLAGS) $(CRYPTO_INCLUDES)
5
AM_CXXFLAGS = $(KEA_CXXFLAGS)
6 7 8

CLEANFILES = *.gcno *.gcda

9
lib_LTLIBRARIES = libkea-cryptolink.la
10

11
libkea_cryptolink_la_SOURCES = cryptolink.h cryptolink.cc
12
libkea_cryptolink_la_SOURCES += crypto_hash.h crypto_hash.cc
13
libkea_cryptolink_la_SOURCES += crypto_hmac.h crypto_hmac.cc
14
libkea_cryptolink_la_SOURCES += crypto_rng.h crypto_rng.cc
15 16
if HAVE_BOTAN
libkea_cryptolink_la_SOURCES += botan_link.cc
17
libkea_cryptolink_la_SOURCES += botan_common.h
18 19 20 21 22
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
23
libkea_cryptolink_la_SOURCES += openssl_common.h
24
libkea_cryptolink_la_SOURCES += openssl_hash.cc
25
libkea_cryptolink_la_SOURCES += openssl_compat.h
26 27
libkea_cryptolink_la_SOURCES += openssl_hmac.cc
endif
28

29
libkea_cryptolink_la_LDFLAGS = $(CRYPTO_LDFLAGS)
30
libkea_cryptolink_la_LDFLAGS += -no-undefined -version-info 5:0:0
31
libkea_cryptolink_la_LIBADD  = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
32
libkea_cryptolink_la_LIBADD += $(CRYPTO_LIBS)
33 34 35 36 37 38


# Specify the headers for copying into the installation directory tree.
libkea_cryptolink_includedir = $(pkgincludedir)/cryptolink
libkea_cryptolink_include_HEADERS = \
	crypto_hash.h \
39
	crypto_hmac.h \
40
	crypto_rng.h \
41
	cryptolink.h
42 43 44 45 46 47 48 49 50 51 52

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