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 rxkad_client.o: ${RXKAD}/rxkad_client.c
178 rxkad_server.o: ${RXKAD}/rxkad_server.c
181 rxkad_common.o: ${RXKAD}/rxkad_common.c
184 ticket.o: ${RXKAD}/ticket.c
187 ticket5.o: ${RXKAD}/ticket5.c
190 crc.o: ${RXKAD}/crc.c
193 fcrypt.o: ${RXKAD}/fcrypt.c
196 crypt_conn.o: ${RXKAD}/crypt_conn.c
199 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
205 xdr_int32.o: ${RX}/xdr_int32.c
208 xdr_int64.o: ${RX}/xdr_int64.c
211 xdr_array.o: ${RX}/xdr_array.c
214 xdr_arrayn.o: ${RX}/xdr_arrayn.c
217 xdr_float.o: ${RX}/xdr_float.c
220 xdr_mem.o: ${RX}/xdr_mem.c
223 xdr_rec.o: ${RX}/xdr_rec.c
226 xdr_refernce.o: ${RX}/xdr_refernce.c
229 xdr_rx.o: ${RX}/xdr_rx.c
232 xdr_update.o: ${RX}/xdr_update.c
235 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
238 # Note that the special case statement for compiling des.c is present
239 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
240 # the problem is that linking the pthread fileserver fails with messages
243 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
244 # Please contact your HP Support representative
245 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
246 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
247 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
248 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
250 # pxdb32: internal error. File won't be debuggable (still a valid executable)
251 # *** Error exit code 10
253 # The problematic version of pxdb is:
255 # $ what /opt/langtools/bin/pxdb32
256 # /opt/langtools/bin/pxdb32:
257 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
259 # The problem occurs when -g and -O are both used when compiling des.c.
260 # The simplest way to work around the problem is to leave out either -g or -O.
261 # Since des.c is relatively stable I've chosen to eliminate -g rather
262 # than take any hit in performance.
266 case ${SYS_NAME} in \
268 set X `echo ${CCRULE} | sed s/-g//`; shift; \
276 crypt.o: ${DES}/crypt.c
279 cbc_encrypt.o: ${DES}/cbc_encrypt.c
282 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
285 cksum.o: ${DES}/cksum.c
288 new_rnd_key.o: ${DES}/new_rnd_key.c
291 key_sched.o: ${DES}/key_sched.c
294 debug_decl.o: ${DES}/debug_decl.c
297 quad_cksum.o: ${DES}/quad_cksum.c
300 key_parity.o: ${DES}/key_parity.c
303 weak_key.o: ${DES}/weak_key.c
306 strng_to_key.o: ${DES}/strng_to_key.c
309 misc.o: ${DES}/misc.c
312 util.o: ${DES}/util.c
315 error_msg.o: ${COMERR}/error_msg.c
318 et_name.o: ${COMERR}/et_name.c
321 com_err.o: ${COMERR}/com_err.c
324 casestrcpy.o: ${UTIL}/casestrcpy.c
327 base64.o: ${UTIL}/base64.c
330 syscall.o: ${SYS}/syscall.s
331 case "$(SYS_NAME)" in \
332 sun4x_5* | sunx86_5*) \
333 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
334 as -o syscall.o syscall.ss; \
336 sgi_* | ppc_darwin* ) \
337 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
339 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
340 ${AS} -o syscall.o syscall.i; \
341 $(RM) -f syscall.ss syscall.i;; \
345 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
346 as -o syscall.o syscall.ss; \
350 rxstat.o: ${RXSTAT}/rxstat.c
353 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
356 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
359 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
362 afsint.cs.o: ${FSINT}/afsint.cs.c
365 afsint.xdr.o: ${FSINT}/afsint.xdr.c
368 afscbint.cs.o: ${FSINT}/afscbint.cs.c
371 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
374 afsaux.o: ${FSINT}/afsaux.c
378 $(RM) -f *.o libafsrpc*
380 ${DESTDIR}${libdir}/libafsrpc.a: libafsrpc.a
383 ${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
386 dest: ${DEST}/lib/libafsrpc.a