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 INCLUDES=-I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
26 -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
27 CFLAGS = ${COMMON_CFLAGS} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} ${SHLIB_CFLAGS}
28 SFLAGS=-P -I${TOP_INCDIR}
31 CCRULE = ${CC} ${CFLAGS} -c $?
38 SYS = ${srcdir}/../sys
39 LWP = ${srcdir}/../lwp
66 AFS_component_version_number.o
141 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
143 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc_pic.a
145 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
146 ../config/shlib-install -d ${TOP_LIBDIR} \
147 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
149 ${TOP_LIBDIR}/libafsrpc_pic.a: libafsrpc_pic.a
150 ${INSTALL_DATA} libafsrpc_pic.a $@
152 install: ${LIBAFSRPC} libafsrpc_pic.a
153 ../config/shlib-install -d ${DESTDIR}${libdir} \
154 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
155 ${INSTALL_DATA} libafsrpc_pic.a ${DESTDIR}${libdir}/libafsrpc_pic.a
157 dest: ${LIBAFSRPC} libafsrpc_pic.a
158 ../config/shlib-install -d ${DEST}/lib \
159 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
160 ${INSTALL_DATA} libafsrpc_pic.a ${DEST}/lib/libafsrpc_pic.a
162 ${LIBAFSRPC}: ${LIBOBJS}
163 ../config/shlib-build -d $(srcdir) -l libafsrpc \
164 -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR} -- \
165 ${LIBOBJS} ${MT_LIBS}
167 libafsrpc_pic.a: ${LIBOBJS}
169 $(AR) crv $@ ${LIBOBJS}
172 rx_event.o: ${RX}/rx_event.c
175 rx_user.o: ${RX}/rx_user.c
178 rx_pthread.o: ${RX}/rx_pthread.c
182 ${CCRULE} @CFLAGS_NOERROR@
184 rx_conncache.o: ${RX}/rx_conncache.c
187 rx_null.o: ${RX}/rx_null.c
190 rx_globals.o: ${RX}/rx_globals.c
193 rx_getaddr.o: ${RX}/rx_getaddr.c
196 rx_misc.o: ${RX}/rx_misc.c
199 rx_packet.o: ${RX}/rx_packet.c
202 rx_rdwr.o: ${RX}/rx_rdwr.c
205 rx_trace.o: ${RX}/rx_trace.c
208 rx_multi.o: ${RX}/rx_multi.c
211 rxkad_client.o: ${RXKAD}/rxkad_client.c
214 rxkad_server.o: ${RXKAD}/rxkad_server.c
217 rxkad_common.o: ${RXKAD}/rxkad_common.c
220 ticket.o: ${RXKAD}/ticket.c
223 ticket5.o: ${RXKAD}/ticket5.c
226 crc.o: ${RXKAD}/crc.c
229 md4.o: ${RXKAD}/md4.c
232 md5.o: ${RXKAD}/md5.c
235 fcrypt.o: ${RXKAD}/domestic/fcrypt.c
238 crypt_conn.o: ${RXKAD}/domestic/crypt_conn.c
241 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
247 xdr_int32.o: ${RX}/xdr_int32.c
250 xdr_int64.o: ${RX}/xdr_int64.c
253 xdr_array.o: ${RX}/xdr_array.c
256 xdr_arrayn.o: ${RX}/xdr_arrayn.c
259 xdr_float.o: ${RX}/xdr_float.c
262 xdr_mem.o: ${RX}/xdr_mem.c
265 xdr_rec.o: ${RX}/xdr_rec.c
268 xdr_refernce.o: ${RX}/xdr_refernce.c
271 xdr_rx.o: ${RX}/xdr_rx.c
274 xdr_update.o: ${RX}/xdr_update.c
277 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
280 # Note that the special case statement for compiling des.c is present
281 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
282 # the problem is that linking the pthread fileserver fails with messages
285 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
286 # Please contact your HP Support representative
287 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
288 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
289 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
290 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
292 # pxdb32: internal error. File won't be debuggable (still a valid executable)
293 # *** Error exit code 10
295 # The problematic version of pxdb is:
297 # $ what /opt/langtools/bin/pxdb32
298 # /opt/langtools/bin/pxdb32:
299 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
301 # The problem occurs when -g and -O are both used when compiling des.c.
302 # The simplest way to work around the problem is to leave out either -g or -O.
303 # Since des.c is relatively stable I've chosen to eliminate -g rather
304 # than take any hit in performance.
308 case ${SYS_NAME} in \
310 set X `echo ${CCRULE} | sed s/-g//`; shift; \
318 crypt.o: ${DES}/crypt.c
321 cbc_encrypt.o: ${DES}/cbc_encrypt.c
324 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
327 cksum.o: ${DES}/cksum.c
330 new_rnd_key.o: ${DES}/new_rnd_key.c
333 key_sched.o: ${DES}/key_sched.c
336 debug_decl.o: ${DES}/debug_decl.c
339 quad_cksum.o: ${DES}/quad_cksum.c
342 key_parity.o: ${DES}/key_parity.c
345 weak_key.o: ${DES}/weak_key.c
348 strng_to_key.o: ${DES}/strng_to_key.c
351 misc.o: ${DES}/misc.c
354 util.o: ${DES}/util.c
357 error_msg.o: ${COMERR}/error_msg.c
360 et_name.o: ${COMERR}/et_name.c
363 com_err.o: ${COMERR}/com_err.c
366 casestrcpy.o: ${UTIL}/casestrcpy.c
369 assert.o: ${UTIL}/assert.c
372 base64.o: ${UTIL}/base64.c
375 strlcat.o: ${UTIL}/strlcat.c
378 strlcpy.o: ${UTIL}/strlcpy.c
381 fasttime.o: ${LWP}/fasttime.c
382 ${CCRULE} ${LWP}/fasttime.c
384 syscall.o: ${SYS}/syscall.s
385 case "$(SYS_NAME)" in \
386 sun4x_5* | sunx86_5*) \
387 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
388 as -o syscall.o syscall.ss; \
390 sgi_* | *_darwin_* ) \
391 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
393 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
394 ${AS} -o syscall.o syscall.i; \
395 $(RM) -f syscall.ss syscall.i;; \
399 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
400 as -o syscall.o syscall.ss; \
404 rxstat.o: ${RXSTAT}/rxstat.c
407 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
410 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
413 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
416 afsint.cs.o: ${FSINT}/afsint.cs.c
419 afsint.xdr.o: ${FSINT}/afsint.xdr.c
420 ${CCRULE} @CFLAGS_NOERROR@
422 afscbint.cs.o: ${FSINT}/afscbint.cs.c
425 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
428 afsaux.o: ${FSINT}/afsaux.c
432 $(RM) -f *.o libafsrpc.a* libafsrpc.sl* libafsrpc.so* libafsrpc_pic.a libafsrpc.dylib.*