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
64 AFS_component_version_number.o
139 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
141 all: ${TOP_LIBDIR}/${LIBAFSRPC}
143 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
144 ../config/shlib-install -d ${TOP_LIBDIR} \
145 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
147 install: ${LIBAFSRPC}
148 ../config/shlib-install -d ${DESTDIR}${libdir} \
149 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
152 ../config/shlib-install -d ${DEST}/lib \
153 -l libafsrpc -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR}
155 ${LIBAFSRPC}: ${LIBOBJS}
156 ../config/shlib-build -d $(srcdir) -l libafsrpc \
157 -M ${LIBAFSRPCMAJOR} -m ${LIBAFSRPCMINOR} -- \
158 ${LIBOBJS} ${MT_LIBS}
160 rx_event.o: ${RX}/rx_event.c
163 rx_user.o: ${RX}/rx_user.c
166 rx_pthread.o: ${RX}/rx_pthread.c
172 rx_conncache.o: ${RX}/rx_conncache.c
175 rx_null.o: ${RX}/rx_null.c
178 rx_globals.o: ${RX}/rx_globals.c
181 rx_getaddr.o: ${RX}/rx_getaddr.c
184 rx_misc.o: ${RX}/rx_misc.c
187 rx_packet.o: ${RX}/rx_packet.c
190 rx_rdwr.o: ${RX}/rx_rdwr.c
193 rx_trace.o: ${RX}/rx_trace.c
196 rx_multi.o: ${RX}/rx_multi.c
199 rxkad_client.o: ${RXKAD}/rxkad_client.c
202 rxkad_server.o: ${RXKAD}/rxkad_server.c
205 rxkad_common.o: ${RXKAD}/rxkad_common.c
208 ticket.o: ${RXKAD}/ticket.c
211 ticket5.o: ${RXKAD}/ticket5.c
214 crc.o: ${RXKAD}/crc.c
217 md4.o: ${RXKAD}/md4.c
220 md5.o: ${RXKAD}/md5.c
223 fcrypt.o: ${RXKAD}/domestic/fcrypt.c
226 crypt_conn.o: ${RXKAD}/domestic/crypt_conn.c
229 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
235 xdr_int32.o: ${RX}/xdr_int32.c
238 xdr_int64.o: ${RX}/xdr_int64.c
241 xdr_array.o: ${RX}/xdr_array.c
244 xdr_arrayn.o: ${RX}/xdr_arrayn.c
247 xdr_float.o: ${RX}/xdr_float.c
250 xdr_mem.o: ${RX}/xdr_mem.c
253 xdr_rec.o: ${RX}/xdr_rec.c
256 xdr_refernce.o: ${RX}/xdr_refernce.c
259 xdr_rx.o: ${RX}/xdr_rx.c
262 xdr_update.o: ${RX}/xdr_update.c
265 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
268 # Note that the special case statement for compiling des.c is present
269 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
270 # the problem is that linking the pthread fileserver fails with messages
273 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
274 # Please contact your HP Support representative
275 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
276 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
277 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
278 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
280 # pxdb32: internal error. File won't be debuggable (still a valid executable)
281 # *** Error exit code 10
283 # The problematic version of pxdb is:
285 # $ what /opt/langtools/bin/pxdb32
286 # /opt/langtools/bin/pxdb32:
287 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
289 # The problem occurs when -g and -O are both used when compiling des.c.
290 # The simplest way to work around the problem is to leave out either -g or -O.
291 # Since des.c is relatively stable I've chosen to eliminate -g rather
292 # than take any hit in performance.
296 case ${SYS_NAME} in \
298 set X `echo ${CCRULE} | sed s/-g//`; shift; \
306 crypt.o: ${DES}/crypt.c
309 cbc_encrypt.o: ${DES}/cbc_encrypt.c
312 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
315 cksum.o: ${DES}/cksum.c
318 new_rnd_key.o: ${DES}/new_rnd_key.c
321 key_sched.o: ${DES}/key_sched.c
324 debug_decl.o: ${DES}/debug_decl.c
327 quad_cksum.o: ${DES}/quad_cksum.c
330 key_parity.o: ${DES}/key_parity.c
333 weak_key.o: ${DES}/weak_key.c
336 strng_to_key.o: ${DES}/strng_to_key.c
339 misc.o: ${DES}/misc.c
342 util.o: ${DES}/util.c
345 error_msg.o: ${COMERR}/error_msg.c
348 et_name.o: ${COMERR}/et_name.c
351 com_err.o: ${COMERR}/com_err.c
354 casestrcpy.o: ${UTIL}/casestrcpy.c
357 assert.o: ${UTIL}/assert.c
360 base64.o: ${UTIL}/base64.c
363 fasttime.o: ${LWP}/fasttime.c
364 ${CCRULE} ${LWP}/fasttime.c
366 syscall.o: ${SYS}/syscall.s
367 case "$(SYS_NAME)" in \
368 sun4x_5* | sunx86_5*) \
369 $(CPP) ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
370 as -o syscall.o syscall.ss; \
372 sgi_* | *_darwin_* ) \
373 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
375 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
376 ${AS} -o syscall.o syscall.i; \
377 $(RM) -f syscall.ss syscall.i;; \
381 $(CPP) ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
382 as -o syscall.o syscall.ss; \
386 rxstat.o: ${RXSTAT}/rxstat.c
389 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
392 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
395 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
398 afsint.cs.o: ${FSINT}/afsint.cs.c
401 afsint.xdr.o: ${FSINT}/afsint.xdr.c
404 afscbint.cs.o: ${FSINT}/afscbint.cs.c
407 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
410 afsaux.o: ${FSINT}/afsaux.c
414 $(RM) -f *.o libafsrpc.a* libafsrpc.sl* libafsrpc.so*