xref: /freebsd/crypto/heimdal/lib/asn1/Makefile.am (revision 74bf4e164ba5851606a27d4feff27717452583e5)
1# $Id: Makefile.am,v 1.69.2.2 2003/10/14 16:13:13 joda Exp $
2
3include $(top_srcdir)/Makefile.am.common
4
5YFLAGS = -d
6
7lib_LTLIBRARIES = libasn1.la
8libasn1_la_LDFLAGS = -version-info 6:2:0
9
10libasn1_la_LIBADD = @LIB_com_err@
11
12BUILT_SOURCES =			\
13	$(gen_files:.x=.c)	\
14	asn1_err.h		\
15	asn1_err.c
16
17gen_files =					\
18	asn1_APOptions.x			\
19	asn1_AP_REP.x				\
20	asn1_AP_REQ.x				\
21	asn1_AS_REP.x				\
22	asn1_AS_REQ.x				\
23	asn1_Authenticator.x			\
24	asn1_AuthorizationData.x		\
25	asn1_CKSUMTYPE.x			\
26	asn1_Checksum.x				\
27	asn1_ENCTYPE.x				\
28	asn1_ETYPE_INFO.x			\
29	asn1_ETYPE_INFO_ENTRY.x			\
30	asn1_EncAPRepPart.x			\
31	asn1_EncASRepPart.x			\
32	asn1_EncKDCRepPart.x			\
33	asn1_EncKrbCredPart.x			\
34	asn1_EncKrbPrivPart.x			\
35	asn1_EncTGSRepPart.x			\
36	asn1_EncTicketPart.x			\
37	asn1_EncryptedData.x			\
38	asn1_EncryptionKey.x			\
39	asn1_HostAddress.x			\
40	asn1_HostAddresses.x			\
41	asn1_KDCOptions.x			\
42	asn1_KDC_REP.x				\
43	asn1_KDC_REQ.x				\
44	asn1_KDC_REQ_BODY.x			\
45	asn1_KRB_CRED.x				\
46	asn1_KRB_ERROR.x			\
47	asn1_KRB_PRIV.x				\
48	asn1_KRB_SAFE.x				\
49	asn1_KRB_SAFE_BODY.x			\
50	asn1_KerberosTime.x			\
51	asn1_KrbCredInfo.x			\
52	asn1_LastReq.x				\
53	asn1_LR_TYPE.x				\
54	asn1_MESSAGE_TYPE.x			\
55	asn1_METHOD_DATA.x			\
56	asn1_NAME_TYPE.x			\
57	asn1_PADATA_TYPE.x			\
58	asn1_PA_DATA.x				\
59	asn1_PA_ENC_TS_ENC.x			\
60	asn1_Principal.x			\
61	asn1_PrincipalName.x			\
62	asn1_Realm.x				\
63	asn1_TGS_REP.x				\
64	asn1_TGS_REQ.x				\
65	asn1_Ticket.x				\
66	asn1_TicketFlags.x			\
67	asn1_TransitedEncoding.x		\
68	asn1_UNSIGNED.x
69
70
71noinst_PROGRAMS = asn1_compile asn1_print
72check_PROGRAMS = check-der check-gen
73TESTS = check-der check-gen
74
75check_der_SOURCES = check-der.c check-common.c
76check_gen_SOURCES = check-gen.c check-common.c
77
78
79asn1_compile_SOURCES = 				\
80	gen.c					\
81	gen_copy.c				\
82	gen_decode.c				\
83	gen_encode.c				\
84	gen_free.c				\
85	gen_glue.c				\
86	gen_length.c				\
87	hash.c					\
88	lex.l					\
89	main.c					\
90	parse.y					\
91	symbol.c
92
93libasn1_la_SOURCES =				\
94	der_get.c				\
95	der_put.c				\
96	der_free.c				\
97	der_length.c				\
98	der_copy.c				\
99	timegm.c				\
100	$(BUILT_SOURCES)
101
102asn1_compile_LDADD = \
103	$(LIB_roken) $(LEXLIB)
104
105check_der_LDADD = \
106	libasn1.la \
107	$(LIB_roken)
108
109check_gen_LDADD = $(check_der_LDADD)
110asn1_print_LDADD = $(check_der_LDADD)
111
112CLEANFILES = lex.c parse.c parse.h krb5_asn1.h $(BUILT_SOURCES) \
113	$(gen_files) asn1_files
114
115include_HEADERS = krb5_asn1.h asn1_err.h der.h
116
117$(asn1_compile_OBJECTS): parse.h parse.c
118
119$(gen_files) krb5_asn1.h: asn1_files
120
121asn1_files: asn1_compile$(EXEEXT) $(srcdir)/k5.asn1
122	./asn1_compile$(EXEEXT) $(srcdir)/k5.asn1 krb5_asn1
123
124$(libasn1_la_OBJECTS): krb5_asn1.h asn1_err.h
125
126$(asn1_print_OBJECTS): krb5_asn1.h
127
128EXTRA_DIST = asn1_err.et
129