3 include $(top_srcdir)/Makefile.am.common
7 lib_LTLIBRARIES = libasn1.la
8 libasn1_la_LDFLAGS = -version-info 8:0:0
10 noinst_LTLIBRARIES = libasn1base.la
13 libasn1_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
23 $(gen_files_rfc2459:.x=.c) \
24 $(gen_files_cms:.x=.c) \
25 $(gen_files_krb5:.x=.c) \
26 $(gen_files_pkinit:.x=.c) \
27 $(gen_files_pkcs8:.x=.c) \
28 $(gen_files_pkcs9:.x=.c) \
29 $(gen_files_pkcs12:.x=.c) \
30 $(gen_files_digest:.x=.c) \
31 $(gen_files_kx509:.x=.c)
33 gen_files_krb5 = asn1_krb5_asn1.x
34 gen_files_cms = asn1_cms_asn1.x
35 gen_files_rfc2459 = asn1_rfc2459_asn1.x
36 gen_files_pkinit = asn1_pkinit_asn1.x
37 gen_files_pkcs12 = asn1_pkcs12_asn1.x
38 gen_files_pkcs8 = asn1_pkcs8_asn1.x
39 gen_files_pkcs9 = asn1_pkcs9_asn1.x
40 gen_files_test = asn1_test_asn1.x
41 gen_files_digest = asn1_digest_asn1.x
42 gen_files_kx509 = asn1_kx509_asn1.x
44 noinst_PROGRAMS = asn1_gen
46 libexec_heimdal_PROGRAMS = asn1_compile asn1_print
48 TESTS = check-der check-gen check-timegm check-ber check-template
49 check_PROGRAMS = $(TESTS)
51 asn1_gen_SOURCES = asn1_gen.c
52 asn1_print_SOURCES = asn1_print.c
53 check_der_SOURCES = check-der.c check-common.c check-common.h
55 check_template_SOURCES = check-template.c check-common.c check-common.h
56 nodist_check_template_SOURCES = $(gen_files_test:.x=.c)
58 dist_check_gen_SOURCES = check-gen.c check-common.c check-common.h
59 nodist_check_gen_SOURCES = $(gen_files_test:.x=.c)
61 build_HEADERZ = asn1-template.h
63 asn1_compile_SOURCES = \
86 dist_libasn1base_la_SOURCES = \
102 nodist_libasn1base_la_SOURCES = \
106 nodist_libasn1_la_SOURCES = $(BUILT_SOURCES)
108 asn1_compile_LDADD = \
109 $(LIB_roken) $(LEXLIB)
115 check_template_LDADD = $(check_der_LDADD)
116 asn1_print_LDADD = $(check_der_LDADD) $(LIB_com_err)
117 asn1_gen_LDADD = $(check_der_LDADD)
118 check_timegm_LDADD = $(check_der_LDADD)
124 check_ber_LDADD = $(check_gen_LDADD)
128 $(gen_files_rfc2459) \
131 $(gen_files_pkinit) \
134 $(gen_files_pkcs12) \
135 $(gen_files_digest) \
137 $(gen_files_test) $(nodist_check_gen_SOURCES) \
138 asn1_err.c asn1_err.h \
139 rfc2459_asn1_files rfc2459_asn1*.h* \
140 cms_asn1_files cms_asn1*.h* \
141 krb5_asn1_files krb5_asn1*.h* \
142 pkinit_asn1_files pkinit_asn1*.h* \
143 pkcs8_asn1_files pkcs8_asn1*.h* \
144 pkcs9_asn1_files pkcs9_asn1*.h* \
145 pkcs12_asn1_files pkcs12_asn1*.h* \
146 digest_asn1_files digest_asn1*.h* \
147 kx509_asn1_files kx509_asn1*.h* \
148 test_asn1_files test_asn1*.h*
150 dist_include_HEADERS = der.h heim_asn1.h der-protos.h der-private.h
151 dist_include_HEADERS += asn1-common.h
153 nodist_include_HEADERS = asn1_err.h
154 nodist_include_HEADERS += krb5_asn1.h
155 nodist_include_HEADERS += pkinit_asn1.h
156 nodist_include_HEADERS += cms_asn1.h
157 nodist_include_HEADERS += rfc2459_asn1.h
158 nodist_include_HEADERS += pkcs8_asn1.h
159 nodist_include_HEADERS += pkcs9_asn1.h
160 nodist_include_HEADERS += pkcs12_asn1.h
161 nodist_include_HEADERS += digest_asn1.h
162 nodist_include_HEADERS += kx509_asn1.h
164 priv_headers = krb5_asn1-priv.h
165 priv_headers += pkinit_asn1-priv.h
166 priv_headers += cms_asn1-priv.h
167 priv_headers += rfc2459_asn1-priv.h
168 priv_headers += pkcs8_asn1-priv.h
169 priv_headers += pkcs9_asn1-priv.h
170 priv_headers += pkcs12_asn1-priv.h
171 priv_headers += digest_asn1-priv.h
172 priv_headers += kx509_asn1-priv.h
173 priv_headers += test_asn1.h test_asn1-priv.h
177 $(asn1_compile_OBJECTS): asn1parse.h asn1parse.c $(srcdir)/der-protos.h $(srcdir)/der-private.h
178 $(libasn1_la_OBJECTS): $(nodist_include_HEADERS) $(priv_headers) asn1_err.h $(srcdir)/der-protos.h $(srcdir)/der-private.h
179 $(libasn1base_la_OBJECTS): asn1_err.h $(srcdir)/der-protos.h $(srcdir)/der-private.h
180 $(check_gen_OBJECTS): test_asn1.h
181 $(check_template_OBJECTS): test_asn1_files
182 $(asn1_print_OBJECTS): krb5_asn1.h
184 asn1parse.h: asn1parse.c
186 $(gen_files_krb5) krb5_asn1.hx krb5_asn1-priv.hx: krb5_asn1_files
187 $(gen_files_pkinit) pkinit_asn1.hx pkinit_asn1-priv.hx: pkinit_asn1_files
188 $(gen_files_pkcs8) pkcs8_asn1.hx pkcs8_asn1-priv.hx: pkcs8_asn1_files
189 $(gen_files_pkcs9) pkcs9_asn1.hx pkcs9_asn1-priv.hx: pkcs9_asn1_files
190 $(gen_files_pkcs12) pkcs12_asn1.hx pkcs12_asn1-priv.hx: pkcs12_asn1_files
191 $(gen_files_digest) digest_asn1.hx digest_asn1-priv.hx: digest_asn1_files
192 $(gen_files_kx509) kx509_asn1.hx kx509_asn1-priv.hx: kx509_asn1_files
193 $(gen_files_rfc2459) rfc2459_asn1.hx rfc2459_asn1-priv.hx: rfc2459_asn1_files
194 $(gen_files_cms) cms_asn1.hx cms_asn1-priv.hx: cms_asn1_files
195 $(gen_files_test) test_asn1.hx test_asn1-priv.hx: test_asn1_files
197 rfc2459_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/rfc2459.asn1
198 $(ASN1_COMPILE) --one-code-file --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)
200 cms_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/cms.asn1 $(srcdir)/cms.opt
201 $(ASN1_COMPILE) --one-code-file --option-file=$(srcdir)/cms.opt $(srcdir)/cms.asn1 cms_asn1 || (rm -f cms_asn1_files ; exit 1)
203 krb5_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/krb5.asn1 $(srcdir)/krb5.opt
204 $(ASN1_COMPILE) --one-code-file --option-file=$(srcdir)/krb5.opt $(srcdir)/krb5.asn1 krb5_asn1 || (rm -f krb5_asn1_files ; exit 1)
206 pkinit_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkinit.asn1
207 $(ASN1_COMPILE) --one-code-file $(srcdir)/pkinit.asn1 pkinit_asn1 || (rm -f pkinit_asn1_files ; exit 1)
209 pkcs8_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs8.asn1
210 $(ASN1_COMPILE) --one-code-file $(srcdir)/pkcs8.asn1 pkcs8_asn1 || (rm -f pkcs8_asn1_files ; exit 1)
212 pkcs9_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs9.asn1
213 $(ASN1_COMPILE) --one-code-file $(srcdir)/pkcs9.asn1 pkcs9_asn1 || (rm -f pkcs9_asn1_files ; exit 1)
215 pkcs12_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/pkcs12.asn1
216 $(ASN1_COMPILE) --one-code-file $(srcdir)/pkcs12.asn1 pkcs12_asn1 || (rm -f pkcs12_asn1_files ; exit 1)
218 digest_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/digest.asn1
219 $(ASN1_COMPILE) --one-code-file $(srcdir)/digest.asn1 digest_asn1 || (rm -f digest_asn1_files ; exit 1)
221 kx509_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/kx509.asn1
222 $(ASN1_COMPILE) --one-code-file $(srcdir)/kx509.asn1 kx509_asn1 || (rm -f kx509_asn1_files ; exit 1)
224 test_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/test.asn1
225 $(ASN1_COMPILE) --one-code-file --sequence=TESTSeqOf $(srcdir)/test.asn1 test_asn1 || (rm -f test_asn1_files ; exit 1)
230 asn1_compile-version.rc \
231 libasn1-exports.def \
250 $(srcdir)/der-protos.h:
251 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -o der-protos.h $(dist_libasn1base_la_SOURCES) || rm -f der-protos.h
253 $(srcdir)/der-private.h:
254 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p der-private.h $(dist_libasn1base_la_SOURCES) || rm -f der-private.h