summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/asn1/Makefile.am
blob: f6ece7577cbbca3647f4ae70b7c7fd05db97af7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# $Id: Makefile.am,v 1.69.2.3 2004/06/21 08:26:44 lha Exp $

include $(top_srcdir)/Makefile.am.common

YFLAGS = -d

lib_LTLIBRARIES = libasn1.la
libasn1_la_LDFLAGS = -version-info 6:2:0

libasn1_la_LIBADD = @LIB_com_err@

BUILT_SOURCES =			\
	$(gen_files:.x=.c)	\
	asn1_err.h		\
	asn1_err.c

gen_files =					\
	asn1_APOptions.x			\
	asn1_AP_REP.x				\
	asn1_AP_REQ.x				\
	asn1_AS_REP.x				\
	asn1_AS_REQ.x				\
	asn1_Authenticator.x			\
	asn1_AuthorizationData.x		\
	asn1_CKSUMTYPE.x			\
	asn1_ChangePasswdDataMS.x		\
	asn1_Checksum.x				\
	asn1_ENCTYPE.x				\
	asn1_ETYPE_INFO.x			\
	asn1_ETYPE_INFO_ENTRY.x			\
	asn1_EncAPRepPart.x			\
	asn1_EncASRepPart.x			\
	asn1_EncKDCRepPart.x			\
	asn1_EncKrbCredPart.x			\
	asn1_EncKrbPrivPart.x			\
	asn1_EncTGSRepPart.x			\
	asn1_EncTicketPart.x			\
	asn1_EncryptedData.x			\
	asn1_EncryptionKey.x			\
	asn1_HostAddress.x			\
	asn1_HostAddresses.x			\
	asn1_KDCOptions.x			\
	asn1_KDC_REP.x				\
	asn1_KDC_REQ.x				\
	asn1_KDC_REQ_BODY.x			\
	asn1_KRB_CRED.x				\
	asn1_KRB_ERROR.x			\
	asn1_KRB_PRIV.x				\
	asn1_KRB_SAFE.x				\
	asn1_KRB_SAFE_BODY.x			\
	asn1_KerberosTime.x			\
	asn1_KrbCredInfo.x			\
	asn1_LastReq.x				\
	asn1_LR_TYPE.x				\
	asn1_MESSAGE_TYPE.x			\
	asn1_METHOD_DATA.x			\
	asn1_NAME_TYPE.x			\
	asn1_PADATA_TYPE.x			\
	asn1_PA_DATA.x				\
	asn1_PA_ENC_TS_ENC.x			\
	asn1_Principal.x			\
	asn1_PrincipalName.x			\
	asn1_Realm.x				\
	asn1_TGS_REP.x				\
	asn1_TGS_REQ.x				\
	asn1_Ticket.x				\
	asn1_TicketFlags.x			\
	asn1_TransitedEncoding.x		\
	asn1_UNSIGNED.x


noinst_PROGRAMS = asn1_compile asn1_print
check_PROGRAMS = check-der check-gen
TESTS = check-der check-gen

check_der_SOURCES = check-der.c check-common.c
check_gen_SOURCES = check-gen.c check-common.c


asn1_compile_SOURCES = 				\
	gen.c					\
	gen_copy.c				\
	gen_decode.c				\
	gen_encode.c				\
	gen_free.c				\
	gen_glue.c				\
	gen_length.c				\
	hash.c					\
	lex.l					\
	main.c					\
	parse.y					\
	symbol.c

libasn1_la_SOURCES =				\
	der_get.c				\
	der_put.c				\
	der_free.c				\
	der_length.c				\
	der_copy.c				\
	timegm.c				\
	$(BUILT_SOURCES)

asn1_compile_LDADD = \
	$(LIB_roken) $(LEXLIB)

check_der_LDADD = \
	libasn1.la \
	$(LIB_roken)

check_gen_LDADD = $(check_der_LDADD)
asn1_print_LDADD = $(check_der_LDADD)

CLEANFILES = lex.c parse.c parse.h krb5_asn1.h $(BUILT_SOURCES) \
	$(gen_files) asn1_files

include_HEADERS = krb5_asn1.h asn1_err.h der.h

$(asn1_compile_OBJECTS): parse.h parse.c

$(gen_files) krb5_asn1.h: asn1_files

asn1_files: asn1_compile$(EXEEXT) $(srcdir)/k5.asn1
	./asn1_compile$(EXEEXT) $(srcdir)/k5.asn1 krb5_asn1

$(libasn1_la_OBJECTS): krb5_asn1.h asn1_err.h

$(asn1_print_OBJECTS): krb5_asn1.h

EXTRA_DIST = asn1_err.et
OpenPOWER on IntegriCloud