3 include $(top_srcdir)/Makefile.am.common
5 lib_LTLIBRARIES = libhx509.la
6 libhx509_la_LDFLAGS = -version-info 5:0:0
10 $(gen_files_ocsp:.x=.c) \
11 $(gen_files_pkcs10:.x=.c) \
16 asn1_OCSPBasicOCSPResponse.x \
18 asn1_OCSPCertStatus.x \
19 asn1_OCSPInnerRequest.x \
22 asn1_OCSPResponderID.x \
24 asn1_OCSPResponseBytes.x \
25 asn1_OCSPResponseData.x \
26 asn1_OCSPResponseStatus.x \
27 asn1_OCSPSignature.x \
28 asn1_OCSPSingleResponse.x \
29 asn1_OCSPTBSRequest.x \
32 asn1_id_pkix_ocsp_basic.x \
33 asn1_id_pkix_ocsp_nonce.x
36 asn1_CertificationRequestInfo.x \
37 asn1_CertificationRequest.x
40 asn1_CRMFRDNSequence.x \
41 asn1_CertReqMessages.x \
49 asn1_POPOSigningKey.x \
50 asn1_POPOSigningKeyInput.x \
51 asn1_ProofOfPossession.x \
52 asn1_SubsequentMessage.x
56 dist_libhx509_la_SOURCES = \
93 libhx509_la_LIBADD = \
96 $(top_builddir)/lib/asn1/libasn1.la \
97 $(top_builddir)/lib/wind/libwind.la \
101 if FRAMEWORK_SECURITY
102 libhx509_la_LDFLAGS += -framework Security -framework CoreFoundation
106 libhx509_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
108 $(libhx509_la_OBJECTS): $(srcdir)/version-script.map
110 libhx509_la_CPPFLAGS = -I$(srcdir)/ref $(INCLUDE_hcrypto)
111 nodist_libhx509_la_SOURCES = $(BUILT_SOURCES)
113 $(gen_files_ocsp) ocsp_asn1.h: ocsp_asn1_files
114 $(gen_files_pkcs10) pkcs10_asn1.h: pkcs10_asn1_files
115 $(gen_files_crmf) crmf_asn1.h: crmf_asn1_files
117 asn1_compile = ../asn1/asn1_compile$(EXEEXT)
119 ocsp_asn1_files: $(asn1_compile) $(srcdir)/ocsp.asn1
120 $(asn1_compile) --preserve-binary=OCSPTBSRequest --preserve-binary=OCSPResponseData $(srcdir)/ocsp.asn1 ocsp_asn1 || (rm -f ocsp_asn1_files ; exit 1)
122 pkcs10_asn1_files: $(asn1_compile) $(srcdir)/pkcs10.asn1
123 $(asn1_compile) --preserve-binary=CertificationRequestInfo $(srcdir)/pkcs10.asn1 pkcs10_asn1 || (rm -f pkcs10_asn1_files ; exit 1)
125 crmf_asn1_files: $(asn1_compile) $(srcdir)/crmf.asn1
126 $(asn1_compile) $(srcdir)/crmf.asn1 crmf_asn1 || (rm -f crmf_asn1_files ; exit 1)
128 $(libhx509_la_OBJECTS): $(srcdir)/hx509-protos.h $(srcdir)/hx509-private.h $(srcdir)/hx_locl.h
129 $(libhx509_la_OBJECTS): ocsp_asn1.h pkcs10_asn1.h
131 $(srcdir)/hx509-protos.h:
132 cd $(srcdir) && perl ../../cf/make-proto.pl -R '^(_|^C)' -E HX509_LIB -q -P comment -o hx509-protos.h $(dist_libhx509_la_SOURCES) || rm -f hx509-protos.h
134 $(srcdir)/hx509-private.h:
135 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p hx509-private.h $(dist_libhx509_la_SOURCES) || rm -f hx509-private.h
137 dist_include_HEADERS = hx509.h hx509-protos.h
138 nodist_include_HEADERS = hx509_err.h
140 SLC = $(top_builddir)/lib/sl/slc
142 bin_PROGRAMS = hxtool
144 hxtool-commands.c hxtool-commands.h: hxtool-commands.in $(SLC)
145 $(SLC) $(srcdir)/hxtool-commands.in
147 dist_hxtool_SOURCES = hxtool.c
148 nodist_hxtool_SOURCES = hxtool-commands.c hxtool-commands.h
150 $(hxtool_OBJECTS): hxtool-commands.h
152 hxtool_CPPFLAGS = $(INCLUDE_hcrypto)
155 $(top_builddir)/lib/asn1/libasn1.la \
158 $(top_builddir)/lib/sl/libsl.la
160 CLEANFILES = $(BUILT_SOURCES) \
161 $(gen_files_ocsp) ocsp_asn1_files ocsp_asn1.h \
162 $(gen_files_pkcs10) pkcs10_asn1_files pkcs10_asn1.h \
163 $(gen_files_crmf) crmf_asn1_files crmf_asn1.h \
165 hxtool-commands.c hxtool-commands.h *.tmp \
168 sd.data sd.data.out \
169 ev.data ev.data.out \
170 cert-null.pem cert-sub-ca2.pem \
171 cert-ee.pem cert-ca.pem \
172 cert-sub-ee.pem cert-sub-ca.pem \
173 cert-proxy.der cert-ca.der cert-ee.der pkcs10-request.der \
174 wca.pem wuser.pem wdc.pem wcrl.crl \
175 random-data statfile crl.crl \
176 test p11dbg.log pkcs11.cfg \
180 @echo "cleaning PKITS" ; rm -rf PKITS_data
186 check_SCRIPTS = $(SCRIPT_TESTS)
187 check_PROGRAMS = $(PROGRAM_TESTS) test_soft_pkcs11
191 test_soft_pkcs11_LDADD = libhx509.la
192 test_soft_pkcs11_CPPFLAGS = -I$(srcdir)/ref
194 TESTS = $(SCRIPT_TESTS) $(PROGRAM_TESTS)
216 do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
217 -e 's,[@]objdir[@],$(top_builddir)/lib/hx509,g' \
218 -e 's,[@]egrep[@],$(EGREP),g'
220 test_ca: test_ca.in Makefile
221 $(do_subst) < $(srcdir)/test_ca.in > test_ca.tmp
223 mv test_ca.tmp test_ca
225 test_cert: test_cert.in Makefile
226 $(do_subst) < $(srcdir)/test_cert.in > test_cert.tmp
227 chmod +x test_cert.tmp
228 mv test_cert.tmp test_cert
230 test_chain: test_chain.in Makefile
231 $(do_subst) < $(srcdir)/test_chain.in > test_chain.tmp
232 chmod +x test_chain.tmp
233 mv test_chain.tmp test_chain
235 test_cms: test_cms.in Makefile
236 $(do_subst) < $(srcdir)/test_cms.in > test_cms.tmp
237 chmod +x test_cms.tmp
238 mv test_cms.tmp test_cms
240 test_crypto: test_crypto.in Makefile
241 $(do_subst) < $(srcdir)/test_crypto.in > test_crypto.tmp
242 chmod +x test_crypto.tmp
243 mv test_crypto.tmp test_crypto
245 test_nist: test_nist.in Makefile
246 $(do_subst) < $(srcdir)/test_nist.in > test_nist.tmp
247 chmod +x test_nist.tmp
248 mv test_nist.tmp test_nist
250 test_nist2: test_nist2.in Makefile
251 $(do_subst) < $(srcdir)/test_nist2.in > test_nist2.tmp
252 chmod +x test_nist2.tmp
253 mv test_nist2.tmp test_nist2
255 test_pkcs11: test_pkcs11.in Makefile
256 $(do_subst) < $(srcdir)/test_pkcs11.in > test_pkcs11.tmp
257 chmod +x test_pkcs11.tmp
258 mv test_pkcs11.tmp test_pkcs11
260 test_java_pkcs11: test_java_pkcs11.in Makefile
261 $(do_subst) < $(srcdir)/test_java_pkcs11.in > test_java_pkcs11.tmp
262 chmod +x test_java_pkcs11.tmp
263 mv test_java_pkcs11.tmp test_java_pkcs11
265 test_nist_cert: test_nist_cert.in Makefile
266 $(do_subst) < $(srcdir)/test_nist_cert.in > test_nist_cert.tmp
267 chmod +x test_nist_cert.tmp
268 mv test_nist_cert.tmp test_nist_cert
270 test_nist_pkcs12: test_nist_pkcs12.in Makefile
271 $(do_subst) < $(srcdir)/test_nist_pkcs12.in > test_nist_pkcs12.tmp
272 chmod +x test_nist_pkcs12.tmp
273 mv test_nist_pkcs12.tmp test_nist_pkcs12
275 test_req: test_req.in Makefile
276 $(do_subst) < $(srcdir)/test_req.in > test_req.tmp
277 chmod +x test_req.tmp
278 mv test_req.tmp test_req
280 test_windows: test_windows.in Makefile
281 $(do_subst) < $(srcdir)/test_windows.in > test_windows.tmp
282 chmod +x test_windows.tmp
283 mv test_windows.tmp test_windows
285 test_query: test_query.in Makefile
286 $(do_subst) < $(srcdir)/test_query.in > test_query.tmp
287 chmod +x test_query.tmp
288 mv test_query.tmp test_query
305 test_nist_pkcs12.in \
307 test_java_pkcs11.in \
311 tst-crypto-available1 \
312 tst-crypto-available2 \
313 tst-crypto-available3 \
322 data/secp160r1TestCA.cert.pem \
323 data/secp160r1TestCA.key.pem \
324 data/secp160r1TestCA.pem \
325 data/secp160r2TestClient.cert.pem \
326 data/secp160r2TestClient.key.pem \
327 data/secp160r2TestClient.pem \
328 data/secp160r2TestServer.cert.pem \
329 data/secp160r2TestServer.key.pem \
330 data/secp160r2TestServer.pem \
331 data/bleichenbacher-bad.pem \
332 data/bleichenbacher-good.pem \
333 data/bleichenbacher-sf-pad-correct.pem \
346 data/no-proxy-test.crt \
347 data/no-proxy-test.key \
350 data/ocsp-resp1-2.der \
351 data/ocsp-resp1-3.der \
352 data/ocsp-resp1-ca.der \
353 data/ocsp-resp1-keyhash.der \
354 data/ocsp-resp1-ocsp-no-cert.der \
355 data/ocsp-resp1-ocsp.der \
356 data/ocsp-resp1.der \
357 data/ocsp-resp2.der \
358 data/ocsp-responder.crt \
359 data/ocsp-responder.key \
361 data/pkinit-proxy-chain.crt \
362 data/pkinit-proxy.crt \
363 data/pkinit-proxy.key \
367 data/proxy-level-test.crt \
368 data/proxy-level-test.key \
369 data/proxy-test.crt \
370 data/proxy-test.key \
371 data/proxy10-child-test.crt \
372 data/proxy10-child-test.key \
373 data/proxy10-child-child-test.crt \
374 data/proxy10-child-child-test.key \
375 data/proxy10-test.crt \
376 data/proxy10-test.key \
379 data/sf-class2-root.pem \
386 data/test-ds-only.crt \
387 data/test-ds-only.key \
388 data/test-enveloped-aes-128 \
389 data/test-enveloped-aes-256 \
390 data/test-enveloped-des \
391 data/test-enveloped-des-ede3 \
392 data/test-enveloped-rc2-128 \
393 data/test-enveloped-rc2-40 \
394 data/test-enveloped-rc2-64 \
395 data/test-ke-only.crt \
396 data/test-ke-only.key \
399 data/test-signed-data \
400 data/test-signed-data-noattr \
401 data/test-signed-data-noattr-nocerts \
402 data/test.combined.crt \
406 data/yutaka-pad-broken-ca.pem \
407 data/yutaka-pad-broken-cert.pem \
408 data/yutaka-pad-ok-ca.pem \
409 data/yutaka-pad-ok-cert.pem \