1 # API version. When something changes, increment as appropriate.
2 # Ignore at your own risk.
6 # Copyright 2000, International Business Machines Corporation and others.
9 # This software has been released under the terms of the IBM Public
10 # License. For details, see the LICENSE file in the top-level source
11 # directory or online at http://www.openafs.org/dl/license10.html
13 # Portions Copyright (c) 2003 Apple Computer, Inc.
15 # This is a pthread safe library containing rx, rxkad and des.
18 include @TOP_OBJDIR@/src/config/Makefile.config
20 INSTALL_DATA = @INSTALL_DATA@
21 INSTALL_PROGRAM = @INSTALL_PROGRAM@
22 INSTALL_SCRIPT = @INSTALL_SCRIPT@
25 CFLAGS = ${COMMON_CFLAGS} -DRXDEBUG ${MT_CFLAGS} ${SHLIB_CFLAGS}
26 SFLAGS=-P -I${TOP_INCDIR}
29 CCRULE = ${CC} ${CFLAGS} -c $?
30 RXKAD = $(srcdir)/../rxkad
36 SYS = ${srcdir}/../sys
37 LWP = ${srcdir}/../lwp
66 AFS_component_version_number.o
143 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
145 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc_pic.a
147 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
148 ../config/shlib-install -d ${TOP_LIBDIR} \
149 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
151 ${TOP_LIBDIR}/libafsrpc_pic.a: libafsrpc_pic.a
152 ${INSTALL_DATA} libafsrpc_pic.a $@
154 install: ${LIBAFSRPC} libafsrpc_pic.a
155 ../config/shlib-install -d ${DESTDIR}${libdir} \
156 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
157 ${INSTALL_DATA} libafsrpc_pic.a ${DESTDIR}${libdir}/libafsrpc_pic.a
159 dest: ${LIBAFSRPC} libafsrpc_pic.a
160 ../config/shlib-install -d ${DEST}/lib \
161 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
162 ${INSTALL_DATA} libafsrpc_pic.a ${DEST}/lib/libafsrpc_pic.a
164 ${LIBAFSRPC}: ${LIBOBJS} libafsrpc.map
165 ../config/shlib-build -d $(srcdir) -l libafsrpc \
166 -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR} -- \
167 ${LIBOBJS} ${MT_LIBS}
169 libafsrpc_pic.a: ${LIBOBJS}
171 $(AR) crv $@ ${LIBOBJS}
174 rx_event.o: ${RX}/rx_event.c
177 rx_user.o: ${RX}/rx_user.c
180 rx_pthread.o: ${RX}/rx_pthread.c
184 ${CCRULE} @CFLAGS_NOERROR@
186 rx_conncache.o: ${RX}/rx_conncache.c
189 rx_null.o: ${RX}/rx_null.c
192 rx_opaque.o: ${RX}/rx_opaque.c
195 rx_globals.o: ${RX}/rx_globals.c
198 rx_getaddr.o: ${RX}/rx_getaddr.c
201 rx_identity.o: ${RX}/rx_identity.c
204 rx_misc.o: ${RX}/rx_misc.c
207 rx_packet.o: ${RX}/rx_packet.c
210 rx_rdwr.o: ${RX}/rx_rdwr.c
213 rx_trace.o: ${RX}/rx_trace.c
216 rx_multi.o: ${RX}/rx_multi.c
219 rxkad_client.o: ${RXKAD}/rxkad_client.c
222 rxkad_server.o: ${RXKAD}/rxkad_server.c
225 rxkad_common.o: ${RXKAD}/rxkad_common.c
228 ticket.o: ${RXKAD}/ticket.c
229 ${CCRULE} -I ../rxkad
231 ticket5.o: ${RXKAD}/ticket5.c
232 ${CCRULE} -I../rxkad -I${RXKAD}
234 crc.o: ${RXKAD}/crc.c
237 md4.o: ${RXKAD}/md4.c
240 md5.o: ${RXKAD}/md5.c
243 fcrypt.o: ${RXKAD}/fcrypt.c
244 ${CCRULE} -I../rxkad -I${RXKAD}
246 crypt_conn.o: ${RXKAD}/crypt_conn.c
247 ${CCRULE} -I../rxkad -I${RXKAD}
249 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
255 xdr_int32.o: ${RX}/xdr_int32.c
258 xdr_int64.o: ${RX}/xdr_int64.c
261 xdr_array.o: ${RX}/xdr_array.c
264 xdr_arrayn.o: ${RX}/xdr_arrayn.c
267 xdr_float.o: ${RX}/xdr_float.c
270 xdr_mem.o: ${RX}/xdr_mem.c
273 xdr_len.o: ${RX}/xdr_len.c
276 xdr_rec.o: ${RX}/xdr_rec.c
279 xdr_refernce.o: ${RX}/xdr_refernce.c
282 xdr_rx.o: ${RX}/xdr_rx.c
285 xdr_update.o: ${RX}/xdr_update.c
288 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
291 # Note that the special case statement for compiling des.c is present
292 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
293 # the problem is that linking the pthread fileserver fails with messages
296 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
297 # Please contact your HP Support representative
298 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
299 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
300 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
301 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
303 # pxdb32: internal error. File won't be debuggable (still a valid executable)
304 # *** Error exit code 10
306 # The problematic version of pxdb is:
308 # $ what /opt/langtools/bin/pxdb32
309 # /opt/langtools/bin/pxdb32:
310 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
312 # The problem occurs when -g and -O are both used when compiling des.c.
313 # The simplest way to work around the problem is to leave out either -g or -O.
314 # Since des.c is relatively stable I've chosen to eliminate -g rather
315 # than take any hit in performance.
319 case ${SYS_NAME} in \
321 set X `echo ${CCRULE} | sed s/-g//`; shift; \
329 crypt.o: ${DES}/crypt.c
332 cbc_encrypt.o: ${DES}/cbc_encrypt.c
335 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
338 cksum.o: ${DES}/cksum.c
341 new_rnd_key.o: ${DES}/new_rnd_key.c
344 key_sched.o: ${DES}/key_sched.c
347 debug_decl.o: ${DES}/debug_decl.c
350 quad_cksum.o: ${DES}/quad_cksum.c
353 key_parity.o: ${DES}/key_parity.c
356 weak_key.o: ${DES}/weak_key.c
359 strng_to_key.o: ${DES}/strng_to_key.c
362 misc.o: ${DES}/misc.c
365 util.o: ${DES}/util.c
368 error_msg.o: ${COMERR}/error_msg.c
371 et_name.o: ${COMERR}/et_name.c
374 com_err.o: ${COMERR}/com_err.c
377 casestrcpy.o: ${UTIL}/casestrcpy.c
380 assert.o: ${UTIL}/assert.c
383 base64.o: ${UTIL}/base64.c
386 strlcat.o: ${UTIL}/strlcat.c
389 strlcpy.o: ${UTIL}/strlcpy.c
392 fasttime.o: ${LWP}/fasttime.c
393 ${CCRULE} ${LWP}/fasttime.c
395 syscall.o: ${SYS}/syscall.s
396 case "$(SYS_NAME)" in \
397 sun4x_5* | sunx86_5*) \
398 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
399 as -o syscall.o syscall.ss; \
401 sgi_* | *_darwin_* ) \
402 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
404 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
405 ${AS} -o syscall.o syscall.i; \
406 $(RM) -f syscall.ss syscall.i;; \
409 ${CC} ${CFLAGS} -c syscall.c;; \
411 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
412 as -o syscall.o syscall.ss; \
416 rxstat.o: ${RXSTAT}/rxstat.c
419 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
422 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
425 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
428 afsint.cs.o: ${FSINT}/afsint.cs.c
431 afsint.xdr.o: ${FSINT}/afsint.xdr.c
434 afscbint.cs.o: ${FSINT}/afscbint.cs.c
437 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
440 afsaux.o: ${FSINT}/afsaux.c
444 $(RM) -f *.o libafsrpc.a* libafsrpc.sl* libafsrpc.so* \
445 libafsrpc_pic.a libafsrpc.dylib.* libafsrpc.exp