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 INCLUDES=-I. -I${srcdir} -I${TOP_INCDIR} -I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
16 -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
17 CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_OBJDIR}/src/config
18 SFLAGS=-P -I${TOP_INCDIR}
20 CCRULE = ${CC} ${CFLAGS} -c $?
27 SYS = ${srcdir}/../sys
46 AFS_component_version_number.o
113 all: ${TOP_LIBDIR}/libafsrpc.a
115 install: ${DESTDIR}${libdir}/libafsrpc.a
117 ${DEST}/lib/libafsrpc.a: libafsrpc.a
120 libafsrpc.a: ${LIBOBJS}
122 $(AR) crv $@ ${LIBOBJS}
124 case "${SYS_NAME}" in \
126 $(AR) crv $@ ${srcdir}/../sys/afsl.exp;; \
129 rx_event.o: ${RX}/rx_event.c
132 rx_user.o: ${RX}/rx_user.c
135 rx_pthread.o: ${RX}/rx_pthread.c
141 rx_conncache.o: ${RX}/rx_conncache.c
144 rx_null.o: ${RX}/rx_null.c
147 rx_globals.o: ${RX}/rx_globals.c
150 rx_getaddr.o: ${RX}/rx_getaddr.c
153 rx_misc.o: ${RX}/rx_misc.c
156 rx_packet.o: ${RX}/rx_packet.c
159 rx_rdwr.o: ${RX}/rx_rdwr.c
162 rx_trace.o: ${RX}/rx_trace.c
165 rx_multi.o: ${RX}/rx_multi.c
168 rxkad_client.o: ${RXKAD}/rxkad_client.c
171 rxkad_server.o: ${RXKAD}/rxkad_server.c
174 rxkad_common.o: ${RXKAD}/rxkad_common.c
177 ticket.o: ${RXKAD}/ticket.c
180 fcrypt.o: ${RXKAD}/fcrypt.c
183 crypt_conn.o: ${RXKAD}/crypt_conn.c
186 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
192 xdr_int64.o: ${RX}/xdr_int64.c
195 xdr_array.o: ${RX}/xdr_array.c
198 xdr_arrayn.o: ${RX}/xdr_arrayn.c
201 xdr_float.o: ${RX}/xdr_float.c
204 xdr_mem.o: ${RX}/xdr_mem.c
207 xdr_rec.o: ${RX}/xdr_rec.c
210 xdr_refernce.o: ${RX}/xdr_refernce.c
213 xdr_rx.o: ${RX}/xdr_rx.c
216 xdr_update.o: ${RX}/xdr_update.c
219 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
222 # Note that the special case statement for compiling des.c is present
223 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
224 # the problem is that linking the pthread fileserver fails with messages
227 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
228 # Please contact your HP Support representative
229 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
230 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
231 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
232 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
234 # pxdb32: internal error. File won't be debuggable (still a valid executable)
235 # *** Error exit code 10
237 # The problematic version of pxdb is:
239 # $ what /opt/langtools/bin/pxdb32
240 # /opt/langtools/bin/pxdb32:
241 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
243 # The problem occurs when -g and -O are both used when compiling des.c.
244 # The simplest way to work around the problem is to leave out either -g or -O.
245 # Since des.c is relatively stable I've chosen to eliminate -g rather
246 # than take any hit in performance.
250 case ${SYS_NAME} in \
252 set X `echo ${CCRULE} | sed s/-g//`; shift; \
260 crypt.o: ${DES}/crypt.c
263 cbc_encrypt.o: ${DES}/cbc_encrypt.c
266 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
269 cksum.o: ${DES}/cksum.c
272 new_rnd_key.o: ${DES}/new_rnd_key.c
275 key_sched.o: ${DES}/key_sched.c
278 debug_decl.o: ${DES}/debug_decl.c
281 quad_cksum.o: ${DES}/quad_cksum.c
284 key_parity.o: ${DES}/key_parity.c
287 weak_key.o: ${DES}/weak_key.c
290 strng_to_key.o: ${DES}/strng_to_key.c
293 misc.o: ${DES}/misc.c
296 util.o: ${DES}/util.c
299 error_msg.o: ${COMERR}/error_msg.c
302 et_name.o: ${COMERR}/et_name.c
305 com_err.o: ${COMERR}/com_err.c
308 casestrcpy.o: ${UTIL}/casestrcpy.c
311 base64.o: ${UTIL}/base64.c
314 syscall.o: ${SYS}/syscall.s
315 case "$(SYS_NAME)" in \
316 sun4x_5* | sunx86_5*) \
317 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
318 as -o syscall.o syscall.ss; \
320 sgi_* | ppc_darwin* ) \
321 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
323 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
324 ${AS} -o syscall.o syscall.i; \
325 $(RM) -f syscall.ss syscall.i;; \
329 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
330 as -o syscall.o syscall.ss; \
334 rxstat.o: ${RXSTAT}/rxstat.c
337 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
340 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
343 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
346 afsint.cs.o: ${FSINT}/afsint.cs.c
349 afsint.xdr.o: ${FSINT}/afsint.xdr.c
352 afscbint.cs.o: ${FSINT}/afscbint.cs.c
355 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
358 afsaux.o: ${FSINT}/afsaux.c
362 $(RM) -f *.o libafsrpc*
363 ${DESTDIR}${libdir}/libafsrpc.a: libafsrpc.a
366 ${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
369 dest: ${DEST}/lib/libafsrpc.a