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
121 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
123 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
125 install: ${DESTDIR}${libdir}/${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
127 ${DEST}/lib/${LIBAFSRPC}: ${LIBAFSRPC}
128 ${INSTALL} ${LIBAFSRPC} ${DEST}/lib/${LIBAFSRPC}
130 ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}: ${DEST}/lib/${LIBAFSRPC}
131 -ln -f -s ${LIBAFSRPC} ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}
133 ${LIBAFSRPC}: ${LIBOBJS}
134 case ${SYS_NAME} in \
135 rs_aix4* | rs_aix5*) \
136 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} -bE:afsrpc.exp ${MT_LIBS};; \
138 ${SHLIB_LINKER} -h ${LIBAFSRPC} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \
140 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \
143 rx_event.o: ${RX}/rx_event.c
146 rx_user.o: ${RX}/rx_user.c
149 rx_pthread.o: ${RX}/rx_pthread.c
155 rx_conncache.o: ${RX}/rx_conncache.c
158 rx_null.o: ${RX}/rx_null.c
161 rx_globals.o: ${RX}/rx_globals.c
164 rx_getaddr.o: ${RX}/rx_getaddr.c
167 rx_misc.o: ${RX}/rx_misc.c
170 rx_packet.o: ${RX}/rx_packet.c
173 rx_rdwr.o: ${RX}/rx_rdwr.c
176 rx_trace.o: ${RX}/rx_trace.c
179 rx_multi.o: ${RX}/rx_multi.c
182 rxkad_client.o: ${RXKAD}/rxkad_client.c
185 rxkad_server.o: ${RXKAD}/rxkad_server.c
188 rxkad_common.o: ${RXKAD}/rxkad_common.c
191 ticket.o: ${RXKAD}/ticket.c
194 ticket5.o: ${RXKAD}/ticket5.c
197 crc.o: ${RXKAD}/crc.c
200 bg-fcrypt.o: ${RXKAD}/bg-fcrypt.c
203 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
209 xdr_int32.o: ${RX}/xdr_int32.c
212 xdr_int64.o: ${RX}/xdr_int64.c
215 xdr_array.o: ${RX}/xdr_array.c
218 xdr_arrayn.o: ${RX}/xdr_arrayn.c
221 xdr_float.o: ${RX}/xdr_float.c
224 xdr_mem.o: ${RX}/xdr_mem.c
227 xdr_rec.o: ${RX}/xdr_rec.c
230 xdr_refernce.o: ${RX}/xdr_refernce.c
233 xdr_rx.o: ${RX}/xdr_rx.c
236 xdr_update.o: ${RX}/xdr_update.c
239 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
242 # Note that the special case statement for compiling des.c is present
243 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
244 # the problem is that linking the pthread fileserver fails with messages
247 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
248 # Please contact your HP Support representative
249 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
250 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
251 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
252 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
254 # pxdb32: internal error. File won't be debuggable (still a valid executable)
255 # *** Error exit code 10
257 # The problematic version of pxdb is:
259 # $ what /opt/langtools/bin/pxdb32
260 # /opt/langtools/bin/pxdb32:
261 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
263 # The problem occurs when -g and -O are both used when compiling des.c.
264 # The simplest way to work around the problem is to leave out either -g or -O.
265 # Since des.c is relatively stable I've chosen to eliminate -g rather
266 # than take any hit in performance.
270 case ${SYS_NAME} in \
272 set X `echo ${CCRULE} | sed s/-g//`; shift; \
280 crypt.o: ${DES}/crypt.c
283 cbc_encrypt.o: ${DES}/cbc_encrypt.c
286 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
289 cksum.o: ${DES}/cksum.c
292 new_rnd_key.o: ${DES}/new_rnd_key.c
295 key_sched.o: ${DES}/key_sched.c
298 debug_decl.o: ${DES}/debug_decl.c
301 quad_cksum.o: ${DES}/quad_cksum.c
304 key_parity.o: ${DES}/key_parity.c
307 weak_key.o: ${DES}/weak_key.c
310 strng_to_key.o: ${DES}/strng_to_key.c
313 misc.o: ${DES}/misc.c
316 util.o: ${DES}/util.c
319 error_msg.o: ${COMERR}/error_msg.c
322 et_name.o: ${COMERR}/et_name.c
325 com_err.o: ${COMERR}/com_err.c
328 casestrcpy.o: ${UTIL}/casestrcpy.c
331 base64.o: ${UTIL}/base64.c
334 syscall.o: ${SYS}/syscall.s
335 case "$(SYS_NAME)" in \
336 sun4x_5* | sunx86_5*) \
337 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
338 as -o syscall.o syscall.ss; \
340 sgi_* | ppc_darwin* ) \
341 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
343 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
344 ${AS} -o syscall.o syscall.i; \
345 $(RM) -f syscall.ss syscall.i;; \
349 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
350 as -o syscall.o syscall.ss; \
354 rxstat.o: ${RXSTAT}/rxstat.c
357 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
360 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
363 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
366 afsint.cs.o: ${FSINT}/afsint.cs.c
369 afsint.xdr.o: ${FSINT}/afsint.xdr.c
372 afscbint.cs.o: ${FSINT}/afscbint.cs.c
375 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
378 afsaux.o: ${FSINT}/afsaux.c
382 $(RM) -f *.o libafsrpc*
384 ${DESTDIR}${libdir}/${LIBAFSRPC}: ${LIBAFSRPC}
385 ${INSTALL} ${LIBAFSRPC} ${DESTDIR}${libdir}/${LIBAFSRPC}
387 ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}: ${DESTDIR}${libdir}/${LIBAFSRPC}
388 -ln -f -s ${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
390 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
391 ${INSTALL} ${LIBAFSRPC} ${TOP_LIBDIR}/${LIBAFSRPC}
393 ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}: ${TOP_LIBDIR}/${LIBAFSRPC}
394 -ln -f -s ${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
396 dest: ${DEST}/lib/${LIBAFSRPC} ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}