Update SoftHSM v2.0 to the latest version
[aaf/sshsm.git] / SoftHSMv2 / src / bin / util / Makefile.am
1 MAINTAINERCLEANFILES =  $(srcdir)/Makefile.in
2
3 AM_CPPFLAGS =           -I$(srcdir)/../common \
4                         -I$(srcdir)/../../lib/ \
5                         -I$(srcdir)/../../lib/common \
6                         -I$(srcdir)/../../lib/crypto \
7                         -I$(srcdir)/../../lib/data_mgr \
8                         -I$(srcdir)/../../lib/object_store \
9                         -I$(srcdir)/../../lib/pkcs11 \
10                         @CRYPTO_INCLUDES@ \
11                         @SQLITE3_INCLUDES@
12
13 dist_man_MANS =         softhsm2-util.1
14
15 bin_PROGRAMS =          softhsm2-util
16
17 AUTOMAKE_OPTIONS =      subdir-objects
18
19 softhsm2_util_SOURCES = softhsm2-util.cpp \
20                         ../common/findslot.cpp \
21                         ../common/getpw.cpp \
22                         ../common/library.cpp
23
24 softhsm2_util_LDADD =   @CRYPTO_LIBS@ \
25                         @SQLITE3_LIBS@ \
26                         ../../lib/libsofthsm_convarch.la
27
28 # Compile with support of OpenSSL
29 if WITH_OPENSSL
30 softhsm2_util_SOURCES +=        softhsm2-util-ossl.cpp \
31                                 ../../lib/crypto/OSSLComp.cpp
32 endif
33
34 # Compile with support of Botan
35 if WITH_BOTAN
36 softhsm2_util_SOURCES +=        softhsm2-util-botan.cpp
37 endif
38
39 EXTRA_DIST =            $(srcdir)/CMakeLists.txt \
40                         $(srcdir)/*.h \
41                         $(srcdir)/*.cpp