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