Nuke huge mbuf macros stage 1/2: Remove massive inline mbuf macros to reduce
[dragonfly.git] / kerberos5 / Makefile.inc
1 # $FreeBSD: src/kerberos5/Makefile.inc,v 1.5.2.5 2002/07/25 09:33:14 ru Exp $
2 # $DragonFly: src/kerberos5/Makefile.inc,v 1.2 2003/06/17 04:26:16 dillon Exp $
3
4 DISTRIBUTION?=  krb5
5
6 .if !defined(INCLUDEOBJDIR)
7
8 KRB4DIR=        ${.CURDIR}/../../../crypto/kerberosIV
9 KRB5DIR=        ${.CURDIR}/../../../crypto/heimdal
10 ROKENDIR=       ${.CURDIR}/../../lib/libroken
11 TELNETDIR=      ${.CURDIR}/../../../crypto/telnet
12
13 CFLAGS+=-Wall -I${INCLUDEOBJDIR} -DHAVE_CONFIG_H
14
15 .if defined(MAKE_KERBEROS4)
16 CFLAGS+=-DKRB5_KRB4_COMPAT -DKRB4
17 .endif
18
19 CFLAGS+=-DINET6
20
21 .if exists(${.OBJDIR}/../../include)
22 INCLUDEOBJDIR=  ${.OBJDIR}/../../include
23 .else
24 INCLUDEOBJDIR=  ${.CURDIR}/../../include
25 .endif
26
27 .if exists(${.OBJDIR}/../../lib/libasn1)
28 ASN1OBJDIR=     ${.OBJDIR}/../../lib/libasn1
29 .else
30 ASN1OBJDIR=     ${.CURDIR}/../../lib/libasn1
31 .endif
32
33 .if exists(${.OBJDIR}/../../lib/libhdb)
34 HDBOBJDIR=      ${.OBJDIR}/../../lib/libhdb
35 .else
36 HDBOBJDIR=      ${.CURDIR}/../../lib/libhdb
37 .endif
38
39 .if exists(${.OBJDIR}/../../lib/libroken)
40 ROKENOBJDIR=    ${.OBJDIR}/../../lib/libroken
41 .else
42 ROKENOBJDIR=    ${.CURDIR}/../../lib/libroken
43 .endif
44
45 .if exists(${.OBJDIR}/../../lib/libvers)
46 VERSOBJDIR=     ${.OBJDIR}/../../lib/libvers
47 .else
48 VERSOBJDIR=     ${.CURDIR}/../../lib/libvers
49 .endif
50
51 .if exists(${.OBJDIR}/../../lib/libkrb4)
52 KRB4OBJDIR=     ${.OBJDIR}/../../lib/libkrb4
53 .else
54 KRB4OBJDIR=     ${.CURDIR}/../../lib/libkrb4
55 .endif
56
57 .if exists(${.OBJDIR}/../../lib/libkrb5)
58 KRB5OBJDIR=     ${.OBJDIR}/../../lib/libkrb5
59 .else
60 KRB5OBJDIR=     ${.CURDIR}/../../lib/libkrb5
61 .endif
62
63 .if exists(${.OBJDIR}/../../lib/libkadm5clnt)
64 KADM5COBJDIR=   ${.OBJDIR}/../../lib/libkadm5clnt
65 .else
66 KADM5COBJDIR=   ${.CURDIR}/../../lib/libkadm5clnt
67 .endif
68
69 .if exists(${.OBJDIR}/../../lib/libkadm5srv)
70 KADM5SOBJDIR=   ${.OBJDIR}/../../lib/libkadm5srv
71 .else
72 KADM5SOBJDIR=   ${.CURDIR}/../../lib/libkadm5srv
73 .endif
74
75 .if exists(${.OBJDIR}/../../lib/libkafs5)
76 KAFS5OBJDIR=    ${.OBJDIR}/../../lib/libkafs5
77 .else
78 KAFS5OBJDIR=    ${.CURDIR}/../../lib/libkafs5
79 .endif
80
81 .if exists(${.OBJDIR}/../../lib/libkrb5util)
82 KRB5UTILOBJDIR= ${.OBJDIR}/../../lib/libkrb5util
83 .else
84 KRB5UTILOBJDIR= ${.CURDIR}/../../lib/libkrb5util
85 .endif
86
87 .if exists(${.OBJDIR}/../../lib/libkdb5)
88 KDB5OBJDIR=     ${.OBJDIR}/../../lib/libkdb5
89 .else
90 KDB5OBJDIR=     ${.CURDIR}/../../lib/libkdb5
91 .endif
92
93 .if exists(${.OBJDIR}/../../lib/libsl)
94 SLOBJDIR=       ${.OBJDIR}/../../lib/libsl
95 .else
96 SLOBJDIR=       ${.CURDIR}/../../lib/libsl
97 .endif
98
99 .if exists(${.OBJDIR}/../../lib/libtelnet)
100 LIBTELNET=      ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
101 .else
102 LIBTELNET=      ${.CURDIR}/../../lib/libtelnet/libtelnet.a
103 .endif
104
105 COMPILE_ET=     compile_et
106
107 .ORDER: asn1_err.c asn1_err.h
108 asn1_err.c asn1_err.h: ${KRB5DIR}/lib/asn1/asn1_err.et
109         test -e ${.OBJDIR}/asn1_err.et || ln -sf ${.ALLSRC}
110         ${COMPILE_ET} asn1_err.et
111
112 CLEANFILES+=asn1_err.h asn1_err.c asn1_err.et
113
114 .ORDER: hdb_err.c hdb_err.h
115 hdb_err.c hdb_err.h: ${KRB5DIR}/lib/hdb/hdb_err.et
116         test -e ${.OBJDIR}/hdb_err.et || ln -sf ${.ALLSRC}
117         ${COMPILE_ET} hdb_err.et
118
119 CLEANFILES+=hdb_err.h hdb_err.c hdb_err.et
120
121 .ORDER: heim_err.c heim_err.h
122 heim_err.c heim_err.h: ${KRB5DIR}/lib/krb5/heim_err.et
123         test -e ${.OBJDIR}/heim_err.et || ln -sf ${.ALLSRC}
124         ${COMPILE_ET} heim_err.et
125
126 CLEANFILES+=heim_err.h heim_err.c heim_err.et
127
128 .ORDER: krb5_err.c krb5_err.h
129 krb5_err.c krb5_err.h: ${KRB5DIR}/lib/krb5/krb5_err.et
130         test -e ${.OBJDIR}/krb5_err.et || ln -sf ${.ALLSRC}
131         ${COMPILE_ET} krb5_err.et
132
133 CLEANFILES+=krb5_err.h krb5_err.c krb5_err.et
134
135 .ORDER: kadm5_err.c kadm5_err.h
136 kadm5_err.c kadm5_err.h: \
137         ${KRB5DIR}/lib/kadm5/kadm5_err.et
138         test -e ${.OBJDIR}/kadm5_err.et || ln -sf ${.ALLSRC}
139         ${COMPILE_ET} kadm5_err.et
140
141 CLEANFILES+=kadm5_err.h kadm5_err.c kadm5_err.et
142
143 .ORDER: k524_err.c k524_err.h
144 k524_err.c k524_err.h: \
145         ${KRB5DIR}/lib/krb5/k524_err.et
146         test -e ${.OBJDIR}/k524_err.et || ln -sf ${.ALLSRC}
147         ${COMPILE_ET} k524_err.et
148
149 CLEANFILES+=k524_err.h k524_err.c k524_err.et
150
151 roken.h: make-roken
152         ./make-roken > tmp.h ;\
153         if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
154         else rm -f roken.h; mv tmp.h roken.h; fi
155
156 make-roken.c: ${KRB5DIR}/lib/roken/roken.awk ${KRB5DIR}/lib/roken/roken.h.in
157         awk -f ${.ALLSRC} > ${.TARGET}
158
159 CLEANFILES+=    make-roken.c make-roken roken.h
160
161 .else
162
163 KRB4DIR=        ${.CURDIR}/../../crypto/kerberosIV
164 KRB5DIR=        ${.CURDIR}/../../crypto/heimdal
165 ROKENDIR=       ${.CURDIR}/../../lib/libroken
166
167 .endif