kauth: Resolve date signedness warning in SetFields
[openafs.git] / src / kauth / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
11 include @TOP_OBJDIR@/src/config/Makefile.lwptool
12
13 BASE_objs = kauth.xdr.lo kauth.cs.lo kaaux.lo client.lo authclient.lo \
14             katoken.lo kautils.lo kalocalcell.lo kaerrors.lo
15
16 LT_objs = $(BASE_objs) user.lo
17 LWP_objs = $(LT_objs) krb_tf.o
18 KRB_objs = $(BASE_objs) user.krb.o krb_tf.o
19
20 LT_deps = $(top_builddir)/src/ubik/liboafs_ubik.la \
21           $(top_builddir)/src/auth/liboafs_auth.la \
22           $(top_builddir)/src/ptserver/liboafs_prot.la \
23           $(top_builddir)/src/sys/liboafs_sys.la \
24           $(top_builddir)/src/rxkad/liboafs_rxkad.la
25 LT_libs =
26
27 INSTALL_KAUTH = @INSTALL_KAUTH@
28
29 INCLS=${TOP_INCDIR}/ubik.h \
30              ${TOP_INCDIR}/lwp.h \
31              ${TOP_INCDIR}/lock.h  \
32              ${TOP_INCDIR}/rx/rx.h \
33              ${TOP_INCDIR}/rx/xdr.h \
34              ${TOP_INCDIR}/rx/rxkad.h \
35              ${TOP_INCDIR}/afs/com_err.h \
36         kaserver.h kauth.h kautils.h
37
38
39 LIBS=${TOP_LIBDIR}/libubik.a \
40         ${TOP_LIBDIR}/libprot.a \
41         ${TOP_LIBDIR}/libauth.a \
42         ${TOP_LIBDIR}/librxkad.a \
43         ${TOP_LIBDIR}/libsys.a \
44         ${TOP_LIBDIR}/librxstat.a \
45         ${TOP_LIBDIR}/librx.a \
46         ${TOP_LIBDIR}/libsys.a  \
47         ${TOP_LIBDIR}/liblwp.a \
48         ${TOP_LIBDIR}/libcmd.a \
49         ${TOP_LIBDIR}/libafscom_err.a \
50         ${TOP_LIBDIR}/libaudit.a \
51         ${TOP_LIBDIR}/libafsutil.a \
52         ${TOP_LIBDIR}/libopr.a \
53         $(DBM) \
54         ${TOP_LIBDIR}/libafsrfc3961.a \
55         ${TOP_LIBDIR}/libafshcrypto_lwp.a
56
57 KLIBS=${TOP_LIBDIR}/libubik.a \
58         ${TOP_LIBDIR}/libprot.a \
59         ${TOP_LIBDIR}/libauth.krb.a \
60         ${TOP_LIBDIR}/librxkad.a \
61         ${TOP_LIBDIR}/libsys.a \
62         ${TOP_LIBDIR}/librx.a \
63         ${TOP_LIBDIR}/libsys.a  \
64         ${TOP_LIBDIR}/liblwp.a \
65         ${TOP_LIBDIR}/libcmd.a \
66         ${TOP_LIBDIR}/libafscom_err.a \
67         ${TOP_LIBDIR}/libafsutil.a \
68         ${TOP_LIBDIR}/libopr.a \
69         ${TOP_LIBDIR}/libafsrfc3961.a \
70         ${TOP_LIBDIR}/libafshcrypto_lwp.a
71
72 all: liboafs_kauth.la libkauth_pic.la \
73      kaserver kas kpwvalid klog klog.krb knfs kpasswd rebuild kdb ka-forwarder \
74         ${TOP_LIBDIR}/libkauth.a \
75         ${TOP_LIBDIR}/libkauth.krb.a \
76         depinstall
77
78 depinstall: \
79         kaerrors.c kauth.cs.c kauth.xdr.c \
80         ${TOP_INCDIR}/afs/kautils.h \
81         ${TOP_INCDIR}/afs/kauth.h \
82         ${TOP_INCDIR}/afs/kaport.h
83
84 generated: \
85         kaerrors.c kautils.h \
86         kauth.cs.c kauth.ss.c kauth.xdr.c kauth.h
87
88 $(LT_objs): $(INCLS)
89
90 ${TOP_LIBDIR}/libkauth.a: libkauth.a
91         ${INSTALL_DATA} $? $@
92
93 ${TOP_LIBDIR}/libkauth.krb.a: libkauth.krb.a
94         ${INSTALL_DATA} $? $@
95
96 ${TOP_INCDIR}/afs/kautils.h: kautils.h
97         ${INSTALL_DATA} $? $@
98
99 ${TOP_INCDIR}/afs/kauth.h: kauth.h
100         ${INSTALL_DATA} $? $@
101
102 ${TOP_INCDIR}/afs/kaport.h: kaport.h
103         ${INSTALL_DATA} $? $@
104
105 liboafs_kauth.la: liboafs_kauth.la.sym $(LT_objs) $(LT_deps)
106         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
107
108 libkauth_pic.la: $(LT_objs)
109         $(LT_LDLIB_pic) $(LT_objs)
110
111 test tests: all
112         cd test; $(MAKE)
113
114 kaserver: kadatabase.o kaprocs.o kalog.o kauth.ss.o kaserver.o krb_udp.o kaauxdb.o \
115           libkauth.a $(LIBS)
116         $(AFS_LDRULE) kaserver.o kadatabase.o \
117                 krb_udp.o kaprocs.o kalog.o kauth.ss.o \
118                 kaauxdb.o libkauth.a \
119                 $(LIBS) $(LIB_roken) $(LIB_crypt) ${XLIBS}
120
121 kaserver.o: kaserver.c ${INCLS} AFS_component_version_number.o
122
123 kadatabase.o: kadatabase.c ${INCLS}
124
125 kaprocs.o: kaprocs.c ${INCLS} kaport.h
126
127 kaerrors.c: kaerrors.et
128         ${COMPILE_ET_C} -p ${srcdir} kaerrors
129
130 kautils.h: kaerrors.et kautils.p.h
131         ${COMPILE_ET_H} -p ${srcdir} kaerrors -h kautils
132
133 admin_tools.o admin_tools.lo: kautils.h
134 authclient.o authclient.lo: kautils.h
135 client.o client.lo: kautils.h
136 decode_ticket.o decode_ticket.lo: kautils.h
137 kadatabase.o kadatabase.lo: kautils.h
138 kalocalcell.o kalocalcell.lo: kautils.h
139 kaprocs.o kaprocs.lo: kautils.h
140 kas.o kas.lo: kautils.h
141 kaserver.o kaserver.lo: kautils.h
142 katoken.o katoken.lo: kautils.h
143 ka_util.o ka_util.lo: kautils.h
144 kautils.o kautils.lo: kautils.h
145 klog.o klog.lo: kautils.h
146 kpasswd.o kpasswd.lo: kautils.h
147 krb_tf.o krb_tf.lo: kautils.h
148 krb_udp.o krb_udp.lo: kautils.h
149 manyklog.o manyklog.lo: kautils.h
150 rebuild.o rebuild.lo: kautils.h
151 user.o user.lo: kautils.h
152
153 kauth.xdr.lo: kauth.xdr.c kauth.h
154
155 kauth.cs.c: kauth.rg
156         ${RXGEN} -A -u -x -C -o $@ ${srcdir}/kauth.rg
157
158 kauth.ss.c: kauth.rg
159         ${RXGEN} -A -x -S -o $@ ${srcdir}/kauth.rg
160
161 kauth.xdr.c: kauth.rg
162         ${RXGEN} -A -x -c -o $@ ${srcdir}/kauth.rg
163
164 kauth.h: kauth.rg
165         ${RXGEN} -A -u -x -h -o $@ ${srcdir}/kauth.rg
166
167 kauth.xdr.c: kauth.h
168 kauth.cs.c: kauth.h
169 kauth.ss.c: kauth.h
170
171 Kkauth.cs.c: kauth.rg Kkauth.h
172         ${RXGEN} -A -x -k -C -o Kkauth.cs.c ${srcdir}/kauth.rg
173
174 Kkauth.xdr.c: kauth.rg
175         ${RXGEN} -A -x -k -c -o Kkauth.xdr.c ${srcdir}/kauth.rg
176
177 Kkauth.h: kauth.rg
178         ${RXGEN} -A -x -k -h -o Kkauth.h ${srcdir}/kauth.rg
179
180 libkauth.a: $(LWP_objs)
181         $(LT_LDLIB_lwp) $(LWP_objs)
182
183 libkauth.krb.a: $(KRB_objs)
184         $(LT_LDLIB_lwp) $(KRB_objs)
185
186 kas.o: kas.c ${INCLS} AFS_component_version_number.o
187
188 admin_tools.o: admin_tools.c ${INCLS} kaport.h
189
190 kkids.o: kkids.c ${INCLS}
191
192 krb_tf.o: krb_tf.c ${INCLS}
193
194 kas: kauth.h kautils.h admin_tools.o libkauth.a $(LIBS) kas.o kkids.o
195         $(AFS_LDRULE) kas.o admin_tools.o kkids.o libkauth.a \
196                 ${LIBS} $(LIB_roken) $(LIB_crypt) ${XLIBS}
197
198 klog: AFS_component_version_number.o kauth.h kautils.h libkauth.a $(LIBS) \
199         klog.o
200         $(AFS_LDRULE) klog.o libkauth.a \
201                 ${LIBS} $(LIB_roken) $(LIB_crypt) ${XLIBS}
202
203 klog.o: klog.c kauth.h kautils.h AFS_component_version_number.o
204
205 klog.krb: kauth.h kautils.h libkauth.krb.a $(KLIBS) klog.o
206         $(AFS_LDRULE) klog.o libkauth.krb.a \
207                 ${KLIBS} $(LIB_roken) $(LIB_crypt) ${XLIBS}
208
209 knfs: kauth.h kautils.h libkauth.a $(LIBS) knfs.o
210         $(AFS_LDRULE) knfs.o libkauth.a \
211                 ${LIBS} $(LIB_roken) $(LIB_crypt) ${XLIBS}
212
213 knfs.o: knfs.c AFS_component_version_number.o
214
215 kpasswd.o: kauth.h kautils.h ${INCLS} kpasswd.c AFS_component_version_number.o
216
217 kpasswd: kauth.h kautils.h libkauth.a $(LIBS) kpasswd.o kkids.o
218         $(AFS_LDRULE) kpasswd.o kkids.o libkauth.a \
219                 ${LIBS} $(LIB_roken) $(LIB_crypt) ${XLIBS}
220
221 kpwvalid.o: kpwvalid.c AFS_component_version_number.o
222
223 kpwvalid: kpwvalid.o $(LIBS)
224         $(AFS_LDRULE) kpwvalid.o \
225                 ${LIBS} $(LIB_roken) ${XLIBS}
226
227 CFLAGS_user.krb.o = -DAFS_KERBEROS_ENV
228 user.krb.o: user.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
229         $(AFS_CCRULE) $(srcdir)/user.c
230
231 user.o: user.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
232
233 kdb: kdb.o ${INCLS} ${LIBS} libkauth.a
234         $(AFS_LDRULE) kdb.o libkauth.a \
235                 ${LIBS} $(LIB_roken) ${XLIBS}
236
237 kdb.o: kdb.c AFS_component_version_number.o
238
239 krb_udp.o: krb_udp.c kaserver.h kautils.h kauth.h prot.h ${TOP_INCDIR}/lwp.h AFS_component_version_number.o
240
241 krb_udp: krb_udp.o libkauth.a $(KLIBS)
242         $(AFS_LDRULE) krb_udp.o libkauth.a \
243                 $(KLIBS) $(LIB_roken)
244
245 ka-forwarder.o: ka-forwarder.c
246
247 ka-forwarder: ka-forwarder.o
248         $(AFS_LDRULE) ka-forwarder.o \
249                 ${LIBS} $(LIB_roken) ${XLIBS}
250
251 rebuild.o: rebuild.c $(INCLS) AFS_component_version_number.o
252
253 rebuild: rebuild.o $(LIBS) libkauth.a
254         $(AFS_LDRULE) rebuild.o libkauth.a \
255                 $(LIBS) $(LIB_roken) ${XLIBS}
256
257 #
258 # Install targets
259 #
260 install: kaserver kas kpwvalid kas klog klog.krb knfs kpasswd libkauth.a \
261                 libkauth.krb.a rebuild kdb ka-forwarder kautils.h kauth.h \
262                 kaport.h
263         if [ "x${INSTALL_KAUTH}" = "xyes" ]; then \
264                 ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}; \
265                 ${INSTALL} -d ${DESTDIR}${bindir}; \
266                 ${INSTALL} -d ${DESTDIR}${sbindir}; \
267                 ${INSTALL} -d ${DESTDIR}${afssrvbindir}; \
268                 ${INSTALL} -d ${DESTDIR}${afssrvsbindir}; \
269                 ${INSTALL} -d ${DESTDIR}${libdir}/afs; \
270                 ${INSTALL} -d ${DESTDIR}${includedir}/afs; \
271                 ${INSTALL_PROGRAM} kaserver ${DESTDIR}${afssrvlibexecdir}/kaserver; \
272                 ${INSTALL_PROGRAM} kas ${DESTDIR}${sbindir}/kas; \
273                 ${INSTALL_PROGRAM} kpwvalid ${DESTDIR}${sbindir}/kpwvalid; \
274                 ${INSTALL_PROGRAM} kas ${DESTDIR}${afssrvsbindir}/kas; \
275                 ${INSTALL_PROGRAM} kpwvalid ${DESTDIR}${afssrvsbindir}/kpwvalid; \
276                 ${INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog; \
277                 ${INSTALL_PROGRAM} klog.krb ${DESTDIR}${bindir}/klog.krb; \
278                 ${INSTALL_PROGRAM} klog ${DESTDIR}${afssrvbindir}/klog; \
279                 ${INSTALL_PROGRAM} klog.krb ${DESTDIR}${afssrvbindir}/klog.krb; \
280                 ${INSTALL_PROGRAM} knfs ${DESTDIR}${bindir}/knfs; \
281                 ${INSTALL_PROGRAM} kpasswd ${DESTDIR}${bindir}/kpasswd; \
282                 ${INSTALL_PROGRAM} kpwvalid ${DESTDIR}${bindir}/kpwvalid; \
283                 ${INSTALL_DATA} libkauth.a ${DESTDIR}${libdir}/afs/libkauth.a; \
284                 ${INSTALL_DATA} libkauth.krb.a ${DESTDIR}${libdir}/afs/libkauth.krb.a; \
285                 ${INSTALL_PROGRAM} rebuild ${DESTDIR}${afssrvsbindir}/kadb_check; \
286                 ${INSTALL_PROGRAM} kdb ${DESTDIR}${afssrvsbindir}/kdb; \
287                 ${INSTALL_PROGRAM} ka-forwarder ${DESTDIR}${afssrvsbindir}/ka-forwarder; \
288                 ${INSTALL_DATA} kautils.h ${DESTDIR}${includedir}/afs/kautils.h; \
289                 ${INSTALL_DATA} kauth.h ${DESTDIR}${includedir}/afs/kauth.h; \
290                 ${INSTALL_DATA} ${srcdir}/kaport.h ${DESTDIR}${includedir}/afs/kaport.h; \
291         fi
292
293 dest: kaserver kas kpwvalid kas klog klog.krb knfs kpasswd libkauth.a \
294                 libkauth.krb.a rebuild kdb ka-forwarder kautils.h kauth.h \
295                 kaport.h
296         if [ "x${INSTALL_KAUTH}" = "xyes" ]; then \
297                 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin; \
298                 ${INSTALL} -d ${DEST}/etc; \
299                 ${INSTALL} -d ${DEST}/bin; \
300                 ${INSTALL} -d ${DEST}/lib/afs; \
301                 ${INSTALL} -d ${DEST}/include/afs; \
302                 ${INSTALL_PROGRAM} kaserver ${DEST}/root.server/usr/afs/bin/kaserver; \
303                 ${INSTALL_PROGRAM} kas ${DEST}/etc/kas; \
304                 ${INSTALL_PROGRAM} kpwvalid ${DEST}/etc/kpwvalid; \
305                 ${INSTALL_PROGRAM} kas ${DEST}/root.server/usr/afs/bin/kas; \
306                 ${INSTALL_PROGRAM} kpwvalid ${DEST}/root.server/usr/afs/bin/kpwvalid; \
307                 ${INSTALL_PROGRAM} klog ${DEST}/bin/klog; \
308                 ${INSTALL_PROGRAM} klog.krb ${DEST}/bin/klog.krb; \
309                 ${INSTALL_PROGRAM} klog ${DEST}/root.server/usr/afs/bin/klog; \
310                 ${INSTALL_PROGRAM} klog.krb ${DEST}/root.server/usr/afs/bin/klog.krb; \
311                 ${INSTALL_PROGRAM} knfs ${DEST}/bin/knfs; \
312                 ${INSTALL_PROGRAM} kpasswd ${DEST}/bin/kpasswd; \
313                 ${INSTALL_PROGRAM} kpwvalid ${DEST}/bin/kpwvalid; \
314                 ${INSTALL_DATA} libkauth.a ${DEST}/lib/afs/libkauth.a; \
315                 ${INSTALL_DATA} libkauth.krb.a ${DEST}/lib/afs/libkauth.krb.a; \
316                 ${INSTALL_PROGRAM} kdb ${DEST}/etc/kdb; \
317                 ${INSTALL_PROGRAM} rebuild ${DEST}/etc/kadb_check; \
318                 ${INSTALL_PROGRAM} ka-forwarder ${DEST}/root.server/usr/afs/bin/ka-forwarder; \
319                 ${INSTALL_DATA} kautils.h ${DEST}/include/afs/kautils.h; \
320                 ${INSTALL_DATA} kauth.h ${DEST}/include/afs/kauth.h; \
321                 ${INSTALL_DATA} ${srcdir}/kaport.h ${DEST}/include/afs/kaport.h; \
322         fi
323
324 #
325 # Misc. targets
326 #
327 clean:
328         $(LT_CLEAN)
329         $(RM) -f *.o *.a *.xdr.c *.cs.c *.ss.c core \
330                 kaserver kas klog multiklog kpasswd rebuild \
331                 ka-forwarder \
332                 kauth.h kautils.h kaerrors.c kpwvalid \
333                 AFS_component_version_number.c \
334                 klog.krb knfs kdb Kkauth.h
335
336 include ../config/Makefile.version