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 TOP_SRCDIR=@TOP_SRCDIR@
13 SYS_NAME=@AFS_SYSNAME@
17 include ../config/Makefile.${SYS_NAME}
20 INCLUDES = -I${SRCDIR}/include -I.. -I../rx
21 CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_SRCDIR}/config
22 SFLAGS=-P -I${SRCDIR}/include
24 CCRULE = ${CC} ${CFLAGS} -c $?
50 AFS_component_version_number.o
117 system install: ${DESTDIR}/lib/libafsrpc.a
119 ${DESTDIR}/lib/libafsrpc.a: libafsrpc.a
120 ${INSTALL} libafsrpc.a ${DESTDIR}/lib/libafsrpc.a
122 libafsrpc.a: ${LIBOBJS}
124 $(AR) crv $@ ${LIBOBJS}
126 case "${SYS_NAME}" in \
128 $(AR) crv $@ ../sys/afsl.exp;; \
131 rx_event.o: ${RX}/rx_event.c
134 rx_user.o: ${RX}/rx_user.c
137 rx_pthread.o: ${RX}/rx_pthread.c
143 rx_conncache.o: ${RX}/rx_conncache.c
146 rx_null.o: ${RX}/rx_null.c
149 rx_globals.o: ${RX}/rx_globals.c
152 rx_getaddr.o: ${RX}/rx_getaddr.c
155 rx_misc.o: ${RX}/rx_misc.c
158 rx_packet.o: ${RX}/rx_packet.c
161 rx_rdwr.o: ${RX}/rx_rdwr.c
164 rx_trace.o: ${RX}/rx_trace.c
167 rx_multi.o: ${RX}/rx_multi.c
170 rxkad_client.o: ${RXKAD}/rxkad_client.c
173 rxkad_server.o: ${RXKAD}/rxkad_server.c
176 rxkad_common.o: ${RXKAD}/rxkad_common.c
179 ticket.o: ${RXKAD}/ticket.c
182 fcrypt.o: ${RXKAD}/fcrypt.c
185 crypt_conn.o: ${RXKAD}/crypt_conn.c
188 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
194 xdr_int64.o: ${RX}/xdr_int64.c
197 xdr_array.o: ${RX}/xdr_array.c
200 xdr_arrayn.o: ${RX}/xdr_arrayn.c
203 xdr_float.o: ${RX}/xdr_float.c
206 xdr_mem.o: ${RX}/xdr_mem.c
209 xdr_rec.o: ${RX}/xdr_rec.c
212 xdr_refernce.o: ${RX}/xdr_refernce.c
215 xdr_rx.o: ${RX}/xdr_rx.c
218 xdr_update.o: ${RX}/xdr_update.c
221 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
224 # Note that the special case statement for compiling des.c is present
225 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
226 # the problem is that linking the pthread fileserver fails with messages
229 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
230 # Please contact your HP Support representative
231 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
232 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
233 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
234 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
236 # pxdb32: internal error. File won't be debuggable (still a valid executable)
237 # *** Error exit code 10
239 # The problematic version of pxdb is:
241 # $ what /opt/langtools/bin/pxdb32
242 # /opt/langtools/bin/pxdb32:
243 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
245 # The problem occurs when -g and -O are both used when compiling des.c.
246 # The simplest way to work around the problem is to leave out either -g or -O.
247 # Since des.c is relatively stable I've chosen to eliminate -g rather
248 # than take any hit in performance.
252 case ${SYS_NAME} in \
254 set X `echo ${CCRULE} | sed s/-g//`; shift; \
262 crypt.o: ${DES}/crypt.c
265 cbc_encrypt.o: ${DES}/cbc_encrypt.c
268 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
271 cksum.o: ${DES}/cksum.c
274 new_rnd_key.o: ${DES}/new_rnd_key.c
277 key_sched.o: ${DES}/key_sched.c
280 debug_decl.o: ${DES}/debug_decl.c
283 quad_cksum.o: ${DES}/quad_cksum.c
286 key_parity.o: ${DES}/key_parity.c
289 weak_key.o: ${DES}/weak_key.c
292 strng_to_key.o: ${DES}/strng_to_key.c
295 misc.o: ${DES}/misc.c
298 util.o: ${DES}/util.c
301 error_msg.o: ${COMERR}/error_msg.c
304 et_name.o: ${COMERR}/et_name.c
307 com_err.o: ${COMERR}/com_err.c
310 casestrcpy.o: ${UTIL}/casestrcpy.c
313 base64.o: ${UTIL}/base64.c
316 syscall.o: ${SYS}/syscall.s
317 case "$(SYS_NAME)" in \
319 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
320 as -o syscall.o syscall.ss; \
322 sgi_* | ppc_darwin* ) \
323 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
325 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
326 ${AS} -o syscall.o syscall.i; \
327 $(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
364 $(RM) -f *.o libafsrpc*