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 $?
36 SYS = ${srcdir}/../sys
37 LWP = ${srcdir}/../lwp
64 AFS_component_version_number.o
139 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
141 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc_pic.a
143 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
144 ../config/shlib-install -d ${TOP_LIBDIR} \
145 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
147 ${TOP_LIBDIR}/libafsrpc_pic.a: libafsrpc_pic.a
148 ${INSTALL_DATA} libafsrpc_pic.a $@
150 install: ${LIBAFSRPC} libafsrpc_pic.a
151 ../config/shlib-install -d ${DESTDIR}${libdir} \
152 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
153 ${INSTALL_DATA} libafsrpc_pic.a ${DESTDIR}${libdir}/libafsrpc_pic.a
155 dest: ${LIBAFSRPC} libafsrpc_pic.a
156 ../config/shlib-install -d ${DEST}/lib \
157 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
158 ${INSTALL_DATA} libafsrpc_pic.a ${DEST}/lib/libafsrpc_pic.a
160 ${LIBAFSRPC}: ${LIBOBJS}
161 ../config/shlib-build -d $(srcdir) -l libafsrpc \
162 -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR} -- \
163 ${LIBOBJS} ${MT_LIBS}
165 libafsrpc_pic.a: ${LIBOBJS}
167 $(AR) crv $@ ${LIBOBJS}
170 rx_event.o: ${RX}/rx_event.c
173 rx_user.o: ${RX}/rx_user.c
176 rx_pthread.o: ${RX}/rx_pthread.c
180 ${CCRULE} @CFLAGS_NOERROR@
182 rx_conncache.o: ${RX}/rx_conncache.c
185 rx_null.o: ${RX}/rx_null.c
188 rx_globals.o: ${RX}/rx_globals.c
191 rx_getaddr.o: ${RX}/rx_getaddr.c
194 rx_misc.o: ${RX}/rx_misc.c
197 rx_packet.o: ${RX}/rx_packet.c
200 rx_rdwr.o: ${RX}/rx_rdwr.c
203 rx_trace.o: ${RX}/rx_trace.c
206 rx_multi.o: ${RX}/rx_multi.c
209 rxkad_client.o: ${RXKAD}/rxkad_client.c
212 rxkad_server.o: ${RXKAD}/rxkad_server.c
215 rxkad_common.o: ${RXKAD}/rxkad_common.c
218 ticket.o: ${RXKAD}/ticket.c
221 ticket5.o: ${RXKAD}/ticket5.c
222 ${CCRULE} -I../rxkad -I${RXKAD}
224 crc.o: ${RXKAD}/crc.c
227 md4.o: ${RXKAD}/md4.c
230 md5.o: ${RXKAD}/md5.c
233 fcrypt.o: ${RXKAD}/domestic/fcrypt.c
234 ${CCRULE} -I../rxkad -I${RXKAD}
236 crypt_conn.o: ${RXKAD}/domestic/crypt_conn.c
239 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
245 xdr_int32.o: ${RX}/xdr_int32.c
248 xdr_int64.o: ${RX}/xdr_int64.c
251 xdr_array.o: ${RX}/xdr_array.c
254 xdr_arrayn.o: ${RX}/xdr_arrayn.c
257 xdr_float.o: ${RX}/xdr_float.c
260 xdr_mem.o: ${RX}/xdr_mem.c
263 xdr_rec.o: ${RX}/xdr_rec.c
266 xdr_refernce.o: ${RX}/xdr_refernce.c
269 xdr_rx.o: ${RX}/xdr_rx.c
272 xdr_update.o: ${RX}/xdr_update.c
275 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
278 # Note that the special case statement for compiling des.c is present
279 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
280 # the problem is that linking the pthread fileserver fails with messages
283 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
284 # Please contact your HP Support representative
285 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
286 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
287 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
288 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
290 # pxdb32: internal error. File won't be debuggable (still a valid executable)
291 # *** Error exit code 10
293 # The problematic version of pxdb is:
295 # $ what /opt/langtools/bin/pxdb32
296 # /opt/langtools/bin/pxdb32:
297 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
299 # The problem occurs when -g and -O are both used when compiling des.c.
300 # The simplest way to work around the problem is to leave out either -g or -O.
301 # Since des.c is relatively stable I've chosen to eliminate -g rather
302 # than take any hit in performance.
306 case ${SYS_NAME} in \
308 set X `echo ${CCRULE} | sed s/-g//`; shift; \
316 crypt.o: ${DES}/crypt.c
319 cbc_encrypt.o: ${DES}/cbc_encrypt.c
322 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
325 cksum.o: ${DES}/cksum.c
328 new_rnd_key.o: ${DES}/new_rnd_key.c
331 key_sched.o: ${DES}/key_sched.c
334 debug_decl.o: ${DES}/debug_decl.c
337 quad_cksum.o: ${DES}/quad_cksum.c
340 key_parity.o: ${DES}/key_parity.c
343 weak_key.o: ${DES}/weak_key.c
346 strng_to_key.o: ${DES}/strng_to_key.c
349 misc.o: ${DES}/misc.c
352 util.o: ${DES}/util.c
355 error_msg.o: ${COMERR}/error_msg.c
358 et_name.o: ${COMERR}/et_name.c
361 com_err.o: ${COMERR}/com_err.c
364 casestrcpy.o: ${UTIL}/casestrcpy.c
367 assert.o: ${UTIL}/assert.c
370 base64.o: ${UTIL}/base64.c
373 strlcat.o: ${UTIL}/strlcat.c
376 strlcpy.o: ${UTIL}/strlcpy.c
379 fasttime.o: ${LWP}/fasttime.c
380 ${CCRULE} ${LWP}/fasttime.c
382 syscall.o: ${SYS}/syscall.s
383 case "$(SYS_NAME)" in \
384 sun4x_5* | sunx86_5*) \
385 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
386 as -o syscall.o syscall.ss; \
388 sgi_* | *_darwin_* ) \
389 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
391 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
392 ${AS} -o syscall.o syscall.i; \
393 $(RM) -f syscall.ss syscall.i;; \
396 ${CC} ${CFLAGS} -c syscall.c;; \
398 $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
399 as -o syscall.o syscall.ss; \
403 rxstat.o: ${RXSTAT}/rxstat.c
406 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
409 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
412 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
415 afsint.cs.o: ${FSINT}/afsint.cs.c
418 afsint.xdr.o: ${FSINT}/afsint.xdr.c
421 afscbint.cs.o: ${FSINT}/afscbint.cs.c
424 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
427 afsaux.o: ${FSINT}/afsaux.c
431 $(RM) -f *.o libafsrpc.a* libafsrpc.sl* libafsrpc.so* libafsrpc_pic.a libafsrpc.dylib.*