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
21 INCLUDES=-I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
22 -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
23 CFLAGS = ${COMMON_CFLAGS} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} ${SHLIB_CFLAGS}
24 SFLAGS=-P -I${TOP_INCDIR}
27 CCRULE = ${CC} ${CFLAGS} -c $?
34 SYS = ${srcdir}/../sys
35 LWP = ${srcdir}/../lwp
58 AFS_component_version_number.o
133 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
135 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
137 install: ${DESTDIR}${libdir}/${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
139 ${DEST}/lib/${LIBAFSRPC}: ${LIBAFSRPC}
140 ${INSTALL} ${LIBAFSRPC} ${DEST}/lib/${LIBAFSRPC}
142 ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}: ${DEST}/lib/${LIBAFSRPC}
143 -ln -f -s ${LIBAFSRPC} ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}
145 ${LIBAFSRPC}: ${LIBOBJS}
146 case ${SYS_NAME} in \
147 rs_aix4* | rs_aix5*) \
148 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} -bE:${srcdir}/afsrpc.exp ${MT_LIBS};; \
150 ${SHLIB_LINKER} -h ${LIBAFSRPC} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \
152 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \
155 rx_event.o: ${RX}/rx_event.c
158 rx_user.o: ${RX}/rx_user.c
161 rx_pthread.o: ${RX}/rx_pthread.c
167 rx_conncache.o: ${RX}/rx_conncache.c
170 rx_null.o: ${RX}/rx_null.c
173 rx_globals.o: ${RX}/rx_globals.c
176 rx_getaddr.o: ${RX}/rx_getaddr.c
179 rx_misc.o: ${RX}/rx_misc.c
182 rx_packet.o: ${RX}/rx_packet.c
185 rx_rdwr.o: ${RX}/rx_rdwr.c
188 rx_trace.o: ${RX}/rx_trace.c
191 rx_multi.o: ${RX}/rx_multi.c
194 rxkad_client.o: ${RXKAD}/rxkad_client.c
197 rxkad_server.o: ${RXKAD}/rxkad_server.c
200 rxkad_common.o: ${RXKAD}/rxkad_common.c
203 ticket.o: ${RXKAD}/ticket.c
206 ticket5.o: ${RXKAD}/ticket5.c
209 crc.o: ${RXKAD}/crc.c
212 md4.o: ${RXKAD}/md4.c
215 md5.o: ${RXKAD}/md5.c
218 fcrypt.o: ${RXKAD}/domestic/fcrypt.c
221 crypt_conn.o: ${RXKAD}/domestic/crypt_conn.c
224 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
230 xdr_int32.o: ${RX}/xdr_int32.c
233 xdr_int64.o: ${RX}/xdr_int64.c
236 xdr_array.o: ${RX}/xdr_array.c
239 xdr_arrayn.o: ${RX}/xdr_arrayn.c
242 xdr_float.o: ${RX}/xdr_float.c
245 xdr_mem.o: ${RX}/xdr_mem.c
248 xdr_rec.o: ${RX}/xdr_rec.c
251 xdr_refernce.o: ${RX}/xdr_refernce.c
254 xdr_rx.o: ${RX}/xdr_rx.c
257 xdr_update.o: ${RX}/xdr_update.c
260 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
263 # Note that the special case statement for compiling des.c is present
264 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
265 # the problem is that linking the pthread fileserver fails with messages
268 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
269 # Please contact your HP Support representative
270 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
271 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
272 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
273 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
275 # pxdb32: internal error. File won't be debuggable (still a valid executable)
276 # *** Error exit code 10
278 # The problematic version of pxdb is:
280 # $ what /opt/langtools/bin/pxdb32
281 # /opt/langtools/bin/pxdb32:
282 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
284 # The problem occurs when -g and -O are both used when compiling des.c.
285 # The simplest way to work around the problem is to leave out either -g or -O.
286 # Since des.c is relatively stable I've chosen to eliminate -g rather
287 # than take any hit in performance.
291 case ${SYS_NAME} in \
293 set X `echo ${CCRULE} | sed s/-g//`; shift; \
301 crypt.o: ${DES}/crypt.c
304 cbc_encrypt.o: ${DES}/cbc_encrypt.c
307 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
310 cksum.o: ${DES}/cksum.c
313 new_rnd_key.o: ${DES}/new_rnd_key.c
316 key_sched.o: ${DES}/key_sched.c
319 debug_decl.o: ${DES}/debug_decl.c
322 quad_cksum.o: ${DES}/quad_cksum.c
325 key_parity.o: ${DES}/key_parity.c
328 weak_key.o: ${DES}/weak_key.c
331 strng_to_key.o: ${DES}/strng_to_key.c
334 misc.o: ${DES}/misc.c
337 util.o: ${DES}/util.c
340 error_msg.o: ${COMERR}/error_msg.c
343 et_name.o: ${COMERR}/et_name.c
346 com_err.o: ${COMERR}/com_err.c
349 casestrcpy.o: ${UTIL}/casestrcpy.c
352 assert.o: ${UTIL}/assert.c
355 base64.o: ${UTIL}/base64.c
358 fasttime.o: ${LWP}/fasttime.c
359 ${CCRULE} ${LWP}/fasttime.c
361 syscall.o: ${SYS}/syscall.s
362 case "$(SYS_NAME)" in \
363 sun4x_5* | sunx86_5*) \
364 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
365 as -o syscall.o syscall.ss; \
367 sgi_* | *_darwin_* ) \
368 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
370 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
371 ${AS} -o syscall.o syscall.i; \
372 $(RM) -f syscall.ss syscall.i;; \
376 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
377 as -o syscall.o syscall.ss; \
381 rxstat.o: ${RXSTAT}/rxstat.c
384 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
387 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
390 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
393 afsint.cs.o: ${FSINT}/afsint.cs.c
396 afsint.xdr.o: ${FSINT}/afsint.xdr.c
399 afscbint.cs.o: ${FSINT}/afscbint.cs.c
402 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
405 afsaux.o: ${FSINT}/afsaux.c
409 $(RM) -f *.o libafsrpc*
411 ${DESTDIR}${libdir}/${LIBAFSRPC}: ${LIBAFSRPC}
412 ${INSTALL} ${LIBAFSRPC} ${DESTDIR}${libdir}/${LIBAFSRPC}
414 ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}: ${DESTDIR}${libdir}/${LIBAFSRPC}
415 -ln -f -s ${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
417 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
418 ${INSTALL} ${LIBAFSRPC} ${TOP_LIBDIR}/${LIBAFSRPC}
420 ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}: ${TOP_LIBDIR}/${LIBAFSRPC}
421 -ln -f -s ${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
423 dest: ${DEST}/lib/${LIBAFSRPC} ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}