-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathMakefile.am
162 lines (145 loc) · 5.5 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
ACLOCAL_AMFLAGS = -I m4
openssl_modulesdir = $(MODULESDIR)
openssl_modules_LTLIBRARIES = tpm2.la
tpm2_la_SOURCES = \
src/tpm2-provider.c \
src/tpm2-provider.h \
src/tpm2-provider-core.c \
src/tpm2-provider-semaphore.c \
src/tpm2-provider-semaphore.h \
src/tpm2-provider-types.c \
src/tpm2-provider-types.h \
src/tpm2-provider-x509.c \
src/tpm2-provider-x509.h \
src/tpm2-provider-rand.c \
src/tpm2-provider-pkey.c \
src/tpm2-provider-pkey.h \
src/tpm2-provider-store-handle.c \
src/tpm2-provider-decoder-der.c \
src/tpm2-provider-decoder-tss2.c \
src/tpm2-provider-encoder.c \
src/tpm2-provider-keymgmt-rsa.c \
src/tpm2-provider-keymgmt-ec.c \
src/tpm2-provider-keyexch.c \
src/tpm2-provider-asymcipher-rsa.c \
src/tpm2-provider-digest.c \
src/tpm2-provider-digest.h \
src/tpm2-provider-signature.c
if WITH_OP_CIPHER
tpm2_la_SOURCES += src/tpm2-provider-cipher.c
endif
# https://www.gnu.org/software/autoconf-archive/ax_code_coverage.html
if AUTOCONF_CODE_COVERAGE_2019_01_06
include $(top_srcdir)/aminclude_static.am
clean-local: code-coverage-clean
dist-clean-local: code-coverage-dist-clean
else
@CODE_COVERAGE_RULES@
endif
COMMON_CFLAGS = -Werror -Wall $(CRYPTO_CFLAGS)
COMMON_LDFLAGS =
if WITH_ASAN
COMMON_CFLAGS += -O1 -g -fsanitize=address -fno-omit-frame-pointer
COMMON_LDFLAGS += -fsanitize=address
endif
tpm2_la_CFLAGS = $(TSS2_ESYS_CFLAGS) $(TSS2_TCTILDR_CFLAGS) $(COMMON_CFLAGS) $(CODE_COVERAGE_CFLAGS)
tpm2_la_LIBADD = $(TSS2_ESYS_LIBS) $(TSS2_TCTILDR_LIBS) $(LIBS) $(CODE_COVERAGE_LIBS)
if TSS2_RC
tpm2_la_LIBADD += $(TSS2_RC_LIBS)
endif
tpm2_la_LDFLAGS = -module -avoid-version -no-undefined -export-symbols-regex 'OSSL_provider_init' $(COMMON_LDFLAGS) $(CODE_COVERAGE_LDFLAGS)
check_PROGRAMS = test/selftest
test_selftest_SOURCES = test/selftest.c
test_selftest_CFLAGS = $(COMMON_CFLAGS)
test_selftest_LDADD = $(CRYPTO_LIBS)
test_selftest_LDFLAGS = $(COMMON_LDFLAGS)
check_PROGRAMS += test/rand_processes
test_rand_processes_SOURCES = test/rand_processes.c
test_rand_processes_CFLAGS = $(COMMON_CFLAGS)
test_rand_processes_LDADD = $(CRYPTO_LIBS)
test_rand_processes_LDFLAGS = $(COMMON_LDFLAGS)
check_PROGRAMS += test/rand_threads
test_rand_threads_SOURCES = test/rand_threads.c
test_rand_threads_CFLAGS = $(COMMON_CFLAGS)
test_rand_threads_LDADD = $(CRYPTO_LIBS)
test_rand_threads_LDFLAGS = $(COMMON_LDFLAGS)
check_PROGRAMS += test/ec_genpkey_store_load
test_ec_genpkey_store_load_SOURCES = test/ec_genpkey_store_load.c
test_ec_genpkey_store_load_CFLAGS = $(COMMON_CFLAGS)
test_ec_genpkey_store_load_LDADD = $(CRYPTO_LIBS)
test_ec_genpkey_store_load_LDFLAGS = $(COMMON_LDFLAGS)
check_PROGRAMS += test/ec_genpkey_x509_csr
test_ec_genpkey_x509_csr_SOURCES = test/ec_genpkey_x509_csr.c
test_ec_genpkey_x509_csr_CFLAGS = $(COMMON_CFLAGS)
test_ec_genpkey_x509_csr_LDADD = $(CRYPTO_LIBS)
test_ec_genpkey_x509_csr_LDFLAGS = $(COMMON_LDFLAGS)
check_PROGRAMS += test/rsa_genpkey_decrypt
test_rsa_genpkey_decrypt_SOURCES = test/rsa_genpkey_decrypt.c
test_rsa_genpkey_decrypt_CFLAGS = $(COMMON_CFLAGS)
test_rsa_genpkey_decrypt_LDADD = $(CRYPTO_LIBS)
test_rsa_genpkey_decrypt_LDFLAGS = $(COMMON_LDFLAGS)
TESTS = $(TESTS_SHELL) $(check_PROGRAMS)
TESTS_SHELL = test/list.sh \
test/rand.sh \
test/rsa_genrsa_check.sh \
test/rsa_genpkey_sign.sh \
test/rsa_genpkey_sign_rawin.sh \
test/rsa_genpkey_auth_parent.sh \
test/rsa_createak_auth.sh \
test/rsa_createak_sign_object.sh \
test/rsa_createak_sign_handle.sh \
test/rsa_create_decrypt_pkcs1.sh \
test/rsa_create_decrypt_oaep.sh \
test/rsa_genpkey_x509_cert.sh \
test/rsa_genpkey_x509_cmp.sh \
test/rsa_genpkey_x509_cms.sh \
test/rsa_genpkey_x509_csr.sh \
test/rsa_genpkey_tls_server.sh \
test/rsa_createak_x509_csr.sh \
test/rsapss_genpkey_sign_rawin.sh \
test/rsapss_createak_tls_server.sh \
test/rsa_pki/rsa_pki.sh \
test/ec_genpkey_check.sh \
test/ec_genpkey_parameters.sh \
test/ec_genpkey_x509_cms.sh \
test/ecdsa_genpkey_sign_auth.sh \
test/ecdsa_genpkey_sign_rawin.sh \
test/ecdsa_createak_sign_handle.sh \
test/ecdh_genpkey_keyexch.sh \
test/ecdh_create_keyexch_index.sh \
test/ec_createak_x509_cert.sh \
test/ec_createak_x509_csr_auth.sh \
test/ec_createak_x509_cms.sh \
test/ec_createak_x509_index.sh \
test/ec_genpkey_tls_server.sh \
test/ec_pki/ec_pki.sh \
test/store_x509_index.sh \
test/store_errors.sh
if WITH_OP_DIGEST
TESTS_SHELL += test/digest.sh
endif
if WITH_OP_CIPHER
TESTS_SHELL += test/cipher_aes128_ecb.sh \
test/cipher_aes128_cbc.sh \
test/cipher_aes256.sh \
test/cipher_aes256_nopad.sh \
test/cipher_camellia128.sh
endif
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = $(srcdir)/test/run
AM_TESTS_ENVIRONMENT = \
export OPENSSL_MODULES=$(abs_builddir)/.libs;
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-modulesdir=$(abs_builddir)/$(distdir)/_inst \
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
EXTRA_DIST = \
LICENSE \
README.md \
bootstrap \
docs \
VERSION \
$(TESTS_SHELL) \
$(SH_LOG_COMPILER) \
test/run-with-simulator \
test/ec_pki/openssl.cnf \
test/rsa_pki/etc