Use of TPM 2.0 private keys for signatures via tpm plugin
[strongswan.git] / src / libtpmtss / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan
3
4 AM_CFLAGS = \
5         $(tss2_CFLAGS)
6
7 AM_LDFLAGS = \
8         -no-undefined
9
10 ipseclib_LTLIBRARIES = libtpmtss.la
11
12 libtpmtss_la_LIBADD = \
13         $(top_builddir)/src/libstrongswan/libstrongswan.la
14
15 if USE_TSS2
16 libtpmtss_la_LIBADD += $(tss2_LIBS)
17 endif
18
19 if USE_TROUSERS
20 libtpmtss_la_LIBADD += -ltspi
21 endif
22
23 libtpmtss_la_SOURCES = \
24         tpm_tss.h tpm_tss.c \
25         tpm_tss_quote_info.h tpm_tss_quote_info.c \
26         tpm_tss_trousers.h tpm_tss_trousers.c \
27         tpm_tss_tss2.h tpm_tss_tss2.c \
28         tpm_tss_tss2_names.h tpm_tss_tss2_names.c
29
30 if MONOLITHIC
31 SUBDIRS =
32 else
33 SUBDIRS = .
34 endif
35
36 if USE_TPM
37   SUBDIRS += plugins/tpm
38 if MONOLITHIC
39   libtpmtss_la_LIBADD += plugins/tpm/libstrongswan-tpm.la
40 endif
41 endif
42
43