xref: /freebsd/crypto/heimdal/lib/asn1/Makefile.am (revision 39beb93c3f8bdbf72a61fda42300b5ebed7390c8)
1# $Id: Makefile.am 22445 2008-01-14 21:23:36Z lha $
2
3include $(top_srcdir)/Makefile.am.common
4
5YFLAGS = -d -t
6
7lib_LTLIBRARIES = libasn1.la
8libasn1_la_LDFLAGS = -version-info 8:0:0
9
10libasn1_la_LIBADD = \
11	@LIB_com_err@ \
12	$(LIBADD_roken)
13
14BUILT_SOURCES =				\
15	$(gen_files_rfc2459:.x=.c)	\
16	$(gen_files_cms:.x=.c)		\
17	$(gen_files_k5:.x=.c)		\
18	$(gen_files_pkinit:.x=.c)	\
19	$(gen_files_pkcs8:.x=.c)	\
20	$(gen_files_pkcs9:.x=.c)	\
21	$(gen_files_pkcs12:.x=.c)	\
22	$(gen_files_digest:.x=.c)	\
23	$(gen_files_kx509:.x=.c)	\
24	asn1_err.h			\
25	asn1_err.c
26
27gen_files_k5 =						\
28	asn1_AD_AND_OR.x				\
29	asn1_AD_IF_RELEVANT.x				\
30	asn1_AD_KDCIssued.x				\
31	asn1_AD_MANDATORY_FOR_KDC.x			\
32	asn1_AD_LoginAlias.x				\
33	asn1_APOptions.x				\
34	asn1_AP_REP.x					\
35	asn1_AP_REQ.x					\
36	asn1_AS_REP.x					\
37	asn1_AS_REQ.x					\
38	asn1_AUTHDATA_TYPE.x				\
39	asn1_Authenticator.x				\
40	asn1_AuthorizationData.x			\
41	asn1_AuthorizationDataElement.x			\
42	asn1_CKSUMTYPE.x				\
43	asn1_ChangePasswdDataMS.x			\
44	asn1_Checksum.x					\
45	asn1_ENCTYPE.x					\
46	asn1_ETYPE_INFO.x				\
47	asn1_ETYPE_INFO2.x				\
48	asn1_ETYPE_INFO2_ENTRY.x			\
49	asn1_ETYPE_INFO_ENTRY.x				\
50	asn1_EncAPRepPart.x				\
51	asn1_EncASRepPart.x				\
52	asn1_EncKDCRepPart.x				\
53	asn1_EncKrbCredPart.x				\
54	asn1_EncKrbPrivPart.x				\
55	asn1_EncTGSRepPart.x				\
56	asn1_EncTicketPart.x				\
57	asn1_EncryptedData.x				\
58	asn1_EncryptionKey.x				\
59	asn1_EtypeList.x				\
60	asn1_HostAddress.x				\
61	asn1_HostAddresses.x				\
62	asn1_KDCOptions.x				\
63	asn1_KDC_REP.x					\
64	asn1_KDC_REQ.x					\
65	asn1_KDC_REQ_BODY.x				\
66	asn1_KRB_CRED.x					\
67	asn1_KRB_ERROR.x				\
68	asn1_KRB_PRIV.x					\
69	asn1_KRB_SAFE.x					\
70	asn1_KRB_SAFE_BODY.x				\
71	asn1_KerberosString.x				\
72	asn1_KerberosTime.x				\
73	asn1_KrbCredInfo.x				\
74	asn1_LR_TYPE.x					\
75	asn1_LastReq.x					\
76	asn1_MESSAGE_TYPE.x				\
77	asn1_METHOD_DATA.x				\
78	asn1_NAME_TYPE.x				\
79	asn1_PADATA_TYPE.x				\
80	asn1_PA_DATA.x					\
81	asn1_PA_ENC_SAM_RESPONSE_ENC.x         		\
82	asn1_PA_ENC_TS_ENC.x				\
83	asn1_PA_PAC_REQUEST.x				\
84	asn1_PA_S4U2Self.x				\
85	asn1_PA_SAM_CHALLENGE_2.x               	\
86	asn1_PA_SAM_CHALLENGE_2_BODY.x 			\
87	asn1_PA_SAM_REDIRECT.x				\
88	asn1_PA_SAM_RESPONSE_2.x			\
89	asn1_PA_SAM_TYPE.x				\
90	asn1_PA_ClientCanonicalized.x			\
91	asn1_PA_ClientCanonicalizedNames.x		\
92	asn1_PA_SvrReferralData.x			\
93	asn1_PROV_SRV_LOCATION.x			\
94	asn1_Principal.x				\
95	asn1_PrincipalName.x				\
96	asn1_Realm.x					\
97	asn1_SAMFlags.x					\
98	asn1_TGS_REP.x					\
99	asn1_TGS_REQ.x					\
100	asn1_TYPED_DATA.x				\
101	asn1_Ticket.x					\
102	asn1_TicketFlags.x				\
103	asn1_TransitedEncoding.x			\
104	asn1_TypedData.x				\
105	asn1_krb5int32.x				\
106	asn1_krb5uint32.x				\
107	asn1_KRB5SignedPathData.x			\
108	asn1_KRB5SignedPathPrincipals.x			\
109	asn1_KRB5SignedPath.x
110
111gen_files_cms =						\
112	asn1_CMSAttributes.x				\
113	asn1_CMSCBCParameter.x				\
114	asn1_CMSEncryptedData.x				\
115	asn1_CMSIdentifier.x				\
116	asn1_CMSRC2CBCParameter.x			\
117	asn1_CMSVersion.x				\
118	asn1_CertificateList.x				\
119	asn1_CertificateRevocationLists.x		\
120	asn1_CertificateSet.x				\
121	asn1_ContentEncryptionAlgorithmIdentifier.x	\
122	asn1_ContentInfo.x				\
123	asn1_ContentType.x				\
124	asn1_DigestAlgorithmIdentifier.x		\
125	asn1_DigestAlgorithmIdentifiers.x		\
126	asn1_EncapsulatedContentInfo.x			\
127	asn1_EncryptedContent.x				\
128	asn1_EncryptedContentInfo.x			\
129	asn1_EncryptedKey.x				\
130	asn1_EnvelopedData.x				\
131	asn1_IssuerAndSerialNumber.x			\
132	asn1_KeyEncryptionAlgorithmIdentifier.x		\
133	asn1_KeyTransRecipientInfo.x			\
134	asn1_MessageDigest.x				\
135	asn1_OriginatorInfo.x				\
136	asn1_RecipientIdentifier.x			\
137	asn1_RecipientInfo.x				\
138	asn1_RecipientInfos.x				\
139	asn1_SignatureAlgorithmIdentifier.x		\
140	asn1_SignatureValue.x				\
141	asn1_SignedData.x				\
142	asn1_SignerIdentifier.x				\
143	asn1_SignerInfo.x				\
144	asn1_SignerInfos.x				\
145	asn1_id_pkcs7.x					\
146	asn1_id_pkcs7_data.x				\
147	asn1_id_pkcs7_digestedData.x			\
148	asn1_id_pkcs7_encryptedData.x			\
149	asn1_id_pkcs7_envelopedData.x			\
150	asn1_id_pkcs7_signedAndEnvelopedData.x		\
151	asn1_id_pkcs7_signedData.x			\
152	asn1_UnprotectedAttributes.x
153
154gen_files_rfc2459 =					\
155	asn1_Version.x					\
156	asn1_id_pkcs_1.x				\
157	asn1_id_pkcs1_rsaEncryption.x			\
158	asn1_id_pkcs1_md2WithRSAEncryption.x		\
159	asn1_id_pkcs1_md5WithRSAEncryption.x		\
160	asn1_id_pkcs1_sha1WithRSAEncryption.x		\
161	asn1_id_pkcs1_sha256WithRSAEncryption.x		\
162	asn1_id_pkcs1_sha384WithRSAEncryption.x		\
163	asn1_id_pkcs1_sha512WithRSAEncryption.x		\
164	asn1_id_heim_rsa_pkcs1_x509.x			\
165	asn1_id_pkcs_2.x				\
166	asn1_id_pkcs2_md2.x				\
167	asn1_id_pkcs2_md4.x				\
168	asn1_id_pkcs2_md5.x				\
169	asn1_id_rsa_digestAlgorithm.x			\
170	asn1_id_rsa_digest_md2.x			\
171	asn1_id_rsa_digest_md4.x			\
172	asn1_id_rsa_digest_md5.x			\
173	asn1_id_pkcs_3.x				\
174	asn1_id_pkcs3_rc2_cbc.x				\
175	asn1_id_pkcs3_rc4.x				\
176	asn1_id_pkcs3_des_ede3_cbc.x			\
177	asn1_id_rsadsi_encalg.x				\
178	asn1_id_rsadsi_rc2_cbc.x			\
179	asn1_id_rsadsi_des_ede3_cbc.x			\
180	asn1_id_secsig_sha_1.x				\
181	asn1_id_nistAlgorithm.x				\
182	asn1_id_nist_aes_algs.x				\
183	asn1_id_aes_128_cbc.x				\
184	asn1_id_aes_192_cbc.x				\
185	asn1_id_aes_256_cbc.x				\
186	asn1_id_nist_sha_algs.x				\
187	asn1_id_sha256.x				\
188	asn1_id_sha224.x				\
189	asn1_id_sha384.x				\
190	asn1_id_sha512.x				\
191	asn1_id_dhpublicnumber.x			\
192	asn1_id_x9_57.x					\
193	asn1_id_dsa.x					\
194	asn1_id_dsa_with_sha1.x				\
195	asn1_id_x520_at.x				\
196	asn1_id_at_commonName.x				\
197	asn1_id_at_surname.x				\
198	asn1_id_at_serialNumber.x			\
199	asn1_id_at_countryName.x			\
200	asn1_id_at_localityName.x			\
201	asn1_id_at_streetAddress.x			\
202	asn1_id_at_stateOrProvinceName.x		\
203	asn1_id_at_organizationName.x			\
204	asn1_id_at_organizationalUnitName.x		\
205	asn1_id_at_name.x				\
206	asn1_id_at_givenName.x				\
207	asn1_id_at_initials.x				\
208	asn1_id_at_generationQualifier.x		\
209	asn1_id_at_pseudonym.x				\
210	asn1_id_Userid.x				\
211	asn1_id_domainComponent.x			\
212	asn1_id_x509_ce.x				\
213	asn1_id_uspkicommon_card_id.x			\
214	asn1_id_uspkicommon_piv_interim.x		\
215	asn1_id_netscape.x				\
216	asn1_id_netscape_cert_comment.x			\
217	asn1_id_ms_cert_enroll_domaincontroller.x	\
218	asn1_id_ms_client_authentication.x		\
219	asn1_AlgorithmIdentifier.x			\
220	asn1_AttributeType.x				\
221	asn1_AttributeValue.x				\
222	asn1_TeletexStringx.x				\
223	asn1_DirectoryString.x				\
224	asn1_Attribute.x				\
225	asn1_AttributeTypeAndValue.x			\
226	asn1_AuthorityInfoAccessSyntax.x		\
227	asn1_AccessDescription.x			\
228	asn1_RelativeDistinguishedName.x		\
229	asn1_RDNSequence.x				\
230	asn1_Name.x					\
231	asn1_CertificateSerialNumber.x			\
232	asn1_Time.x					\
233	asn1_Validity.x					\
234	asn1_UniqueIdentifier.x				\
235	asn1_SubjectPublicKeyInfo.x			\
236	asn1_Extension.x				\
237	asn1_Extensions.x				\
238	asn1_TBSCertificate.x				\
239	asn1_Certificate.x				\
240	asn1_Certificates.x				\
241	asn1_ValidationParms.x				\
242	asn1_DomainParameters.x				\
243	asn1_DHPublicKey.x				\
244	asn1_OtherName.x				\
245	asn1_GeneralName.x				\
246	asn1_GeneralNames.x				\
247	asn1_id_x509_ce_keyUsage.x			\
248	asn1_KeyUsage.x					\
249	asn1_id_x509_ce_authorityKeyIdentifier.x	\
250	asn1_KeyIdentifier.x				\
251	asn1_AuthorityKeyIdentifier.x			\
252	asn1_id_x509_ce_subjectKeyIdentifier.x		\
253	asn1_SubjectKeyIdentifier.x			\
254	asn1_id_x509_ce_basicConstraints.x		\
255	asn1_BasicConstraints.x				\
256	asn1_id_x509_ce_nameConstraints.x		\
257	asn1_BaseDistance.x				\
258	asn1_GeneralSubtree.x				\
259	asn1_GeneralSubtrees.x				\
260	asn1_NameConstraints.x				\
261	asn1_id_x509_ce_privateKeyUsagePeriod.x		\
262	asn1_id_x509_ce_certificatePolicies.x		\
263	asn1_id_x509_ce_policyMappings.x		\
264	asn1_id_x509_ce_subjectAltName.x		\
265	asn1_id_x509_ce_issuerAltName.x			\
266	asn1_id_x509_ce_subjectDirectoryAttributes.x	\
267	asn1_id_x509_ce_policyConstraints.x		\
268	asn1_id_x509_ce_extKeyUsage.x			\
269	asn1_ExtKeyUsage.x				\
270	asn1_id_x509_ce_cRLDistributionPoints.x		\
271	asn1_id_x509_ce_deltaCRLIndicator.x		\
272	asn1_id_x509_ce_issuingDistributionPoint.x	\
273	asn1_id_x509_ce_holdInstructionCode.x		\
274	asn1_id_x509_ce_invalidityDate.x		\
275	asn1_id_x509_ce_certificateIssuer.x		\
276	asn1_id_x509_ce_inhibitAnyPolicy.x		\
277	asn1_DistributionPointReasonFlags.x		\
278	asn1_DistributionPointName.x			\
279	asn1_DistributionPoint.x			\
280	asn1_CRLDistributionPoints.x			\
281	asn1_DSASigValue.x				\
282	asn1_DSAPublicKey.x				\
283	asn1_DSAParams.x				\
284	asn1_RSAPublicKey.x				\
285	asn1_RSAPrivateKey.x				\
286	asn1_DigestInfo.x				\
287	asn1_TBSCRLCertList.x				\
288	asn1_CRLCertificateList.x			\
289	asn1_id_x509_ce_cRLNumber.x			\
290	asn1_id_x509_ce_freshestCRL.x			\
291	asn1_id_x509_ce_cRLReason.x			\
292	asn1_CRLReason.x				\
293	asn1_PKIXXmppAddr.x				\
294	asn1_id_pkix.x					\
295	asn1_id_pkix_on.x				\
296	asn1_id_pkix_on_dnsSRV.x			\
297	asn1_id_pkix_on_xmppAddr.x			\
298	asn1_id_pkix_kp.x				\
299	asn1_id_pkix_kp_serverAuth.x			\
300	asn1_id_pkix_kp_clientAuth.x			\
301	asn1_id_pkix_kp_emailProtection.x		\
302	asn1_id_pkix_kp_timeStamping.x			\
303	asn1_id_pkix_kp_OCSPSigning.x			\
304	asn1_id_pkix_pe.x				\
305	asn1_id_pkix_pe_authorityInfoAccess.x		\
306	asn1_id_pkix_pe_proxyCertInfo.x			\
307	asn1_id_pkix_ppl.x				\
308	asn1_id_pkix_ppl_anyLanguage.x			\
309	asn1_id_pkix_ppl_inheritAll.x			\
310	asn1_id_pkix_ppl_independent.x			\
311	asn1_ProxyPolicy.x				\
312	asn1_ProxyCertInfo.x
313
314gen_files_pkinit =					\
315	asn1_id_pkinit.x				\
316	asn1_id_pkauthdata.x				\
317	asn1_id_pkdhkeydata.x				\
318	asn1_id_pkrkeydata.x				\
319	asn1_id_pkekuoid.x				\
320	asn1_id_pkkdcekuoid.x				\
321	asn1_id_pkinit_san.x				\
322	asn1_id_pkinit_ms_eku.x				\
323	asn1_id_pkinit_ms_san.x				\
324	asn1_MS_UPN_SAN.x				\
325	asn1_DHNonce.x					\
326	asn1_KDFAlgorithmId.x				\
327	asn1_TrustedCA.x				\
328	asn1_ExternalPrincipalIdentifier.x		\
329	asn1_ExternalPrincipalIdentifiers.x		\
330	asn1_PA_PK_AS_REQ.x				\
331	asn1_PKAuthenticator.x				\
332	asn1_AuthPack.x					\
333	asn1_TD_TRUSTED_CERTIFIERS.x			\
334	asn1_TD_INVALID_CERTIFICATES.x			\
335	asn1_KRB5PrincipalName.x			\
336	asn1_AD_INITIAL_VERIFIED_CAS.x			\
337	asn1_DHRepInfo.x				\
338	asn1_PA_PK_AS_REP.x				\
339	asn1_KDCDHKeyInfo.x				\
340	asn1_ReplyKeyPack.x				\
341	asn1_TD_DH_PARAMETERS.x				\
342	asn1_PKAuthenticator_Win2k.x			\
343	asn1_AuthPack_Win2k.x				\
344	asn1_TrustedCA_Win2k.x				\
345	asn1_PA_PK_AS_REQ_Win2k.x			\
346	asn1_PA_PK_AS_REP_Win2k.x			\
347	asn1_KDCDHKeyInfo_Win2k.x			\
348	asn1_ReplyKeyPack_Win2k.x			\
349	asn1_PkinitSuppPubInfo.x
350
351gen_files_pkcs12 =					\
352	asn1_id_pkcs_12.x				\
353	asn1_id_pkcs_12PbeIds.x				\
354	asn1_id_pbeWithSHAAnd128BitRC4.x		\
355	asn1_id_pbeWithSHAAnd40BitRC4.x			\
356	asn1_id_pbeWithSHAAnd3_KeyTripleDES_CBC.x	\
357	asn1_id_pbeWithSHAAnd2_KeyTripleDES_CBC.x	\
358	asn1_id_pbeWithSHAAnd128BitRC2_CBC.x		\
359	asn1_id_pbewithSHAAnd40BitRC2_CBC.x		\
360	asn1_id_pkcs12_bagtypes.x			\
361	asn1_id_pkcs12_keyBag.x				\
362	asn1_id_pkcs12_pkcs8ShroudedKeyBag.x		\
363	asn1_id_pkcs12_certBag.x			\
364	asn1_id_pkcs12_crlBag.x				\
365	asn1_id_pkcs12_secretBag.x			\
366	asn1_id_pkcs12_safeContentsBag.x		\
367	asn1_PKCS12_MacData.x				\
368	asn1_PKCS12_PFX.x				\
369	asn1_PKCS12_AuthenticatedSafe.x			\
370	asn1_PKCS12_CertBag.x				\
371	asn1_PKCS12_Attribute.x				\
372	asn1_PKCS12_Attributes.x			\
373	asn1_PKCS12_SafeBag.x				\
374	asn1_PKCS12_SafeContents.x			\
375	asn1_PKCS12_OctetString.x			\
376	asn1_PKCS12_PBEParams.x
377
378gen_files_pkcs8 =					\
379	asn1_PKCS8PrivateKeyAlgorithmIdentifier.x	\
380	asn1_PKCS8PrivateKey.x				\
381	asn1_PKCS8PrivateKeyInfo.x			\
382	asn1_PKCS8Attributes.x				\
383	asn1_PKCS8EncryptedPrivateKeyInfo.x		\
384	asn1_PKCS8EncryptedData.x
385
386gen_files_pkcs9 =					\
387	asn1_id_pkcs_9.x				\
388	asn1_id_pkcs9_contentType.x			\
389	asn1_id_pkcs9_emailAddress.x			\
390	asn1_id_pkcs9_messageDigest.x			\
391	asn1_id_pkcs9_signingTime.x			\
392	asn1_id_pkcs9_countersignature.x		\
393	asn1_id_pkcs_9_at_friendlyName.x		\
394	asn1_id_pkcs_9_at_localKeyId.x			\
395	asn1_id_pkcs_9_at_certTypes.x			\
396	asn1_id_pkcs_9_at_certTypes_x509.x		\
397	asn1_PKCS9_BMPString.x				\
398	asn1_PKCS9_friendlyName.x
399
400gen_files_test =					\
401	asn1_TESTAlloc.x				\
402	asn1_TESTAllocInner.x				\
403	asn1_TESTCONTAINING.x				\
404	asn1_TESTCONTAININGENCODEDBY.x			\
405	asn1_TESTCONTAININGENCODEDBY2.x			\
406	asn1_TESTChoice1.x				\
407	asn1_TESTChoice2.x				\
408	asn1_TESTDer.x					\
409	asn1_TESTENCODEDBY.x				\
410	asn1_TESTImplicit.x				\
411	asn1_TESTImplicit2.x				\
412	asn1_TESTInteger.x				\
413	asn1_TESTInteger2.x				\
414	asn1_TESTInteger3.x				\
415	asn1_TESTLargeTag.x				\
416	asn1_TESTSeq.x					\
417	asn1_TESTUSERCONSTRAINED.x			\
418	asn1_TESTSeqOf.x				\
419	asn1_TESTOSSize1.x				\
420	asn1_TESTSeqSizeOf1.x				\
421	asn1_TESTSeqSizeOf2.x				\
422	asn1_TESTSeqSizeOf3.x				\
423	asn1_TESTSeqSizeOf4.x
424
425gen_files_digest =					\
426	asn1_DigestError.x				\
427	asn1_DigestInit.x				\
428	asn1_DigestInitReply.x				\
429	asn1_DigestREP.x				\
430	asn1_DigestREQ.x				\
431	asn1_DigestRepInner.x				\
432	asn1_DigestReqInner.x				\
433	asn1_DigestRequest.x				\
434	asn1_DigestResponse.x				\
435	asn1_DigestTypes.x				\
436	asn1_NTLMInit.x					\
437	asn1_NTLMInitReply.x				\
438	asn1_NTLMRequest.x				\
439	asn1_NTLMResponse.x
440
441gen_files_kx509 =					\
442	asn1_Kx509Response.x				\
443	asn1_Kx509Request.x
444
445noinst_PROGRAMS = asn1_compile asn1_print asn1_gen
446
447TESTS = check-der check-gen check-timegm
448check_PROGRAMS = $(TESTS)
449
450asn1_gen_SOURCES = asn1_gen.c
451asn1_print_SOURCES = asn1_print.c
452check_der_SOURCES = check-der.c check-common.c check-common.h
453
454dist_check_gen_SOURCES = check-gen.c check-common.c check-common.h
455nodist_check_gen_SOURCES = $(gen_files_test:.x=.c)
456
457asn1_compile_SOURCES = 				\
458	asn1-common.h				\
459	asn1_queue.h				\
460	der.h					\
461	gen.c					\
462	gen_copy.c				\
463	gen_decode.c				\
464	gen_encode.c				\
465	gen_free.c				\
466	gen_glue.c				\
467	gen_length.c				\
468	gen_locl.h				\
469	gen_seq.c				\
470	hash.c					\
471	hash.h					\
472	lex.l					\
473	lex.h					\
474	main.c					\
475	parse.y					\
476	symbol.c				\
477	symbol.h
478
479dist_libasn1_la_SOURCES =			\
480	der-protos.h 				\
481	der_locl.h 				\
482	der.c					\
483	der.h					\
484	der_get.c				\
485	der_put.c				\
486	der_free.c				\
487	der_length.c				\
488	der_copy.c				\
489	der_cmp.c				\
490	der_format.c				\
491	heim_asn1.h				\
492	extra.c					\
493	timegm.c
494
495nodist_libasn1_la_SOURCES = $(BUILT_SOURCES)
496
497asn1_compile_LDADD = \
498	$(LIB_roken) $(LEXLIB)
499
500check_der_LDADD = \
501	libasn1.la \
502	$(LIB_roken)
503
504check_gen_LDADD = $(check_der_LDADD)
505asn1_print_LDADD = $(check_der_LDADD)
506asn1_gen_LDADD = $(check_der_LDADD)
507check_timegm_LDADD = $(check_der_LDADD)
508
509CLEANFILES = \
510	$(BUILT_SOURCES) \
511	$(gen_files_rfc2459) \
512	$(gen_files_cms) \
513	$(gen_files_k5) \
514	$(gen_files_pkinit) \
515	$(gen_files_pkcs8) \
516	$(gen_files_pkcs9) \
517	$(gen_files_pkcs12) \
518	$(gen_files_digest) \
519	$(gen_files_kx509) \
520	$(gen_files_test) $(nodist_check_gen_SOURCES) \
521	rfc2459_asn1_files rfc2459_asn1.h \
522	cms_asn1_files cms_asn1.h \
523	krb5_asn1_files krb5_asn1.h \
524	pkinit_asn1_files pkinit_asn1.h \
525	pkcs8_asn1_files pkcs8_asn1.h \
526	pkcs9_asn1_files pkcs9_asn1.h \
527	pkcs12_asn1_files pkcs12_asn1.h \
528	digest_asn1_files digest_asn1.h \
529	kx509_asn1_files kx509_asn1.h \
530	test_asn1_files test_asn1.h
531
532dist_include_HEADERS = der.h heim_asn1.h der-protos.h
533
534nodist_include_HEADERS = asn1_err.h
535nodist_include_HEADERS += krb5_asn1.h
536nodist_include_HEADERS += pkinit_asn1.h
537nodist_include_HEADERS += cms_asn1.h
538nodist_include_HEADERS += rfc2459_asn1.h
539nodist_include_HEADERS += pkcs8_asn1.h
540nodist_include_HEADERS += pkcs9_asn1.h
541nodist_include_HEADERS += pkcs12_asn1.h
542nodist_include_HEADERS += digest_asn1.h
543nodist_include_HEADERS += kx509_asn1.h
544
545$(asn1_compile_OBJECTS): parse.h parse.c $(srcdir)/der-protos.h
546$(libasn1_la_OBJECTS): krb5_asn1.h asn1_err.h $(srcdir)/der-protos.h
547$(check_gen_OBJECTS): test_asn1.h
548$(asn1_print_OBJECTS): krb5_asn1.h
549
550parse.h: parse.c
551
552$(gen_files_k5) krb5_asn1.h: krb5_asn1_files
553$(gen_files_pkinit) pkinit_asn1.h: pkinit_asn1_files
554$(gen_files_pkcs8) pkcs8_asn1.h: pkcs8_asn1_files
555$(gen_files_pkcs9) pkcs9_asn1.h: pkcs9_asn1_files
556$(gen_files_pkcs12) pkcs12_asn1.h: pkcs12_asn1_files
557$(gen_files_digest) digest_asn1.h: digest_asn1_files
558$(gen_files_kx509) kx509_asn1.h: kx509_asn1_files
559$(gen_files_rfc2459) rfc2459_asn1.h: rfc2459_asn1_files
560$(gen_files_cms) cms_asn1.h: cms_asn1_files
561$(gen_files_test) test_asn1.h: test_asn1_files
562
563rfc2459_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/rfc2459.asn1
564	./asn1_compile$(EXEEXT) --preserve-binary=TBSCertificate --preserve-binary=TBSCRLCertList --preserve-binary=Name --sequence=GeneralNames --sequence=Extensions --sequence=CRLDistributionPoints $(srcdir)/rfc2459.asn1 rfc2459_asn1 || (rm -f rfc2459_asn1_files ; exit 1)
565
566cms_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/CMS.asn1
567	./asn1_compile$(EXEEXT) $(srcdir)/CMS.asn1 cms_asn1 || (rm -f cms_asn1_files ; exit 1)
568
569krb5_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/k5.asn1
570	./asn1_compile$(EXEEXT) --encode-rfc1510-bit-string --sequence=KRB5SignedPathPrincipals --sequence=AuthorizationData --sequence=METHOD-DATA --sequence=ETYPE-INFO --sequence=ETYPE-INFO2 $(srcdir)/k5.asn1 krb5_asn1 || (rm -f krb5_asn1_files ; exit 1)
571
572pkinit_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkinit.asn1
573	./asn1_compile$(EXEEXT) $(srcdir)/pkinit.asn1 pkinit_asn1 || (rm -f pkinit_asn1_files ; exit 1)
574
575pkcs8_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs8.asn1
576	./asn1_compile$(EXEEXT) $(srcdir)/pkcs8.asn1 pkcs8_asn1 || (rm -f pkcs8_asn1_files ; exit 1)
577
578pkcs9_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs9.asn1
579	./asn1_compile$(EXEEXT) $(srcdir)/pkcs9.asn1 pkcs9_asn1 || (rm -f pkcs9_asn1_files ; exit 1)
580
581pkcs12_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs12.asn1
582	./asn1_compile$(EXEEXT) $(srcdir)/pkcs12.asn1 pkcs12_asn1 || (rm -f pkcs12_asn1_files ; exit 1)
583
584digest_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/digest.asn1
585	./asn1_compile$(EXEEXT) $(srcdir)/digest.asn1 digest_asn1 || (rm -f digest_asn1_files ; exit 1)
586
587kx509_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/kx509.asn1
588	./asn1_compile$(EXEEXT) $(srcdir)/kx509.asn1 kx509_asn1 || (rm -f kx509_asn1_files ; exit 1)
589
590test_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/test.asn1
591	./asn1_compile$(EXEEXT) --sequence=TESTSeqOf $(srcdir)/test.asn1 test_asn1 || (rm -f test_asn1_files ; exit 1)
592
593EXTRA_DIST =		\
594	asn1_err.et	\
595	canthandle.asn1	\
596	CMS.asn1	\
597	digest.asn1	\
598	k5.asn1		\
599	kx509.asn1	\
600	test.asn1	\
601	setchgpw2.asn1	\
602	pkcs12.asn1	\
603	pkcs8.asn1	\
604	pkcs9.asn1	\
605	pkinit.asn1	\
606	rfc2459.asn1	\
607	test.gen
608
609$(srcdir)/der-protos.h:
610	cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -o der-protos.h $(dist_libasn1_la_SOURCES) || rm -f der-protos.h
611