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
144 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
146 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc_pic.a
148 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
149 ../config/shlib-install -d ${TOP_LIBDIR} \
150 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
152 ${TOP_LIBDIR}/libafsrpc_pic.a: libafsrpc_pic.a
153 ${INSTALL_DATA} libafsrpc_pic.a $@
155 install: ${LIBAFSRPC} libafsrpc_pic.a
156 ../config/shlib-install -d ${DESTDIR}${libdir} \
157 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
158 ${INSTALL_DATA} libafsrpc_pic.a ${DESTDIR}${libdir}/libafsrpc_pic.a
160 dest: ${LIBAFSRPC} libafsrpc_pic.a
161 ../config/shlib-install -d ${DEST}/lib \
162 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
163 ${INSTALL_DATA} libafsrpc_pic.a ${DEST}/lib/libafsrpc_pic.a
165 ${LIBAFSRPC}: ${LIBOBJS} libafsrpc.map
166 ../config/shlib-build -d $(srcdir) -l libafsrpc \
167 -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR} -- \
168 ${LIBOBJS} ${MT_LIBS}
170 libafsrpc_pic.a: ${LIBOBJS}
172 $(AR) crv $@ ${LIBOBJS}
175 rx_event.o: ${RX}/rx_event.c
178 rx_user.o: ${RX}/rx_user.c
181 rx_pthread.o: ${RX}/rx_pthread.c
185 ${CCRULE} @CFLAGS_NOERROR@
187 rx_conncache.o: ${RX}/rx_conncache.c
190 rx_null.o: ${RX}/rx_null.c
193 rx_opaque.o: ${RX}/rx_opaque.c
196 rx_globals.o: ${RX}/rx_globals.c
199 rx_getaddr.o: ${RX}/rx_getaddr.c
202 rx_identity.o: ${RX}/rx_identity.c
205 rx_misc.o: ${RX}/rx_misc.c
208 rx_packet.o: ${RX}/rx_packet.c
211 rx_rdwr.o: ${RX}/rx_rdwr.c
214 rx_stats.o: ${RX}/rx_stats.c
217 rx_trace.o: ${RX}/rx_trace.c
220 rx_multi.o: ${RX}/rx_multi.c
223 rxkad_client.o: ${RXKAD}/rxkad_client.c
226 rxkad_server.o: ${RXKAD}/rxkad_server.c
229 rxkad_common.o: ${RXKAD}/rxkad_common.c
232 ticket.o: ${RXKAD}/ticket.c
233 ${CCRULE} -I ../rxkad
235 ticket5.o: ${RXKAD}/ticket5.c
236 ${CCRULE} -I../rxkad -I${RXKAD}
238 crc.o: ${RXKAD}/crc.c
241 md4.o: ${RXKAD}/md4.c
244 md5.o: ${RXKAD}/md5.c
247 fcrypt.o: ${RXKAD}/fcrypt.c
248 ${CCRULE} -I../rxkad -I${RXKAD}
250 crypt_conn.o: ${RXKAD}/crypt_conn.c
251 ${CCRULE} -I../rxkad -I${RXKAD}
253 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
259 xdr_int32.o: ${RX}/xdr_int32.c
262 xdr_int64.o: ${RX}/xdr_int64.c
265 xdr_array.o: ${RX}/xdr_array.c
268 xdr_arrayn.o: ${RX}/xdr_arrayn.c
271 xdr_float.o: ${RX}/xdr_float.c
274 xdr_mem.o: ${RX}/xdr_mem.c
277 xdr_len.o: ${RX}/xdr_len.c
280 xdr_rec.o: ${RX}/xdr_rec.c
283 xdr_refernce.o: ${RX}/xdr_refernce.c
286 xdr_rx.o: ${RX}/xdr_rx.c
289 xdr_update.o: ${RX}/xdr_update.c
292 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
295 # Note that the special case statement for compiling des.c is present
296 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
297 # the problem is that linking the pthread fileserver fails with messages
300 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
301 # Please contact your HP Support representative
302 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
303 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
304 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
305 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
307 # pxdb32: internal error. File won't be debuggable (still a valid executable)
308 # *** Error exit code 10
310 # The problematic version of pxdb is:
312 # $ what /opt/langtools/bin/pxdb32
313 # /opt/langtools/bin/pxdb32:
314 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
316 # The problem occurs when -g and -O are both used when compiling des.c.
317 # The simplest way to work around the problem is to leave out either -g or -O.
318 # Since des.c is relatively stable I've chosen to eliminate -g rather
319 # than take any hit in performance.
323 case ${SYS_NAME} in \
325 set X `echo ${CCRULE} | sed s/-g//`; shift; \
333 crypt.o: ${DES}/crypt.c
336 cbc_encrypt.o: ${DES}/cbc_encrypt.c
339 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
342 cksum.o: ${DES}/cksum.c
345 new_rnd_key.o: ${DES}/new_rnd_key.c
348 key_sched.o: ${DES}/key_sched.c
351 debug_decl.o: ${DES}/debug_decl.c
354 quad_cksum.o: ${DES}/quad_cksum.c
357 key_parity.o: ${DES}/key_parity.c
360 weak_key.o: ${DES}/weak_key.c
363 strng_to_key.o: ${DES}/strng_to_key.c
366 misc.o: ${DES}/misc.c
369 util.o: ${DES}/util.c
372 error_msg.o: ${COMERR}/error_msg.c
375 et_name.o: ${COMERR}/et_name.c
378 com_err.o: ${COMERR}/com_err.c
381 casestrcpy.o: ${UTIL}/casestrcpy.c
384 assert.o: ${UTIL}/assert.c
387 base64.o: ${UTIL}/base64.c
390 strlcat.o: ${UTIL}/strlcat.c
393 strlcpy.o: ${UTIL}/strlcpy.c
396 fasttime.o: ${LWP}/fasttime.c
397 ${CCRULE} ${LWP}/fasttime.c
399 syscall.o: ${SYS}/syscall.s
400 case "$(SYS_NAME)" in \
401 sun4x_5* | sunx86_5*) \
402 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
403 as -o syscall.o syscall.ss; \
405 sgi_* | *_darwin_* ) \
406 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
408 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
409 ${AS} -o syscall.o syscall.i; \
410 $(RM) -f syscall.ss syscall.i;; \
413 ${CC} ${CFLAGS} -c syscall.c;; \
415 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
416 as -o syscall.o syscall.ss; \
420 rxstat.o: ${RXSTAT}/rxstat.c
423 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
426 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
429 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
432 afsint.cs.o: ${FSINT}/afsint.cs.c
435 afsint.xdr.o: ${FSINT}/afsint.xdr.c
438 afscbint.cs.o: ${FSINT}/afscbint.cs.c
441 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
444 afsaux.o: ${FSINT}/afsaux.c
448 $(RM) -f *.o libafsrpc.a* libafsrpc.sl* libafsrpc.so* \
449 libafsrpc_pic.a libafsrpc.dylib.* libafsrpc.exp