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@
11 exec_prefix=@exec_prefix@
14 libexecdir=@libexecdir@
16 includedir=@includedir@
18 afssrvbindir=@afssrvbindir@
19 afssrvsbindir=@afssrvsbindir@
20 afssrvlibexecdir=@afssrvlibexecdir@
21 TOP_SRCDIR=@TOP_SRCDIR@
22 SYS_NAME=@AFS_SYSNAME@
26 include ../config/Makefile.${SYS_NAME}
28 UKERNELDIR=../libuafs/
29 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
30 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
32 CFLAGS=$(DBUG) -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
33 INCLS=${TOP_INCDIR}/ubik.h \
34 ${TOP_INCDIR}/lock.h \
36 ${TOP_INCDIR}/rx/rx.h \
37 ${TOP_INCDIR}/rx/xdr.h \
38 ${TOP_INCDIR}/afs/keys.h \
39 ${TOP_INCDIR}/afs/cellconfig.h \
40 ptserver.h ptclient.h ptint.h ptopcodes.h pterror.h
42 LINCLS=${TOP_INCDIR}/ubik.h \
43 ${TOP_INCDIR}/lock.h \
44 ${TOP_INCDIR}/rx/rx.h \
45 ${TOP_INCDIR}/rx/xdr.h \
46 ${TOP_INCDIR}/rx/rxkad.h \
47 ${TOP_INCDIR}/afs/auth.h \
48 ${TOP_INCDIR}/afs/cellconfig.h \
49 ptclient.h ptint.h pterror.h
51 LIBS=${TOP_LIBDIR}/libubik.a \
52 ${TOP_LIBDIR}/libauth.a \
53 ${TOP_LIBDIR}/librxkad.a \
54 ${TOP_LIBDIR}/librxstat.a \
55 ${TOP_LIBDIR}/librx.a \
56 ${TOP_LIBDIR}/liblwp.a \
57 ${TOP_LIBDIR}/libdes.a \
58 ${TOP_LIBDIR}/libcom_err.a \
59 ${TOP_LIBDIR}/util.a \
60 ${TOP_LIBDIR}/libsys.a
63 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
68 ptserver: ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${TOP_LIBDIR}/libaudit.a
69 $(CC) ${CFLAGS} -o ptserver ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libaudit.a
71 ptserver.o: ptserver.c ${INCLS} AFS_component_version_number.c
73 ptutils.o: ptutils.c ${INCLS}
75 ptprocs.o: ptprocs.c ${INCLS}
77 utils.o: utils.c ${INCLS}
79 ptint.ss.o: ptint.ss.c ptint.xdr.c ptint.xg
80 ptint.cs.o: ptint.cs.c ptint.xdr.c ptint.xg
81 ptint.xdr.o: ptint.xdr.c ptint.h ptint.xg
83 ptint.ss.c ptint.cs.c ptint.xdr.c ptint.h: ptint.xg
86 Kptint.cs.c: ptint.xg Kptint.h
87 ${RXGEN} -x -k -C -o Kptint.cs.c ptint.xg
89 Kptint.xdr.c: ptint.xg
90 ${RXGEN} -x -k -c -o Kptint.xdr.c ptint.xg
93 ${RXGEN} -x -k -h -o Kptint.h ptint.xg
95 display.o: display.c ${INCLS}
97 db_verify.o: db_verify.c ${INCLS} AFS_component_version_number.c
99 db_verify: db_verify.o pterror.o display.o $(LIBS)
100 $(CC) ${CFLAGS} -o db_verify db_verify.o display.o pterror.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libcmd.a
102 ptclient: ptclient.o display.o libprot.a $(LIBS)
103 $(CC) ${CFLAGS} -o ptclient ptclient.o display.o libprot.a $(LIBS) ${XLIBS}
105 ptclient.o: ptclient.c ${INCLS} AFS_component_version_number.c
107 ptuser.o: ptuser.c ${LINCLS}
109 pterror.h pterror.c: pterror.et
110 $(RM) -f pterror.h pterror.c
111 ${COMPILE_ET} pterror
113 libprot.a: ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
115 $(AR) crv $@ ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
118 pts: pts.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
119 $(CC) ${CFLAGS} -o pts pts.o ${TOP_LIBDIR}/libcmd.a libprot.a ${LIBS} ${XLIBS}
121 pts.o: pts.c ${LINCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
123 readgroup: readgroup.o libprot.a $(LIBS)
124 $(CC) ${CFLAGS} -o readgroup readgroup.o libprot.a ${LIBS} ${XLIBS}
126 readgroup.o: readgroup.c ${LINCLS} AFS_component_version_number.c
128 readpwd: readpwd.o libprot.a $(LIBS)
129 $(CC) ${CFLAGS} -o readpwd readpwd.o libprot.a ${LIBS} ${XLIBS}
131 readpwd.o: readpwd.c ${LINCLS} AFS_component_version_number.c
133 testpt: testpt.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
134 case "$(SYS_NAME)" in \
136 $(CC) ${CFLAGS} -o testpt testpt.o ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ;; \
138 $(CC) ${CFLAGS} -o testpt testpt.o -lm ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ${XLIBS} ;; \
141 testpt.o: testpt.c ${INCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
143 pt_util: pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS)
144 $(CC) ${CFLAGS} -o pt_util pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS) ${XLIBS}
146 ubik.o: ubik.c ${INCLS}
150 echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_PT' >> $@
153 # Installation targets
155 ukinstall: ${UKERNELDIR}/afs \
156 ${UKERNELDIR}/afsint/ptint.h \
157 ${UKERNELDIR}/afsint/ptint.cs.c \
158 ${UKERNELDIR}/afsint/ptint.xdr.c \
159 ${UKERNELDIR}/afs/ptuser.c \
160 ${UKERNELDIR}/afs/ptclient.h \
161 ${UKERNELDIR}/afs/pterror.c \
162 ${UKERNELDIR}/afs/pterror.h \
163 ${UKERNELDIR}/afs/ptserver.h
166 ${DESTDIR}${afssrvlibexecdir}/ptserver \
167 ${DESTDIR}${afssrvbindir}/pts \
168 ${DESTDIR}${bindir}/pts \
169 ${DESTDIR}${afssrvsbindir}/pt_util \
170 ${DESTDIR}${afssrvsbindir}/prdb_check \
171 ${DESTDIR}${libdir}/afs/libprot.a \
172 ${DESTDIR}${includedir}/afs/prclient.h \
173 ${DESTDIR}${includedir}/afs/prerror.h \
174 ${DESTDIR}${includedir}/afs/print.h \
175 ${DESTDIR}${includedir}/afs/prserver.h \
176 ${DESTDIR}${includedir}/afs/ptclient.h \
177 ${DESTDIR}${includedir}/afs/pterror.h \
178 ${DESTDIR}${includedir}/afs/ptint.h \
179 ${DESTDIR}${includedir}/afs/ptserver.h
184 ${UKERNELDIR}/afs/ptuser.c: ptuser.c
187 ${UKERNELDIR}/afs/ptclient.h: ptclient.h
190 ${UKERNELDIR}/afs/pterror.c: pterror.c
193 ${UKERNELDIR}/afs/pterror.h: pterror.h
196 ${UKERNELDIR}/afs/ptserver.h: ptserver.h
199 ${UKERNELDIR}/afsint/ptint.h: Kptint.h
202 ${UKERNELDIR}/afsint/ptint.cs.c: Kptint.cs.c
205 ${UKERNELDIR}/afsint/ptint.xdr.c: Kptint.xdr.c
208 ${DEST}/root.server/usr/afs/bin/ptserver: ptserver
211 ${DEST}/bin/pts ${DEST}/root.server/usr/afs/bin/pts: pts
214 ${DEST}/root.server/usr/afs/bin/pt_util: pt_util
217 ${DEST}/lib/afs/libprot.a: libprot.a
220 ${DEST}/etc/prdb_check: db_verify
223 ${DEST}/include/afs/prclient.h: ptclient.h
226 ${DEST}/include/afs/prerror.h: pterror.h
229 ${DEST}/include/afs/print.h: ptint.h
232 ${DEST}/include/afs/prserver.h: ptserver.h
235 ${DEST}/include/afs/ptserver.h: ptserver.h
238 ${DEST}/include/afs/ptint.h: ptint.h
241 ${DEST}/include/afs/pterror.h: pterror.h
244 ${DEST}/include/afs/ptclient.h: ptclient.h
251 $(RM) -f *.a *.o ptserver ptint.cs.c ptint.ss.c ptclient ptint.xdr.c ptint.h \
252 libprot.a pts readgroup readpwd db_verify testpt pt_util pterror.h pterror.c \
253 core AFS_component_version_number.c Kptint.cs.c Kptint.h Kptint.xdr.c
255 include ../config/Makefile.version
256 ${DESTDIR}${afssrvlibexecdir}/ptserver: ptserver
259 ${DESTDIR}${afssrvbindir}/pts: pts
262 ${DESTDIR}${bindir}/pts: pts
265 ${DESTDIR}${afssrvsbindir}/pt_util: pt_util
268 ${DESTDIR}${afssrvsbindir}/prdb_check: db_verify
271 ${DESTDIR}${libdir}/afs/libprot.a: libprot.a
274 ${TOP_LIBDIR}/libprot.a: libprot.a
277 ${DESTDIR}${includedir}/afs/prclient.h: ptclient.h
280 ${TOP_INCDIR}/afs/prclient.h: ptclient.h
283 ${DESTDIR}${includedir}/afs/prerror.h: pterror.h
286 ${TOP_INCDIR}/afs/prerror.h: pterror.h
289 ${DESTDIR}${includedir}/afs/print.h: ptint.h
292 ${TOP_INCDIR}/afs/print.h: ptint.h
295 ${DESTDIR}${includedir}/afs/prserver.h: ptserver.h
298 ${TOP_INCDIR}/afs/prserver.h: ptserver.h
301 ${DESTDIR}${includedir}/afs/ptclient.h: ptclient.h
304 ${TOP_INCDIR}/afs/ptclient.h: ptclient.h
307 ${DESTDIR}${includedir}/afs/pterror.h: pterror.h
310 ${TOP_INCDIR}/afs/pterror.h: pterror.h
313 ${DESTDIR}${includedir}/afs/ptint.h: ptint.h
316 ${TOP_INCDIR}/afs/ptint.h: ptint.h
319 ${DESTDIR}${includedir}/afs/ptserver.h: ptserver.h
322 ${TOP_INCDIR}/afs/ptserver.h: ptserver.h
326 ${DEST}/root.server/usr/afs/bin/ptserver \
327 ${DEST}/root.server/usr/afs/bin/pts \
329 ${DEST}/root.server/usr/afs/bin/pt_util \
330 ${DEST}/etc/prdb_check \
331 ${DEST}/lib/afs/libprot.a \
332 ${DEST}/include/afs/prclient.h \
333 ${DEST}/include/afs/prerror.h \
334 ${DEST}/include/afs/print.h \
335 ${DEST}/include/afs/prserver.h \
336 ${DEST}/include/afs/ptclient.h \
337 ${DEST}/include/afs/pterror.h \
338 ${DEST}/include/afs/ptint.h \
339 ${DEST}/include/afs/ptserver.h