blob: bf18b1a007739c7b1a56fc92bc9569c208dda459 [file] [log] [blame]
NingSun0c89b3c2018-02-08 08:34:03 -08001MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
2
3AM_CPPFLAGS = -I$(srcdir)/.. \
4 -I$(srcdir)/../crypto \
5 -I$(srcdir)/../data_mgr \
6 -I$(srcdir)/../pkcs11
7
8noinst_LTLIBRARIES = libsofthsm_common.la
9libsofthsm_common_la_SOURCES = Configuration.cpp \
10 fatal.cpp \
11 log.cpp \
12 osmutex.cpp \
13 SimpleConfigLoader.cpp \
14 MutexFactory.cpp
15
16man_MANS = softhsm2.conf.5
17
18EXTRA_DIST = $(srcdir)/*.h \
19 $(srcdir)/softhsm2.conf.5.in
20
21install-data-hook:
22 test -d ${DESTDIR}${sysconfdir} || \
23 ${INSTALL} -d ${DESTDIR}${sysconfdir}
24 test -f ${DESTDIR}${sysconfdir}/softhsm2.conf || \
25 ${INSTALL_DATA} ${top_builddir}/src/lib/common/softhsm2.conf ${DESTDIR}${sysconfdir}
26 ${INSTALL_DATA} ${top_builddir}/src/lib/common/softhsm2.conf ${DESTDIR}${sysconfdir}/softhsm2.conf.sample
27 test -d ${DESTDIR}${softhsmtokendir} || \
28 ${INSTALL} -d -m 1777 ${DESTDIR}${softhsmtokendir}