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
86 ptint.ss.c ptint.cs.c ptint.xdr.c ptint.h: ptint.xg
87 ${RXGEN} -x ${srcdir}/ptint.xg
89 Kptint.cs.c: ptint.xg Kptint.h
90 ${RXGEN} -x -k -C -o Kptint.cs.c ${srcdir}/ptint.xg
92 Kptint.xdr.c: ptint.xg
93 ${RXGEN} -x -k -c -o Kptint.xdr.c ${srcdir}/ptint.xg
96 ${RXGEN} -x -k -h -o Kptint.h ${srcdir}/ptint.xg
98 display.o: display.c ${INCLS}
100 db_verify.o: db_verify.c ${INCLS} AFS_component_version_number.c
102 db_verify: db_verify.o pterror.o display.o $(LIBS)
103 $(CC) ${CFLAGS} -o db_verify db_verify.o display.o pterror.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libcmd.a
105 ptclient: ptclient.o display.o libprot.a $(LIBS)
106 $(CC) ${CFLAGS} -o ptclient ptclient.o display.o libprot.a $(LIBS) ${XLIBS}
108 ptclient.o: ptclient.c ${INCLS} AFS_component_version_number.c
110 ptuser.o: ptuser.c ${LINCLS}
112 pterror.h pterror.c: pterror.et
113 $(RM) -f pterror.h pterror.c
114 ${COMPILE_ET} -p ${srcdir} pterror
116 libprot.a: ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
118 $(AR) crv $@ ptuser.o pterror.o ptint.cs.o ptint.xdr.o AFS_component_version_number.o
121 pts: pts.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
122 $(CC) ${CFLAGS} -o pts pts.o ${TOP_LIBDIR}/libcmd.a libprot.a ${LIBS} ${XLIBS}
124 pts.o: pts.c ${LINCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
126 readgroup: readgroup.o libprot.a $(LIBS)
127 $(CC) ${CFLAGS} -o readgroup readgroup.o libprot.a ${LIBS} ${XLIBS}
129 readgroup.o: readgroup.c ${LINCLS} AFS_component_version_number.c
131 readpwd: readpwd.o libprot.a $(LIBS)
132 $(CC) ${CFLAGS} -o readpwd readpwd.o libprot.a ${LIBS} ${XLIBS}
134 readpwd.o: readpwd.c ${LINCLS} AFS_component_version_number.c
136 testpt: testpt.o libprot.a ${TOP_LIBDIR}/libcmd.a $(LIBS)
137 case "$(SYS_NAME)" in \
139 $(CC) ${CFLAGS} -o testpt testpt.o ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ;; \
141 $(CC) ${CFLAGS} -o testpt testpt.o -lm ${TOP_LIBDIR}/libcmd.a libprot.a $(LIBS) ${XLIBS} ;; \
144 testpt.o: testpt.c ${INCLS} ${TOP_INCDIR}/afs/cmd.h AFS_component_version_number.c
146 pt_util: pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS)
147 $(CC) ${CFLAGS} -o pt_util pt_util.o ptutils.o ubik.o utils.o libprot.a $(LIBS) ${XLIBS}
149 ubik.o: ubik.c ${INCLS}
153 echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_PT' >> $@
156 # Installation targets
158 ukinstall: ${UKERNELDIR}/afs \
159 ${UKERNELDIR}/afsint/ptint.h \
160 ${UKERNELDIR}/afsint/ptint.cs.c \
161 ${UKERNELDIR}/afsint/ptint.xdr.c \
162 ${UKERNELDIR}/afs/ptuser.c \
163 ${UKERNELDIR}/afs/ptclient.h \
164 ${UKERNELDIR}/afs/pterror.c \
165 ${UKERNELDIR}/afs/pterror.h \
166 ${UKERNELDIR}/afs/ptserver.h
169 ${DESTDIR}${afssrvlibexecdir}/ptserver \
170 ${DESTDIR}${afssrvbindir}/pts \
171 ${DESTDIR}${bindir}/pts \
172 ${DESTDIR}${afssrvsbindir}/pt_util \
173 ${DESTDIR}${afssrvsbindir}/prdb_check \
174 ${DESTDIR}${libdir}/afs/libprot.a \
175 ${DESTDIR}${includedir}/afs/prclient.h \
176 ${DESTDIR}${includedir}/afs/prerror.h \
177 ${DESTDIR}${includedir}/afs/print.h \
178 ${DESTDIR}${includedir}/afs/prserver.h \
179 ${DESTDIR}${includedir}/afs/ptclient.h \
180 ${DESTDIR}${includedir}/afs/pterror.h \
181 ${DESTDIR}${includedir}/afs/ptint.h \
182 ${DESTDIR}${includedir}/afs/ptserver.h
187 ${UKERNELDIR}/afs/ptuser.c: ptuser.c
190 ${UKERNELDIR}/afs/ptclient.h: ptclient.h
193 ${UKERNELDIR}/afs/pterror.c: pterror.c
196 ${UKERNELDIR}/afs/pterror.h: pterror.h
199 ${UKERNELDIR}/afs/ptserver.h: ptserver.h
202 ${UKERNELDIR}/afsint/ptint.h: Kptint.h
205 ${UKERNELDIR}/afsint/ptint.cs.c: Kptint.cs.c
208 ${UKERNELDIR}/afsint/ptint.xdr.c: Kptint.xdr.c
211 ${DEST}/root.server/usr/afs/bin/ptserver: ptserver
214 ${DEST}/bin/pts ${DEST}/root.server/usr/afs/bin/pts: pts
217 ${DEST}/root.server/usr/afs/bin/pt_util: pt_util
220 ${DEST}/lib/afs/libprot.a: libprot.a
223 ${DEST}/etc/prdb_check: db_verify
226 ${DEST}/include/afs/prclient.h: ptclient.h
229 ${DEST}/include/afs/prerror.h: pterror.h
232 ${DEST}/include/afs/print.h: ptint.h
235 ${DEST}/include/afs/prserver.h: ptserver.h
238 ${DEST}/include/afs/ptserver.h: ptserver.h
241 ${DEST}/include/afs/ptint.h: ptint.h
244 ${DEST}/include/afs/pterror.h: pterror.h
247 ${DEST}/include/afs/ptclient.h: ptclient.h
254 $(RM) -f *.a *.o ptserver ptint.cs.c ptint.ss.c ptclient ptint.xdr.c ptint.h \
255 libprot.a pts readgroup readpwd db_verify testpt pt_util pterror.h pterror.c \
256 core AFS_component_version_number.c Kptint.cs.c Kptint.h Kptint.xdr.c
258 include ../config/Makefile.version
259 ${DESTDIR}${afssrvlibexecdir}/ptserver: ptserver
262 ${DESTDIR}${afssrvbindir}/pts: pts
265 ${DESTDIR}${bindir}/pts: pts
268 ${DESTDIR}${afssrvsbindir}/pt_util: pt_util
271 ${DESTDIR}${afssrvsbindir}/prdb_check: db_verify
274 ${DESTDIR}${libdir}/afs/libprot.a: libprot.a
277 ${TOP_LIBDIR}/libprot.a: libprot.a
280 ${DESTDIR}${includedir}/afs/prclient.h: ptclient.h
283 ${TOP_INCDIR}/afs/prclient.h: ptclient.h
286 ${DESTDIR}${includedir}/afs/prerror.h: pterror.h
289 ${TOP_INCDIR}/afs/prerror.h: pterror.h
292 ${DESTDIR}${includedir}/afs/print.h: ptint.h
295 ${TOP_INCDIR}/afs/print.h: ptint.h
298 ${DESTDIR}${includedir}/afs/prserver.h: ptserver.h
301 ${TOP_INCDIR}/afs/prserver.h: ptserver.h
304 ${DESTDIR}${includedir}/afs/ptclient.h: ptclient.h
307 ${TOP_INCDIR}/afs/ptclient.h: ptclient.h
310 ${DESTDIR}${includedir}/afs/pterror.h: pterror.h
313 ${TOP_INCDIR}/afs/pterror.h: pterror.h
316 ${DESTDIR}${includedir}/afs/ptint.h: ptint.h
319 ${TOP_INCDIR}/afs/ptint.h: ptint.h
322 ${DESTDIR}${includedir}/afs/ptserver.h: ptserver.h
325 ${TOP_INCDIR}/afs/ptserver.h: ptserver.h
329 ${DEST}/root.server/usr/afs/bin/ptserver \
330 ${DEST}/root.server/usr/afs/bin/pts \
332 ${DEST}/root.server/usr/afs/bin/pt_util \
333 ${DEST}/etc/prdb_check \
334 ${DEST}/lib/afs/libprot.a \
335 ${DEST}/include/afs/prclient.h \
336 ${DEST}/include/afs/prerror.h \
337 ${DEST}/include/afs/print.h \
338 ${DEST}/include/afs/prserver.h \
339 ${DEST}/include/afs/ptclient.h \
340 ${DEST}/include/afs/pterror.h \
341 ${DEST}/include/afs/ptint.h \
342 ${DEST}/include/afs/ptserver.h