Update SoftHSM v2.0 to the latest version
[aaf/sshsm.git] / SoftHSMv2 / src / lib / Makefile.am
1 MAINTAINERCLEANFILES =          $(srcdir)/Makefile.in
2
3 AM_CPPFLAGS =                   -I$(srcdir)/common \
4                                 -I$(srcdir)/crypto \
5                                 -I$(srcdir)/data_mgr \
6                                 -I$(srcdir)/handle_mgr \
7                                 -I$(srcdir)/object_store \
8                                 -I$(srcdir)/pkcs11 \
9                                 -I$(srcdir)/session_mgr \
10                                 -I$(srcdir)/slot_mgr \
11                                 -I$(srcdir)/HwInfra \
12                                 @CRYPTO_INCLUDES@
13
14 lib_LTLIBRARIES =               libsofthsm2.la
15
16 libsofthsm2_la_SOURCES =        access.cpp \
17                                 main.cpp \
18                                 P11Attributes.cpp \
19                                 P11Objects.cpp \
20                                 SoftHSM.cpp
21 libsofthsm2_la_LIBADD =         common/libsofthsm_common.la \
22                                 crypto/libsofthsm_crypto.la \
23                                 data_mgr/libsofthsm_datamgr.la \
24                                 handle_mgr/libsofthsm_handlemgr.la \
25                                 object_store/libsofthsm_objectstore.la \
26                                 session_mgr/libsofthsm_sessionmgr.la \
27                                 slot_mgr/libsofthsm_slotmgr.la \
28                                 HwInfra/libsofthsm_hwinfra.la
29 libsofthsm2_la_LDFLAGS =        -version-info @VERSION_INFO@ \
30                                 -avoid-version -module
31
32 # Create a convenience library from all the other convenience library; this is
33 # necessary to resolve circular dependencies when statically linking the test
34 # executables
35 noinst_LTLIBRARIES =            libsofthsm_convarch.la
36
37 libsofthsm_convarch_la_SOURCES =
38
39 libsofthsm_convarch_la_LIBADD = $(libsofthsm2_la_LIBADD)
40
41 SUBDIRS =                       common \
42                                 crypto \
43                                 data_mgr \
44                                 object_store \
45                                 session_mgr \
46                                 slot_mgr \
47                                 HwInfra \
48                                 handle_mgr \
49                                 test
50
51 EXTRA_DIST =                    $(srcdir)/CMakeLists.txt \
52                                 $(srcdir)/*.h \
53                                 $(srcdir)/pkcs11/*.h