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 # This is a pthread safe library containing rx, rxkad and des.
16 include @TOP_OBJDIR@/src/config/Makefile.config
19 INCLUDES=-I. -I${srcdir} -I${TOP_INCDIR} -I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
20 -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
21 CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_OBJDIR}/src/config ${SHLIB_CFLAGS}
22 SFLAGS=-P -I${TOP_INCDIR}
24 CCRULE = ${CC} ${CFLAGS} -c $?
31 SYS = ${srcdir}/../sys
53 AFS_component_version_number.o
120 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
122 all: ${TOP_LIBDIR}/${LIBAFSRPC}
124 install: ${DESTDIR}${libdir}/${LIBAFSRPC}
126 ${DEST}${libdir}/libafsrpc.${SHLIB_SUFFIX}: ${LIBAFSRPC}
127 ${INSTALL} ${LIBAFSRPC} ${DEST}${libdir}/${LIBAFSRPC}
128 -ln -f -s ${LIBAFSRPC} ${DEST}${libdir}/libafsrpc.${SHLIB_SUFFIX}
130 ${LIBAFSRPC}: ${LIBOBJS}
131 case ${SYS_NAME} in \
133 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} -bE:afsrpc.exp ${MT_LIBS};; \
135 ${SHLIB_LINKER} -h ${LIBAFSRPC} -o ${LIBAFSRPC} ${MT_LIBS};; \
137 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${MT_LIBS};; \
140 rx_event.o: ${RX}/rx_event.c
143 rx_user.o: ${RX}/rx_user.c
146 rx_pthread.o: ${RX}/rx_pthread.c
152 rx_conncache.o: ${RX}/rx_conncache.c
155 rx_null.o: ${RX}/rx_null.c
158 rx_globals.o: ${RX}/rx_globals.c
161 rx_getaddr.o: ${RX}/rx_getaddr.c
164 rx_misc.o: ${RX}/rx_misc.c
167 rx_packet.o: ${RX}/rx_packet.c
170 rx_rdwr.o: ${RX}/rx_rdwr.c
173 rx_trace.o: ${RX}/rx_trace.c
176 rx_multi.o: ${RX}/rx_multi.c
179 rxkad_client.o: ${RXKAD}/rxkad_client.c
182 rxkad_server.o: ${RXKAD}/rxkad_server.c
185 rxkad_common.o: ${RXKAD}/rxkad_common.c
188 ticket.o: ${RXKAD}/ticket.c
191 fcrypt.o: ${RXKAD}/fcrypt.c
194 crypt_conn.o: ${RXKAD}/crypt_conn.c
197 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
203 xdr_int32.o: ${RX}/xdr_int32.c
206 xdr_int64.o: ${RX}/xdr_int64.c
209 xdr_array.o: ${RX}/xdr_array.c
212 xdr_arrayn.o: ${RX}/xdr_arrayn.c
215 xdr_float.o: ${RX}/xdr_float.c
218 xdr_mem.o: ${RX}/xdr_mem.c
221 xdr_rec.o: ${RX}/xdr_rec.c
224 xdr_refernce.o: ${RX}/xdr_refernce.c
227 xdr_rx.o: ${RX}/xdr_rx.c
230 xdr_update.o: ${RX}/xdr_update.c
233 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
236 # Note that the special case statement for compiling des.c is present
237 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
238 # the problem is that linking the pthread fileserver fails with messages
241 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
242 # Please contact your HP Support representative
243 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
244 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
245 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
246 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
248 # pxdb32: internal error. File won't be debuggable (still a valid executable)
249 # *** Error exit code 10
251 # The problematic version of pxdb is:
253 # $ what /opt/langtools/bin/pxdb32
254 # /opt/langtools/bin/pxdb32:
255 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
257 # The problem occurs when -g and -O are both used when compiling des.c.
258 # The simplest way to work around the problem is to leave out either -g or -O.
259 # Since des.c is relatively stable I've chosen to eliminate -g rather
260 # than take any hit in performance.
264 case ${SYS_NAME} in \
266 set X `echo ${CCRULE} | sed s/-g//`; shift; \
274 crypt.o: ${DES}/crypt.c
277 cbc_encrypt.o: ${DES}/cbc_encrypt.c
280 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
283 cksum.o: ${DES}/cksum.c
286 new_rnd_key.o: ${DES}/new_rnd_key.c
289 key_sched.o: ${DES}/key_sched.c
292 debug_decl.o: ${DES}/debug_decl.c
295 quad_cksum.o: ${DES}/quad_cksum.c
298 key_parity.o: ${DES}/key_parity.c
301 weak_key.o: ${DES}/weak_key.c
304 strng_to_key.o: ${DES}/strng_to_key.c
307 misc.o: ${DES}/misc.c
310 util.o: ${DES}/util.c
313 error_msg.o: ${COMERR}/error_msg.c
316 et_name.o: ${COMERR}/et_name.c
319 com_err.o: ${COMERR}/com_err.c
322 casestrcpy.o: ${UTIL}/casestrcpy.c
325 base64.o: ${UTIL}/base64.c
328 syscall.o: ${SYS}/syscall.s
329 case "$(SYS_NAME)" in \
330 sun4x_5* | sunx86_5*) \
331 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
332 as -o syscall.o syscall.ss; \
334 sgi_* | ppc_darwin* ) \
335 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
337 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
338 ${AS} -o syscall.o syscall.i; \
339 $(RM) -f syscall.ss syscall.i;; \
343 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
344 as -o syscall.o syscall.ss; \
348 rxstat.o: ${RXSTAT}/rxstat.c
351 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
354 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
357 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
360 afsint.cs.o: ${FSINT}/afsint.cs.c
363 afsint.xdr.o: ${FSINT}/afsint.xdr.c
366 afscbint.cs.o: ${FSINT}/afscbint.cs.c
369 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
372 afsaux.o: ${FSINT}/afsaux.c
376 $(RM) -f *.o libafsrpc*
378 ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}: ${LIBAFSRPC}
379 ${INSTALL} ${LIBAFSRPC} ${DESTDIR}${libdir}/${LIBAFSRPC}
380 -ln -f -s ${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
382 ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}: ${LIBAFSRPC}
383 ${INSTALL} ${LIBAFSRPC} ${TOP_LIBDIR}/${LIBAFSRPC}
384 -ln -f -s ${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
386 dest: ${DEST}/lib/${LIBAFSRPC}