Makefile.am revision 142403
1# $Id: Makefile.am,v 1.69.2.3 2004/06/21 08:26:44 lha 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_ChangePasswdDataMS.x		\
27	asn1_Checksum.x				\
28	asn1_ENCTYPE.x				\
29	asn1_ETYPE_INFO.x			\
30	asn1_ETYPE_INFO_ENTRY.x			\
31	asn1_EncAPRepPart.x			\
32	asn1_EncASRepPart.x			\
33	asn1_EncKDCRepPart.x			\
34	asn1_EncKrbCredPart.x			\
35	asn1_EncKrbPrivPart.x			\
36	asn1_EncTGSRepPart.x			\
37	asn1_EncTicketPart.x			\
38	asn1_EncryptedData.x			\
39	asn1_EncryptionKey.x			\
40	asn1_HostAddress.x			\
41	asn1_HostAddresses.x			\
42	asn1_KDCOptions.x			\
43	asn1_KDC_REP.x				\
44	asn1_KDC_REQ.x				\
45	asn1_KDC_REQ_BODY.x			\
46	asn1_KRB_CRED.x				\
47	asn1_KRB_ERROR.x			\
48	asn1_KRB_PRIV.x				\
49	asn1_KRB_SAFE.x				\
50	asn1_KRB_SAFE_BODY.x			\
51	asn1_KerberosTime.x			\
52	asn1_KrbCredInfo.x			\
53	asn1_LastReq.x				\
54	asn1_LR_TYPE.x				\
55	asn1_MESSAGE_TYPE.x			\
56	asn1_METHOD_DATA.x			\
57	asn1_NAME_TYPE.x			\
58	asn1_PADATA_TYPE.x			\
59	asn1_PA_DATA.x				\
60	asn1_PA_ENC_TS_ENC.x			\
61	asn1_Principal.x			\
62	asn1_PrincipalName.x			\
63	asn1_Realm.x				\
64	asn1_TGS_REP.x				\
65	asn1_TGS_REQ.x				\
66	asn1_Ticket.x				\
67	asn1_TicketFlags.x			\
68	asn1_TransitedEncoding.x		\
69	asn1_UNSIGNED.x
70
71
72noinst_PROGRAMS = asn1_compile asn1_print
73check_PROGRAMS = check-der check-gen
74TESTS = check-der check-gen
75
76check_der_SOURCES = check-der.c check-common.c
77check_gen_SOURCES = check-gen.c check-common.c
78
79
80asn1_compile_SOURCES = 				\
81	gen.c					\
82	gen_copy.c				\
83	gen_decode.c				\
84	gen_encode.c				\
85	gen_free.c				\
86	gen_glue.c				\
87	gen_length.c				\
88	hash.c					\
89	lex.l					\
90	main.c					\
91	parse.y					\
92	symbol.c
93
94libasn1_la_SOURCES =				\
95	der_get.c				\
96	der_put.c				\
97	der_free.c				\
98	der_length.c				\
99	der_copy.c				\
100	timegm.c				\
101	$(BUILT_SOURCES)
102
103asn1_compile_LDADD = \
104	$(LIB_roken) $(LEXLIB)
105
106check_der_LDADD = \
107	libasn1.la \
108	$(LIB_roken)
109
110check_gen_LDADD = $(check_der_LDADD)
111asn1_print_LDADD = $(check_der_LDADD)
112
113CLEANFILES = lex.c parse.c parse.h krb5_asn1.h $(BUILT_SOURCES) \
114	$(gen_files) asn1_files
115
116include_HEADERS = krb5_asn1.h asn1_err.h der.h
117
118$(asn1_compile_OBJECTS): parse.h parse.c
119
120$(gen_files) krb5_asn1.h: asn1_files
121
122asn1_files: asn1_compile$(EXEEXT) $(srcdir)/k5.asn1
123	./asn1_compile$(EXEEXT) $(srcdir)/k5.asn1 krb5_asn1
124
125$(libasn1_la_OBJECTS): krb5_asn1.h asn1_err.h
126
127$(asn1_print_OBJECTS): krb5_asn1.h
128
129EXTRA_DIST = asn1_err.et
130