1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 # This is a pthread safe library containing rx, rxkad and des.
11 include @TOP_OBJDIR@/src/config/Makefile.config
15 CFLAGS = ${COMMON_CFLAGS} -I${srcdir}/../des -I../des -I../rxkad -I${srcdir}/../rxkad \
16 -I../fsint -DRXDEBUG ${MT_CFLAGS}
18 SFLAGS=-P -I${TOP_INCDIR}
20 CCRULE = ${CC} ${CFLAGS} -c $?
27 SYS = ${srcdir}/../sys
51 AFS_component_version_number.o
120 all: ${TOP_LIBDIR}/libafsrpc.a
122 install: ${DESTDIR}${libdir}/libafsrpc.a
124 ${DEST}/lib/libafsrpc.a: libafsrpc.a
127 libafsrpc.a: ${LIBOBJS}
129 $(AR) crv $@ ${LIBOBJS}
131 case "${SYS_NAME}" in \
133 $(AR) crv $@ ${srcdir}/../sys/afsl.exp;; \
136 rx_event.o: ${RX}/rx_event.c
139 rx_user.o: ${RX}/rx_user.c
142 rx_pthread.o: ${RX}/rx_pthread.c
148 rx_conncache.o: ${RX}/rx_conncache.c
151 rx_null.o: ${RX}/rx_null.c
154 rx_globals.o: ${RX}/rx_globals.c
157 rx_getaddr.o: ${RX}/rx_getaddr.c
160 rx_misc.o: ${RX}/rx_misc.c
163 rx_packet.o: ${RX}/rx_packet.c
166 rx_rdwr.o: ${RX}/rx_rdwr.c
169 rx_trace.o: ${RX}/rx_trace.c
172 rx_multi.o: ${RX}/rx_multi.c
175 ${RXOBJS}: ${RX}/rx.h ${RX}/rx_user.h ${RX}/rx_globals.h ${RX}/rx_clock.h ${RX}/rx_queue.h ${RX}/rx_event.h
177 rxkad_client.o: ${RXKAD}/rxkad_client.c
180 rxkad_server.o: ${RXKAD}/rxkad_server.c
183 rxkad_common.o: ${RXKAD}/rxkad_common.c
186 ticket.o: ${RXKAD}/ticket.c
189 ticket5.o: ${RXKAD}/ticket5.c
192 crc.o: ${RXKAD}/crc.c
195 fcrypt.o: ${RXKAD}/fcrypt.c
198 crypt_conn.o: ${RXKAD}/crypt_conn.c
201 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
207 xdr_int32.o: ${RX}/xdr_int32.c
210 xdr_int64.o: ${RX}/xdr_int64.c
213 xdr_array.o: ${RX}/xdr_array.c
216 xdr_arrayn.o: ${RX}/xdr_arrayn.c
219 xdr_float.o: ${RX}/xdr_float.c
222 xdr_mem.o: ${RX}/xdr_mem.c
225 xdr_rec.o: ${RX}/xdr_rec.c
228 xdr_refernce.o: ${RX}/xdr_refernce.c
231 xdr_rx.o: ${RX}/xdr_rx.c
234 xdr_update.o: ${RX}/xdr_update.c
237 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
240 # Note that the special case statement for compiling des.c is present
241 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
242 # the problem is that linking the pthread fileserver fails with messages
245 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
246 # Please contact your HP Support representative
247 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
248 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
249 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
250 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
252 # pxdb32: internal error. File won't be debuggable (still a valid executable)
253 # *** Error exit code 10
255 # The problematic version of pxdb is:
257 # $ what /opt/langtools/bin/pxdb32
258 # /opt/langtools/bin/pxdb32:
259 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
261 # The problem occurs when -g and -O are both used when compiling des.c.
262 # The simplest way to work around the problem is to leave out either -g or -O.
263 # Since des.c is relatively stable I've chosen to eliminate -g rather
264 # than take any hit in performance.
268 case ${SYS_NAME} in \
270 set X `echo ${CCRULE} | sed s/-g//`; shift; \
278 crypt.o: ${DES}/crypt.c
281 cbc_encrypt.o: ${DES}/cbc_encrypt.c
284 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
287 cksum.o: ${DES}/cksum.c
290 new_rnd_key.o: ${DES}/new_rnd_key.c
293 key_sched.o: ${DES}/key_sched.c
296 debug_decl.o: ${DES}/debug_decl.c
299 quad_cksum.o: ${DES}/quad_cksum.c
302 key_parity.o: ${DES}/key_parity.c
305 weak_key.o: ${DES}/weak_key.c
308 strng_to_key.o: ${DES}/strng_to_key.c
311 misc.o: ${DES}/misc.c
314 util.o: ${DES}/util.c
317 error_msg.o: ${COMERR}/error_msg.c
320 et_name.o: ${COMERR}/et_name.c
323 com_err.o: ${COMERR}/com_err.c
326 casestrcpy.o: ${UTIL}/casestrcpy.c
329 base64.o: ${UTIL}/base64.c
332 syscall.o: ${SYS}/syscall.s
333 case "$(SYS_NAME)" in \
334 sun4x_5* | sunx86_5*) \
335 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
336 as -o syscall.o syscall.ss; \
338 sgi_* | ppc_darwin* ) \
339 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
341 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
342 ${AS} -o syscall.o syscall.i; \
343 $(RM) -f syscall.ss syscall.i;; \
347 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
348 as -o syscall.o syscall.ss; \
352 rxstat.o: ${RXSTAT}/rxstat.c
355 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
358 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
361 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
364 afsint.cs.o: ${FSINT}/afsint.cs.c
367 afsint.xdr.o: ${FSINT}/afsint.xdr.c
370 afscbint.cs.o: ${FSINT}/afscbint.cs.c
373 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
376 afsaux.o: ${FSINT}/afsaux.c
380 $(RM) -f *.o libafsrpc*
382 ${DESTDIR}${libdir}/libafsrpc.a: libafsrpc.a
385 ${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
388 dest: ${DEST}/lib/libafsrpc.a