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 # This is a pthread safe library containing rx, rxkad and des.
12 include ../config/Makefile.${SYS_NAME}
14 INSTALL = ${SRCDIR}bin/install
16 INCLUDES = -I${SRCDIR}include -I.. -I../rx
17 CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS}
18 SFLAGS=-P -I${SRCDIR}include
20 CCRULE = ${CC} ${CFLAGS} -c $?
46 AFS_component_version_number.o
112 if [ -f "../des/Makefile" ] ; then \
113 $(MAKE) install.lib ; \
118 install.lib: ${DESTDIR}lib/libafsrpc.a
121 ${DESTDIR}lib/libafsrpc.a: libafsrpc.a
122 ${INSTALL} libafsrpc.a ${DESTDIR}lib/libafsrpc.a
124 libafsrpc.a: ${LIBOBJS}
126 ${AR} -r libafsrpc.a ${LIBOBJS}
127 ${RANLIB} libafsrpc.a
128 case "${SYS_NAME}" in \
130 ${AR} r libafsrpc.a ../sys/afsl.exp;; \
133 rx_event.o: ${RX}/rx_event.c
136 rx_user.o: ${RX}/rx_user.c
139 rx_pthread.o: ${RX}/rx_pthread.c
145 rx_conncache.o: ${RX}/rx_conncache.c
148 rx_null.o: ${RX}/rx_null.c
151 rx_globals.o: ${RX}/rx_globals.c
154 rx_getaddr.o: ${RX}/rx_getaddr.c
157 rx_misc.o: ${RX}/rx_misc.c
160 rx_packet.o: ${RX}/rx_packet.c
163 rx_rdwr.o: ${RX}/rx_rdwr.c
166 rx_trace.o: ${RX}/rx_trace.c
169 rx_multi.o: ${RX}/rx_multi.c
172 rxkad_client.o: ${RXKAD}/rxkad_client.c
175 rxkad_server.o: ${RXKAD}/rxkad_server.c
178 rxkad_common.o: ${RXKAD}/rxkad_common.c
181 ticket.o: ${RXKAD}/ticket.c
184 fcrypt.o: ${RXKAD}/fcrypt.c
187 crypt_conn.o: ${RXKAD}/crypt_conn.c
190 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
196 xdr_int64.o: ${RX}/xdr_int64.c
199 xdr_array.o: ${RX}/xdr_array.c
202 xdr_arrayn.o: ${RX}/xdr_arrayn.c
205 xdr_float.o: ${RX}/xdr_float.c
208 xdr_mem.o: ${RX}/xdr_mem.c
211 xdr_rec.o: ${RX}/xdr_rec.c
214 xdr_refernce.o: ${RX}/xdr_refernce.c
217 xdr_rx.o: ${RX}/xdr_rx.c
220 xdr_update.o: ${RX}/xdr_update.c
223 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
226 # Note that the special case statement for compiling des.c is present
227 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
228 # the problem is that linking the pthread fileserver fails with messages
231 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
232 # Please contact your HP Support representative
233 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
234 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
235 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
236 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
238 # pxdb32: internal error. File won't be debuggable (still a valid executable)
239 # *** Error exit code 10
241 # The problematic version of pxdb is:
243 # $ what /opt/langtools/bin/pxdb32
244 # /opt/langtools/bin/pxdb32:
245 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
247 # The problem occurs when -g and -O are both used when compiling des.c.
248 # The simplest way to work around the problem is to leave out either -g or -O.
249 # Since des.c is relatively stable I've chosen to eliminate -g rather
250 # than take any hit in performance.
254 case ${SYS_NAME} in \
256 set X `echo ${CCRULE} | sed s/-g//`; shift; \
264 crypt.o: ${DES}/crypt.c
267 cbc_encrypt.o: ${DES}/cbc_encrypt.c
270 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
273 cksum.o: ${DES}/cksum.c
276 new_rnd_key.o: ${DES}/new_rnd_key.c
279 key_sched.o: ${DES}/key_sched.c
282 debug_decl.o: ${DES}/debug_decl.c
285 quad_cksum.o: ${DES}/quad_cksum.c
288 key_parity.o: ${DES}/key_parity.c
291 weak_key.o: ${DES}/weak_key.c
294 strng_to_key.o: ${DES}/strng_to_key.c
297 misco.o: ${DES}/misco.c
298 ${CCRULE} -DDONT_INCL_MAIN;
300 util.o: ${DES}/util.c
303 error_msg.o: ${COMERR}/error_msg.c
306 et_name.o: ${COMERR}/et_name.c
309 com_err.o: ${COMERR}/com_err.c
312 casestrcpy.o: ${UTIL}/casestrcpy.c
315 base64.o: ${UTIL}/base64.c
318 syscall.o: ${SYS}/syscall.s
319 case "$(SYS_NAME)" in \
321 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
322 as -o syscall.o syscall.ss; \
325 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
327 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
328 ${AS} -o syscall.o syscall.i; \
329 rm -f syscall.ss syscall.i;; \
331 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
332 as -o syscall.o syscall.ss; \
336 rxstat.o: ${RXSTAT}/rxstat.c
339 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
342 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
345 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
348 afsint.cs.o: ${FSINT}/afsint.cs.c
351 afsint.xdr.o: ${FSINT}/afsint.xdr.c
354 afscbint.cs.o: ${FSINT}/afscbint.cs.c
357 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
360 afsaux.o: ${FSINT}/afsaux.c
369 DESPAR =../../../DESLIB/dest/
371 echo "Installing libafsrpc stubs from ${DESPAR}:" `(csh -c 'cd ${DESPAR};pwd')`
372 ${RM} -f ${DESTDIR}lib/libafsrpc.a
373 ${INSTALL} ${DESPAR}lib/libafsrpc.a ${DESTDIR}lib/libafsrpc.a