Makefile.am revision 102644
1# $Id: Makefile.am,v 1.68 2002/03/10 23:41:33 assar Exp $
2
3include $(top_srcdir)/Makefile.am.common
4
5YFLAGS = -d
6
7lib_LTLIBRARIES = libasn1.la
8libasn1_la_LDFLAGS = -version-info 6:0: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
73TESTS = check-der
74
75asn1_compile_SOURCES = 				\
76	gen.c					\
77	gen_copy.c				\
78	gen_decode.c				\
79	gen_encode.c				\
80	gen_free.c				\
81	gen_glue.c				\
82	gen_length.c				\
83	hash.c					\
84	lex.l					\
85	main.c					\
86	parse.y					\
87	symbol.c
88
89libasn1_la_SOURCES =				\
90	der_get.c				\
91	der_put.c				\
92	der_free.c				\
93	der_length.c				\
94	der_copy.c				\
95	timegm.c				\
96	$(BUILT_SOURCES)
97
98asn1_compile_LDADD = \
99	$(LIB_roken) $(LEXLIB)
100
101check_der_LDADD = \
102	libasn1.la \
103	$(LIB_roken)
104
105asn1_print_LDADD = $(check_der_LDADD)
106
107CLEANFILES = lex.c parse.c parse.h krb5_asn1.h $(BUILT_SOURCES) \
108	$(gen_files) asn1_files
109
110include_HEADERS = krb5_asn1.h asn1_err.h der.h
111
112$(asn1_compile_OBJECTS): parse.h parse.c
113
114$(gen_files) krb5_asn1.h: asn1_files
115
116asn1_files: asn1_compile$(EXEEXT) $(srcdir)/k5.asn1
117	./asn1_compile$(EXEEXT) $(srcdir)/k5.asn1 krb5_asn1
118
119$(libasn1_la_OBJECTS): krb5_asn1.h asn1_err.h
120
121$(asn1_print_OBJECTS): krb5_asn1.h
122
123EXTRA_DIST = asn1_err.et
124