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 TOP_INCDIR=@TOP_INCDIR@
9 TOP_LIBDIR=@TOP_LIBDIR@
10 TOP_OBJDIR=@TOP_OBJDIR@
14 exec_prefix=@exec_prefix@
17 libexecdir=@libexecdir@
19 includedir=@includedir@
21 afssrvbindir=@afssrvbindir@
22 afssrvsbindir=@afssrvsbindir@
23 afssrvlibexecdir=@afssrvlibexecdir@
24 TOP_SRCDIR=@TOP_SRCDIR@
25 SYS_NAME=@AFS_SYSNAME@
29 include ../config/Makefile.${SYS_NAME}
31 UKERNELDIR=../libuafs/
32 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
33 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
35 CFLAGS=-I. -I${srcdir} $(DBUG) -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
36 INCLS=${TOP_INCDIR}/ubik.h \
37 ${TOP_INCDIR}/lock.h \
39 ${TOP_INCDIR}/rx/rx.h \
40 ${TOP_INCDIR}/rx/xdr.h \
41 ${TOP_INCDIR}/afs/keys.h \
42 ${TOP_INCDIR}/afs/cellconfig.h \
43 ptserver.h ptclient.h ptint.h ptopcodes.h pterror.h
45 LINCLS=${TOP_INCDIR}/ubik.h \
46 ${TOP_INCDIR}/lock.h \
47 ${TOP_INCDIR}/rx/rx.h \
48 ${TOP_INCDIR}/rx/xdr.h \
49 ${TOP_INCDIR}/rx/rxkad.h \
50 ${TOP_INCDIR}/afs/auth.h \
51 ${TOP_INCDIR}/afs/cellconfig.h \
52 ptclient.h ptint.h pterror.h
54 LIBS=${TOP_LIBDIR}/libubik.a \
55 ${TOP_LIBDIR}/libauth.a \
56 ${TOP_LIBDIR}/librxkad.a \
57 ${TOP_LIBDIR}/librxstat.a \
58 ${TOP_LIBDIR}/librx.a \
59 ${TOP_LIBDIR}/liblwp.a \
60 ${TOP_LIBDIR}/libdes.a \
61 ${TOP_LIBDIR}/libcom_err.a \
62 ${TOP_LIBDIR}/util.a \
63 ${TOP_LIBDIR}/libsys.a
66 all: ukinstall ptserver pts pt_util db_verify ${TOP_LIBDIR}/libprot.a ${TOP_INCDIR}/afs/prclient.h ${TOP_INCDIR}/afs/prerror.h ${TOP_INCDIR}/afs/print.h ${TOP_INCDIR}/afs/prserver.h ${TOP_INCDIR}/afs/ptclient.h ${TOP_INCDIR}/afs/pterror.h ${TOP_INCDIR}/afs/ptint.h ${TOP_INCDIR}/afs/ptserver.h readgroup readpwd testpt
71 ptserver: ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${TOP_LIBDIR}/libaudit.a
72 $(CC) ${CFLAGS} -o ptserver ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libaudit.a
74 ptserver.o: ptserver.c ${INCLS} AFS_component_version_number.c
76 ptutils.o: ptutils.c ${INCLS}
78 ptprocs.o: ptprocs.c ${INCLS}
80 utils.o: utils.c ${INCLS}
82 ptint.ss.o: ptint.ss.c ptint.xdr.c ptint.xg
83 ptint.cs.o: ptint.cs.c ptint.xdr.c ptint.xg
84 ptint.xdr.o: ptint.xdr.c ptint.h ptint.xg
87 ${RXGEN} -x -C -o $@ ${srcdir}/ptint.xg
90 ${RXGEN} -x -S -o $@ ${srcdir}/ptint.xg
93 ${RXGEN} -x -c -o $@ ${srcdir}/ptint.xg
96 ${RXGEN} -x -h -o $@ ${srcdir}/ptint.xg
102 Kptint.cs.c: ptint.xg Kptint.h
103 ${RXGEN} -x -k -C -o Kptint.cs.c ${srcdir}/ptint.xg
105 Kptint.xdr.c: ptint.xg
106 ${RXGEN} -x -k -c -o Kptint.xdr.c ${srcdir}/ptint.xg
109 ${RXGEN} -x -k -h -o Kptint.h ${srcdir}/ptint.xg
111 display.o: display.c ${INCLS}
113 db_verify.o: db_verify.c ${INCLS} AFS_component_version_number.c
115 db_verify: db_verify.o pterror.o display.o $(LIBS)
116 $(CC) ${CFLAGS} -o db_verify db_verify.o display.o pterror.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libcmd.a
118 ptclient: ptclient.o display.o libprot.a $(LIBS)
119 $(CC) ${CFLAGS} -o ptclient ptclient.o display.o libprot.a $(LIBS) ${XLIBS}
121 ptclient.o: ptclient.c ${INCLS} AFS_component_version_number.c
123 ptuser.o: ptuser.c ${LINCLS}
125 pterror.h pterror.c: pterror.et
126 $(RM) -f pterror.h pterror.c
127 ${COMPILE_ET} -p ${srcdir} pterror
129 libprot.a: ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
131 $(AR) crv $@ ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
134 pts: pts.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
135 $(CC) ${CFLAGS} -o pts pts.o ${TOP_LIBDIR}/libcmd.a libprot.a ${LIBS} ${XLIBS}
137 pts.o: pts.c ${LINCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
139 readgroup: readgroup.o libprot.a $(LIBS)
140 $(CC) ${CFLAGS} -o readgroup readgroup.o libprot.a ${LIBS} ${XLIBS}
142 readgroup.o: readgroup.c ${LINCLS} AFS_component_version_number.c
144 readpwd: readpwd.o libprot.a $(LIBS)
145 $(CC) ${CFLAGS} -o readpwd readpwd.o libprot.a ${LIBS} ${XLIBS}
147 readpwd.o: readpwd.c ${LINCLS} AFS_component_version_number.c
149 testpt: testpt.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
150 case "$(SYS_NAME)" in \
152 $(CC) ${CFLAGS} -o testpt testpt.o ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ;; \
154 $(CC) ${CFLAGS} -o testpt testpt.o -lm ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ${XLIBS} ;; \
157 testpt.o: testpt.c ${INCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
159 pt_util: pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS)
160 $(CC) ${CFLAGS} -o pt_util pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS) ${XLIBS}
162 ubik.o: ubik.c ${INCLS}
166 echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_PT' >> $@
169 # Installation targets
171 ukinstall: ${UKERNELDIR}/afs \
172 ${UKERNELDIR}/afsint/ptint.h \
173 ${UKERNELDIR}/afsint/ptint.cs.c \
174 ${UKERNELDIR}/afsint/ptint.xdr.c \
175 ${UKERNELDIR}/afs/ptuser.c \
176 ${UKERNELDIR}/afs/ptclient.h \
177 ${UKERNELDIR}/afs/pterror.c \
178 ${UKERNELDIR}/afs/pterror.h \
179 ${UKERNELDIR}/afs/ptserver.h
182 ${DESTDIR}${afssrvlibexecdir}/ptserver \
183 ${DESTDIR}${afssrvbindir}/pts \
184 ${DESTDIR}${bindir}/pts \
185 ${DESTDIR}${afssrvsbindir}/pt_util \
186 ${DESTDIR}${afssrvsbindir}/prdb_check \
187 ${DESTDIR}${libdir}/afs/libprot.a \
188 ${DESTDIR}${includedir}/afs/prclient.h \
189 ${DESTDIR}${includedir}/afs/prerror.h \
190 ${DESTDIR}${includedir}/afs/print.h \
191 ${DESTDIR}${includedir}/afs/prserver.h \
192 ${DESTDIR}${includedir}/afs/ptclient.h \
193 ${DESTDIR}${includedir}/afs/pterror.h \
194 ${DESTDIR}${includedir}/afs/ptint.h \
195 ${DESTDIR}${includedir}/afs/ptserver.h
200 ${UKERNELDIR}/afs/ptuser.c: ptuser.c
203 ${UKERNELDIR}/afs/ptclient.h: ptclient.h
206 ${UKERNELDIR}/afs/pterror.c: pterror.c
209 ${UKERNELDIR}/afs/pterror.h: pterror.h
212 ${UKERNELDIR}/afs/ptserver.h: ptserver.h
215 ${UKERNELDIR}/afsint/ptint.h: Kptint.h
218 ${UKERNELDIR}/afsint/ptint.cs.c: Kptint.cs.c
221 ${UKERNELDIR}/afsint/ptint.xdr.c: Kptint.xdr.c
224 ${DEST}/root.server/usr/afs/bin/ptserver: ptserver
227 ${DEST}/bin/pts ${DEST}/root.server/usr/afs/bin/pts: pts
230 ${DEST}/root.server/usr/afs/bin/pt_util: pt_util
233 ${DEST}/lib/afs/libprot.a: libprot.a
236 ${DEST}/etc/prdb_check: db_verify
239 ${DEST}/include/afs/prclient.h: ptclient.h
242 ${DEST}/include/afs/prerror.h: pterror.h
245 ${DEST}/include/afs/print.h: ptint.h
248 ${DEST}/include/afs/prserver.h: ptserver.h
251 ${DEST}/include/afs/ptserver.h: ptserver.h
254 ${DEST}/include/afs/ptint.h: ptint.h
257 ${DEST}/include/afs/pterror.h: pterror.h
260 ${DEST}/include/afs/ptclient.h: ptclient.h
267 $(RM) -f *.a *.o ptserver ptint.cs.c ptint.ss.c ptclient ptint.xdr.c ptint.h \
268 libprot.a pts readgroup readpwd db_verify testpt pt_util pterror.h pterror.c \
269 core AFS_component_version_number.c Kptint.cs.c Kptint.h Kptint.xdr.c
271 include ../config/Makefile.version
272 ${DESTDIR}${afssrvlibexecdir}/ptserver: ptserver
275 ${DESTDIR}${afssrvbindir}/pts: pts
278 ${DESTDIR}${bindir}/pts: pts
281 ${DESTDIR}${afssrvsbindir}/pt_util: pt_util
284 ${DESTDIR}${afssrvsbindir}/prdb_check: db_verify
287 ${DESTDIR}${libdir}/afs/libprot.a: libprot.a
290 ${TOP_LIBDIR}/libprot.a: libprot.a
293 ${DESTDIR}${includedir}/afs/prclient.h: ptclient.h
296 ${TOP_INCDIR}/afs/prclient.h: ptclient.h
299 ${DESTDIR}${includedir}/afs/prerror.h: pterror.h
302 ${TOP_INCDIR}/afs/prerror.h: pterror.h
305 ${DESTDIR}${includedir}/afs/print.h: ptint.h
308 ${TOP_INCDIR}/afs/print.h: ptint.h
311 ${DESTDIR}${includedir}/afs/prserver.h: ptserver.h
314 ${TOP_INCDIR}/afs/prserver.h: ptserver.h
317 ${DESTDIR}${includedir}/afs/ptclient.h: ptclient.h
320 ${TOP_INCDIR}/afs/ptclient.h: ptclient.h
323 ${DESTDIR}${includedir}/afs/pterror.h: pterror.h
326 ${TOP_INCDIR}/afs/pterror.h: pterror.h
329 ${DESTDIR}${includedir}/afs/ptint.h: ptint.h
332 ${TOP_INCDIR}/afs/ptint.h: ptint.h
335 ${DESTDIR}${includedir}/afs/ptserver.h: ptserver.h
338 ${TOP_INCDIR}/afs/ptserver.h: ptserver.h
342 ${DEST}/root.server/usr/afs/bin/ptserver \
343 ${DEST}/root.server/usr/afs/bin/pts \
345 ${DEST}/root.server/usr/afs/bin/pt_util \
346 ${DEST}/etc/prdb_check \
347 ${DEST}/lib/afs/libprot.a \
348 ${DEST}/include/afs/prclient.h \
349 ${DEST}/include/afs/prerror.h \
350 ${DEST}/include/afs/print.h \
351 ${DEST}/include/afs/prserver.h \
352 ${DEST}/include/afs/ptclient.h \
353 ${DEST}/include/afs/pterror.h \
354 ${DEST}/include/afs/ptint.h \
355 ${DEST}/include/afs/ptserver.h