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 include @TOP_OBJDIR@/src/config/Makefile.config
10 INCLS=${TOP_INCDIR}/ubik.h \
11 ${TOP_INCDIR}/lock.h \
13 ${TOP_INCDIR}/rx/rx.h \
14 ${TOP_INCDIR}/rx/xdr.h \
15 ${TOP_INCDIR}/afs/keys.h \
16 ${TOP_INCDIR}/afs/cellconfig.h \
17 ptserver.h ptclient.h ptuser.h ptint.h pterror.h map.h
19 LINCLS=${TOP_INCDIR}/ubik.h \
20 ${TOP_INCDIR}/lock.h \
21 ${TOP_INCDIR}/rx/rx.h \
22 ${TOP_INCDIR}/rx/xdr.h \
23 ${TOP_INCDIR}/rx/rxkad.h \
24 ${TOP_INCDIR}/afs/auth.h \
25 ${TOP_INCDIR}/afs/cellconfig.h \
26 ptclient.h ptuser.h ptint.h pterror.h
28 LIBS=${TOP_LIBDIR}/libubik.a \
29 ${TOP_LIBDIR}/libauth.a \
30 ${TOP_LIBDIR}/librxkad.a \
31 ${TOP_LIBDIR}/librxstat.a \
32 ${TOP_LIBDIR}/librx.a \
33 ${TOP_LIBDIR}/liblwp.a \
34 ${TOP_LIBDIR}/libdes.a \
35 ${TOP_LIBDIR}/libcmd.a \
36 ${TOP_LIBDIR}/libcom_err.a \
37 ${TOP_LIBDIR}/util.a \
38 ${TOP_LIBDIR}/libsys.a \
39 ${TOP_LIBDIR}/libafsutil.a
42 all: ptserver pts pt_util db_verify ${TOP_LIBDIR}/libprot.a \
43 depinstall readgroup readpwd testpt
46 ptint.cs.c ptint.xdr.c \
47 ${TOP_INCDIR}/afs/prclient.h \
48 ${TOP_INCDIR}/afs/prerror.h \
49 ${TOP_INCDIR}/afs/print.h \
50 ${TOP_INCDIR}/afs/prserver.h \
51 ${TOP_INCDIR}/afs/ptclient.h \
52 ${TOP_INCDIR}/afs/ptuser.h \
53 ${TOP_INCDIR}/afs/pterror.h \
54 ${TOP_INCDIR}/afs/ptint.h \
55 ${TOP_INCDIR}/afs/ptserver.h
60 ptserver: ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${TOP_LIBDIR}/libaudit.a map.o
61 $(CC) ${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
63 ptserver.o: ptserver.c ${INCLS} AFS_component_version_number.c
65 ptutils.o: ptutils.c ${INCLS}
67 ptprocs.o: ptprocs.c ${INCLS}
69 utils.o: utils.c ${INCLS}
73 ptint.ss.o: ptint.ss.c ptint.xdr.c ptint.xg
74 ptint.cs.o: ptint.cs.c ptint.xdr.c ptint.xg
75 ptint.xdr.o: ptint.xdr.c ptint.h ptint.xg
78 ${RXGEN} -x -C -o $@ ${srcdir}/ptint.xg
81 ${RXGEN} -x -S -o $@ ${srcdir}/ptint.xg
84 ${RXGEN} -x -c -o $@ ${srcdir}/ptint.xg
87 ${RXGEN} -x -h -o $@ ${srcdir}/ptint.xg
93 Kptint.cs.c: ptint.xg Kptint.h
94 ${RXGEN} -x -k -C -o Kptint.cs.c ${srcdir}/ptint.xg
96 Kptint.xdr.c: ptint.xg
97 ${RXGEN} -x -k -c -o Kptint.xdr.c ${srcdir}/ptint.xg
100 ${RXGEN} -x -k -h -o Kptint.h ${srcdir}/ptint.xg
102 display.o: display.c ${INCLS}
104 db_verify.o: db_verify.c ${INCLS} AFS_component_version_number.c
106 db_verify: db_verify.o pterror.o display.o $(LIBS)
107 $(CC) ${CFLAGS} -o db_verify db_verify.o display.o pterror.o $(LIBS) ${XLIBS}
109 ptclient: ptclient.o display.o libprot.a $(LIBS)
110 $(CC) ${CFLAGS} -o ptclient ptclient.o display.o libprot.a $(LIBS) ${XLIBS}
112 ptclient.o: ptclient.c ${INCLS} AFS_component_version_number.c
114 ptuser.o: ptuser.c ${LINCLS}
116 pterror.h pterror.c: pterror.et
117 $(RM) -f pterror.h pterror.c
118 ${COMPILE_ET} -p ${srcdir} pterror
120 libprot.a: ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
122 $(AR) crv $@ ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
125 pts: pts.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
126 $(CC) ${CFLAGS} -o pts pts.o ${TOP_LIBDIR}/libcmd.a libprot.a ${LIBS} ${XLIBS}
128 pts.o: pts.c ${LINCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
130 readgroup: readgroup.o libprot.a $(LIBS)
131 $(CC) ${CFLAGS} -o readgroup readgroup.o libprot.a ${LIBS} ${XLIBS}
133 readgroup.o: readgroup.c ${LINCLS} AFS_component_version_number.c
135 readpwd: readpwd.o libprot.a $(LIBS)
136 $(CC) ${CFLAGS} -o readpwd readpwd.o libprot.a ${LIBS} ${XLIBS}
138 readpwd.o: readpwd.c ${LINCLS} AFS_component_version_number.c
140 testpt: testpt.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
141 case "$(SYS_NAME)" in \
143 $(CC) ${CFLAGS} -o testpt testpt.o ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ;; \
145 $(CC) ${CFLAGS} -o testpt testpt.o -lm ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ${XLIBS} ;; \
148 testpt.o: testpt.c ${INCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
150 pt_util: pt_util.o ptutils.o ubik.o utils.o map.o libprot.a $(LIBS)
151 $(CC) ${CFLAGS} -o pt_util pt_util.o ptutils.o ubik.o utils.o map.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS) ${XLIBS}
153 ubik.o: ubik.c ${INCLS}
157 echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_PT' >> $@
160 # Installation targets
163 ${DESTDIR}${afssrvlibexecdir}/ptserver \
164 ${DESTDIR}${afssrvbindir}/pts \
165 ${DESTDIR}${bindir}/pts \
166 ${DESTDIR}${afssrvsbindir}/pt_util \
167 ${DESTDIR}${afssrvsbindir}/prdb_check \
168 ${DESTDIR}${libdir}/afs/libprot.a \
169 ${DESTDIR}${includedir}/afs/prclient.h \
170 ${DESTDIR}${includedir}/afs/prerror.h \
171 ${DESTDIR}${includedir}/afs/print.h \
172 ${DESTDIR}${includedir}/afs/prserver.h \
173 ${DESTDIR}${includedir}/afs/ptclient.h \
174 ${DESTDIR}${includedir}/afs/ptuser.h \
175 ${DESTDIR}${includedir}/afs/pterror.h \
176 ${DESTDIR}${includedir}/afs/ptint.h \
177 ${DESTDIR}${includedir}/afs/ptserver.h
179 ${DEST}/root.server/usr/afs/bin/ptserver: ptserver
182 ${DEST}/bin/pts ${DEST}/root.server/usr/afs/bin/pts: pts
185 ${DEST}/root.server/usr/afs/bin/pt_util: pt_util
188 ${DEST}/lib/afs/libprot.a: libprot.a
191 ${DEST}/etc/prdb_check: db_verify
194 ${DEST}/include/afs/prclient.h: ptclient.h
197 ${DEST}/include/afs/prerror.h: pterror.h
200 ${DEST}/include/afs/print.h: ptint.h
203 ${DEST}/include/afs/prserver.h: ptserver.h
206 ${DEST}/include/afs/ptserver.h: ptserver.h
209 ${DEST}/include/afs/ptint.h: ptint.h
212 ${DEST}/include/afs/pterror.h: pterror.h
215 ${DEST}/include/afs/ptclient.h: ptclient.h
218 ${DEST}/include/afs/ptuser.h: ptuser.h
225 $(RM) -f *.a *.o ptserver ptint.cs.c ptint.ss.c ptclient ptint.xdr.c ptint.h \
226 libprot.a pts readgroup readpwd db_verify testpt pt_util pterror.h pterror.c \
227 core AFS_component_version_number.c Kptint.cs.c Kptint.h Kptint.xdr.c
229 include ../config/Makefile.version
230 ${DESTDIR}${afssrvlibexecdir}/ptserver: ptserver
233 ${DESTDIR}${afssrvbindir}/pts: pts
236 ${DESTDIR}${bindir}/pts: pts
239 ${DESTDIR}${afssrvsbindir}/pt_util: pt_util
242 ${DESTDIR}${afssrvsbindir}/prdb_check: db_verify
245 ${DESTDIR}${libdir}/afs/libprot.a: libprot.a
248 ${TOP_LIBDIR}/libprot.a: libprot.a
251 ${DESTDIR}${includedir}/afs/prclient.h: ptclient.h
254 ${TOP_INCDIR}/afs/prclient.h: ptclient.h
257 ${DESTDIR}${includedir}/afs/prerror.h: pterror.h
260 ${TOP_INCDIR}/afs/prerror.h: pterror.h
263 ${DESTDIR}${includedir}/afs/print.h: ptint.h
266 ${TOP_INCDIR}/afs/print.h: ptint.h
269 ${DESTDIR}${includedir}/afs/prserver.h: ptserver.h
272 ${TOP_INCDIR}/afs/prserver.h: ptserver.h
275 ${DESTDIR}${includedir}/afs/ptclient.h: ptclient.h
278 ${DESTDIR}${includedir}/afs/ptuser.h: ptuser.h
281 ${TOP_INCDIR}/afs/ptclient.h: ptclient.h
284 ${TOP_INCDIR}/afs/ptuser.h: ptuser.h
287 ${DESTDIR}${includedir}/afs/pterror.h: pterror.h
290 ${TOP_INCDIR}/afs/pterror.h: pterror.h
293 ${DESTDIR}${includedir}/afs/ptint.h: ptint.h
296 ${TOP_INCDIR}/afs/ptint.h: ptint.h
299 ${DESTDIR}${includedir}/afs/ptserver.h: ptserver.h
302 ${TOP_INCDIR}/afs/ptserver.h: ptserver.h
306 ${DEST}/root.server/usr/afs/bin/ptserver \
307 ${DEST}/root.server/usr/afs/bin/pts \
309 ${DEST}/root.server/usr/afs/bin/pt_util \
310 ${DEST}/etc/prdb_check \
311 ${DEST}/lib/afs/libprot.a \
312 ${DEST}/include/afs/prclient.h \
313 ${DEST}/include/afs/prerror.h \
314 ${DEST}/include/afs/print.h \
315 ${DEST}/include/afs/prserver.h \
316 ${DEST}/include/afs/ptclient.h \
317 ${DEST}/include/afs/ptuser.h \
318 ${DEST}/include/afs/pterror.h \
319 ${DEST}/include/afs/ptint.h \
320 ${DEST}/include/afs/ptserver.h