1 # Copyright 2000, International Business Machines Corporation and others.
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
8 srcdir=@srcdir@/../ptserver
9 include @TOP_OBJDIR@/src/config/Makefile.config
12 CCRULE=${MT_CC} ${CFLAGS} ${MT_CFLAGS} -c $<
17 RXOBJS= rx_pthread.o rxkad_errs.o
19 UTILOBJS=assert.o uuid.o serverLog.o fileutil.o netutils.o dirpath.o \
20 volparse.o flipbase64.o softsig.o hostparse.o snprintf.o pthread_glock.o
22 INCLS=${TOP_INCDIR}/ubik.h \
23 ${TOP_INCDIR}/lock.h \
25 ${TOP_INCDIR}/rx/rx.h \
26 ${TOP_INCDIR}/rx/xdr.h \
27 ${TOP_INCDIR}/afs/keys.h \
28 ${TOP_INCDIR}/afs/cellconfig.h \
29 ${srcdir}/ptserver.h \
30 ${srcdir}/ptclient.h \
35 ${srcdir}/ptprototypes.h
37 LINCLS=${TOP_INCDIR}/ubik.h \
38 ${TOP_INCDIR}/lock.h \
39 ${TOP_INCDIR}/rx/rx.h \
40 ${TOP_INCDIR}/rx/xdr.h \
41 ${TOP_INCDIR}/rx/rxkad.h \
42 ${TOP_INCDIR}/afs/auth.h \
43 ${TOP_INCDIR}/afs/cellconfig.h \
44 ${srcdir}/ptclient.h \
49 LIBS=${RXOBJS} ${UTILOBJS}\
50 ${TOP_LIBDIR}/libubik_pthread.a \
51 ${TOP_LIBDIR}/libafsauthent.a \
52 ${TOP_LIBDIR}/librxstat.a \
53 ${TOP_LIBDIR}/libafsrpc.a \
54 ${TOP_LIBDIR}/libcmd.a \
55 ${TOP_LIBDIR}/libcom_err.a \
56 ${TOP_LIBDIR}/libsys.a \
57 ${TOP_LIBDIR}/libafsutil.a \
61 all: ptserver pts pt_util db_verify ${TOP_LIBDIR}/libprot.a \
62 depinstall readgroup readpwd testpt
65 ptint.cs.c ptint.xdr.c \
66 ${TOP_INCDIR}/afs/prclient.h \
67 ${TOP_INCDIR}/afs/prerror.h \
68 ${TOP_INCDIR}/afs/print.h \
69 ${TOP_INCDIR}/afs/prserver.h \
70 ${TOP_INCDIR}/afs/ptclient.h \
71 ${TOP_INCDIR}/afs/ptuser.h \
72 ${TOP_INCDIR}/afs/pterror.h \
73 ${TOP_INCDIR}/afs/ptint.h \
74 ${TOP_INCDIR}/afs/ptserver.h
80 rx_pthread.o: ${RX}/rx_pthread.c
83 rxkad_errs.o: ../rxkad/rxkad_errs.c
87 # get the pthreaded util stuff compiled here. we do this instead of
88 # using the non-pthreaded libutil.a. There probably should be a
89 # pthreaded version of this library, as we are doing with ubik itself, but...
92 assert.o: ${UTIL}/assert.c
95 uuid.o: ${UTIL}/uuid.c
98 serverLog.o: ${UTIL}/serverLog.c
101 fileutil.o: ${UTIL}/fileutil.c
104 volparse.o: ${UTIL}/volparse.c
107 flipbase64.o: ${UTIL}/flipbase64.c
110 netutils.o: ${UTIL}/netutils.c
113 dirpath.o: ${UTIL}/dirpath.c
116 softsig.o: ${UTIL}/softsig.c
119 hostparse.o: ${UTIL}/hostparse.c
122 snprintf.o: ${UTIL}/snprintf.c
125 pthread_glock.o: ${UTIL}/pthread_glock.c
129 #ptserver.o: ${srcdir}/ptserver.c ${INCLS} AFS_component_version_number.c
132 ptserver.o: ${srcdir}/ptserver.c
135 ptutils.o: ${srcdir}/ptutils.c
138 ptprocs.o: ${srcdir}/ptprocs.c
141 utils.o: ${srcdir}/utils.c
144 map.o: ${srcdir}/map.c
147 ptint.ss.o: ptint.ss.c
150 ptint.cs.o: ptint.cs.c
153 ptint.xdr.o: ptint.xdr.c
156 ptint.cs.c: ${srcdir}/ptint.xg
157 ${RXGEN} -x -C -u -o $@ ${srcdir}/ptint.xg
159 ptint.ss.c: ${srcdir}/ptint.xg
160 ${RXGEN} -x -S -o $@ ${srcdir}/ptint.xg
162 ptint.xdr.c: ${srcdir}/ptint.xg
163 ${RXGEN} -x -c -o $@ ${srcdir}/ptint.xg
165 ptint.h: ${srcdir}/ptint.xg
166 ${RXGEN} -x -h -u -o $@ ${srcdir}/ptint.xg
172 Kptint.cs.c: ${srcdir}/ptint.xg Kptint.h
173 ${RXGEN} -x -k -C -o Kptint.cs.c ${srcdir}/ptint.xg
175 Kptint.xdr.c: ${srcdir}/ptint.xg
176 ${RXGEN} -x -k -c -o Kptint.xdr.c ${srcdir}/ptint.xg
178 Kptint.h: ${srcdir}/ptint.xg
179 ${RXGEN} -x -k -h -o Kptint.h ${srcdir}/ptint.xg
181 display.o: ${srcdir}/display.c
184 ptserver: ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${TOP_LIBDIR}/libaudit.a map.o
185 ${MT_CC} ${CFLAGS} ${MT_CFLAGS} -o ptserver ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o map.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libaudit.a
187 db_verify.o: ${srcdir}/db_verify.c
190 db_verify: db_verify.o pterror.o display.o $(LIBS)
191 $(CC) ${CFLAGS} -o db_verify db_verify.o display.o pterror.o $(LIBS) ${XLIBS}
193 ptclient: ptclient.o display.o libprot.a $(LIBS)
194 $(CC) ${CFLAGS} -o ptclient ptclient.o display.o libprot.a $(LIBS) ${XLIBS}
196 ptclient.o: ${srcdir}/ptclient.c
199 ptuser.o: ${srcdir}/ptuser.c
202 pterror.h pterror.c: ${srcdir}/pterror.et
203 $(RM) -f pterror.h pterror.c
204 ${COMPILE_ET} -p ${srcdir} pterror
206 libprot.a: ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
208 $(AR) crv $@ ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
211 pts: pts.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
212 $(CC) ${CFLAGS} -o pts pts.o ${TOP_LIBDIR}/libcmd.a libprot.a ${LIBS} ${XLIBS}
214 pts.o: ${srcdir}/pts.c
217 readgroup: readgroup.o libprot.a $(LIBS)
218 $(CC) ${CFLAGS} -o readgroup readgroup.o libprot.a ${LIBS} ${XLIBS}
220 readgroup.o: ${srcdir}/readgroup.c
223 readpwd: readpwd.o libprot.a $(LIBS)
224 $(CC) ${CFLAGS} -o readpwd readpwd.o libprot.a ${LIBS} ${XLIBS}
226 readpwd.o: ${srcdir}/readpwd.c
229 testpt: testpt.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
230 case "$(SYS_NAME)" in \
232 $(CC) ${CFLAGS} -o testpt testpt.o ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ;; \
234 $(CC) ${CFLAGS} -o testpt testpt.o -lm ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ${XLIBS} ;; \
237 testpt.o: ${srcdir}/testpt.c
240 pt_util: pt_util.o ptutils.o ubik.o utils.o map.o libprot.a $(LIBS)
241 $(CC) ${CFLAGS} -o pt_util pt_util.o ptutils.o ubik.o utils.o map.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS) ${XLIBS}
243 pt_util.o: ${srcdir}/pt_util.c
246 ubik.o: ${srcdir}/ubik.c
251 echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_PT' >> $@
254 # Installation targets
257 ${DESTDIR}${afssrvlibexecdir}/ptserver \
258 ${DESTDIR}${afssrvbindir}/pts \
259 ${DESTDIR}${bindir}/pts \
260 ${DESTDIR}${afssrvsbindir}/pt_util \
261 ${DESTDIR}${afssrvsbindir}/prdb_check \
262 ${DESTDIR}${libdir}/afs/libprot.a \
263 ${DESTDIR}${includedir}/afs/prclient.h \
264 ${DESTDIR}${includedir}/afs/prerror.h \
265 ${DESTDIR}${includedir}/afs/print.h \
266 ${DESTDIR}${includedir}/afs/prserver.h \
267 ${DESTDIR}${includedir}/afs/ptclient.h \
268 ${DESTDIR}${includedir}/afs/ptuser.h \
269 ${DESTDIR}${includedir}/afs/pterror.h \
270 ${DESTDIR}${includedir}/afs/ptint.h \
271 ${DESTDIR}${includedir}/afs/ptserver.h
273 ${DEST}/root.server/usr/afs/bin/ptserver: ptserver
276 ${DEST}/bin/pts ${DEST}/root.server/usr/afs/bin/pts: pts
279 ${DEST}/root.server/usr/afs/bin/pt_util: pt_util
282 ${DEST}/lib/afs/libprot.a: libprot.a
285 ${DEST}/etc/prdb_check: db_verify
288 ${DEST}/include/afs/prclient.h: ${srcdir}/ptclient.h
291 ${DEST}/include/afs/prerror.h: pterror.h
294 ${DEST}/include/afs/print.h: ptint.h
297 ${DEST}/include/afs/prserver.h: ${srcdir}/ptserver.h
300 ${DEST}/include/afs/ptserver.h: ${srcdir}/ptserver.h
303 ${DEST}/include/afs/ptint.h: ptint.h
306 ${DEST}/include/afs/pterror.h: pterror.h
309 ${DEST}/include/afs/ptclient.h: ${srcdir}/ptclient.h
312 ${DEST}/include/afs/ptuser.h: ${srcdir}/ptuser.h
319 $(RM) -f *.a *.o ptserver ptint.cs.c ptint.ss.c ptclient ptint.xdr.c ptint.h \
320 libprot.a pts readgroup readpwd db_verify testpt pt_util pterror.h pterror.c \
321 core AFS_component_version_number.c Kptint.cs.c Kptint.h Kptint.xdr.c
323 include ../config/Makefile.version
324 ${DESTDIR}${afssrvlibexecdir}/ptserver: ptserver
327 ${DESTDIR}${afssrvbindir}/pts: pts
330 ${DESTDIR}${bindir}/pts: pts
333 ${DESTDIR}${afssrvsbindir}/pt_util: pt_util
336 ${DESTDIR}${afssrvsbindir}/prdb_check: db_verify
339 ${DESTDIR}${libdir}/afs/libprot.a: libprot.a
342 ${TOP_LIBDIR}/libprot.a: libprot.a
345 ${DESTDIR}${includedir}/afs/prclient.h: ${srcdir}/ptclient.h
348 ${TOP_INCDIR}/afs/prclient.h: ${srcdir}/ptclient.h
351 ${DESTDIR}${includedir}/afs/prerror.h: pterror.h
354 ${TOP_INCDIR}/afs/prerror.h: pterror.h
357 ${DESTDIR}${includedir}/afs/print.h: ptint.h
360 ${TOP_INCDIR}/afs/print.h: ptint.h
363 ${DESTDIR}${includedir}/afs/prserver.h: ${srcdir}/ptserver.h
366 ${TOP_INCDIR}/afs/prserver.h: ${srcdir}/ptserver.h
369 ${DESTDIR}${includedir}/afs/ptclient.h: ${srcdir}/ptclient.h
372 ${DESTDIR}${includedir}/afs/ptuser.h: ${srcdir}/ptuser.h
375 ${TOP_INCDIR}/afs/ptclient.h: ${srcdir}/ptclient.h
378 ${TOP_INCDIR}/afs/ptuser.h: ${srcdir}/ptuser.h
381 ${DESTDIR}${includedir}/afs/pterror.h: pterror.h
384 ${TOP_INCDIR}/afs/pterror.h: pterror.h
387 ${DESTDIR}${includedir}/afs/ptint.h: ptint.h
390 ${TOP_INCDIR}/afs/ptint.h: ptint.h
393 ${DESTDIR}${includedir}/afs/ptserver.h: ${srcdir}/ptserver.h
396 ${TOP_INCDIR}/afs/ptserver.h: ${srcdir}/ptserver.h
401 ${DEST}/root.server/usr/afs/bin/ptserver \
402 ${DEST}/root.server/usr/afs/bin/pts \
404 ${DEST}/root.server/usr/afs/bin/pt_util \
405 ${DEST}/etc/prdb_check \
406 ${DEST}/lib/afs/libprot.a \
407 ${DEST}/include/afs/prclient.h \
408 ${DEST}/include/afs/prerror.h \
409 ${DEST}/include/afs/print.h \
410 ${DEST}/include/afs/prserver.h \
411 ${DEST}/include/afs/ptclient.h \
412 ${DEST}/include/afs/ptuser.h \
413 ${DEST}/include/afs/pterror.h \
414 ${DEST}/include/afs/ptint.h \
415 ${DEST}/include/afs/ptserver.h