xref: /freebsd/kerberos5/lib/libasn1/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1# $FreeBSD$
2
3LIB=	asn1
4INCS=	asn1_err.h krb5_asn1.h
5
6SRCS=	asn1_err.c \
7	asn1_err.h \
8	der_copy.c \
9	der_free.c \
10	der_get.c \
11	der_length.c \
12	der_put.c \
13	krb5_asn1.h \
14	timegm.c \
15	${GEN:S/.x$/.c/}
16
17CFLAGS+=-I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken -I.
18
19GEN=	asn1_APOptions.x \
20	asn1_AP_REP.x \
21	asn1_AP_REQ.x \
22	asn1_AS_REP.x \
23	asn1_AS_REQ.x \
24	asn1_Authenticator.x \
25	asn1_AuthorizationData.x \
26	asn1_CKSUMTYPE.x \
27	asn1_Checksum.x \
28	asn1_ChangePasswdDataMS.x \
29	asn1_ENCTYPE.x \
30	asn1_ETYPE_INFO.x \
31	asn1_ETYPE_INFO_ENTRY.x \
32	asn1_EncAPRepPart.x \
33	asn1_EncASRepPart.x \
34	asn1_EncKDCRepPart.x \
35	asn1_EncKrbCredPart.x \
36	asn1_EncKrbPrivPart.x \
37	asn1_EncTGSRepPart.x \
38	asn1_EncTicketPart.x \
39	asn1_EncryptedData.x \
40	asn1_EncryptionKey.x \
41	asn1_HostAddress.x \
42	asn1_HostAddresses.x \
43	asn1_KDCOptions.x \
44	asn1_KDC_REP.x \
45	asn1_KDC_REQ.x \
46	asn1_KDC_REQ_BODY.x \
47	asn1_KRB_CRED.x \
48	asn1_KRB_ERROR.x \
49	asn1_KRB_PRIV.x \
50	asn1_KRB_SAFE.x \
51	asn1_KRB_SAFE_BODY.x \
52	asn1_KerberosTime.x \
53	asn1_KrbCredInfo.x \
54	asn1_LR_TYPE.x \
55	asn1_LastReq.x \
56	asn1_MESSAGE_TYPE.x \
57	asn1_METHOD_DATA.x \
58	asn1_NAME_TYPE.x \
59	asn1_PADATA_TYPE.x \
60	asn1_PA_DATA.x \
61	asn1_PA_ENC_TS_ENC.x \
62	asn1_Principal.x \
63	asn1_PrincipalName.x \
64	asn1_Realm.x \
65	asn1_TGS_REP.x \
66	asn1_TGS_REQ.x \
67	asn1_Ticket.x \
68	asn1_TicketFlags.x \
69	asn1_TransitedEncoding.x \
70	asn1_UNSIGNED.x
71
72CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} krb5_asn1.h asn1_files
73
74.ORDER: ${GEN} krb5_asn1.h
75${GEN} krb5_asn1.h: k5.asn1 ../../tools/asn1_compile/asn1_compile
76	../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} krb5_asn1
77
78../../tools/asn1_compile/asn1_compile:
79	cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE}
80
81.for I in ${GEN}
82${I:R}.c: ${I}
83	cat ${.ALLSRC} > ${.TARGET}
84.endfor
85
86.include <bsd.lib.mk>
87
88.PATH: ${KRB5DIR}/lib/asn1
89