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.
12 include ../config/Makefile.${SYS_NAME}
15 INCLUDES = -I${SRCDIR}include -I.. -I../rx
16 CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_SRCDIR}/config
17 SFLAGS=-P -I${SRCDIR}include
19 CCRULE = ${CC} ${CFLAGS} -c $?
45 AFS_component_version_number.o
111 if [ -f "../des/Makefile" ] ; then \
112 $(MAKE) install.lib ; \
117 install.lib: ${DESTDIR}lib/libafsrpc.a
120 ${DESTDIR}lib/libafsrpc.a: libafsrpc.a
121 ${INSTALL} libafsrpc.a ${DESTDIR}lib/libafsrpc.a
123 libafsrpc.a: ${LIBOBJS}
125 ${AR} -r libafsrpc.a ${LIBOBJS}
126 ${RANLIB} libafsrpc.a
127 case "${SYS_NAME}" in \
129 ${AR} r libafsrpc.a ../sys/afsl.exp;; \
132 rx_event.o: ${RX}/rx_event.c
135 rx_user.o: ${RX}/rx_user.c
138 rx_pthread.o: ${RX}/rx_pthread.c
144 rx_conncache.o: ${RX}/rx_conncache.c
147 rx_null.o: ${RX}/rx_null.c
150 rx_globals.o: ${RX}/rx_globals.c
153 rx_getaddr.o: ${RX}/rx_getaddr.c
156 rx_misc.o: ${RX}/rx_misc.c
159 rx_packet.o: ${RX}/rx_packet.c
162 rx_rdwr.o: ${RX}/rx_rdwr.c
165 rx_trace.o: ${RX}/rx_trace.c
168 rx_multi.o: ${RX}/rx_multi.c
171 rxkad_client.o: ${RXKAD}/rxkad_client.c
174 rxkad_server.o: ${RXKAD}/rxkad_server.c
177 rxkad_common.o: ${RXKAD}/rxkad_common.c
180 ticket.o: ${RXKAD}/ticket.c
183 fcrypt.o: ${RXKAD}/fcrypt.c
186 crypt_conn.o: ${RXKAD}/crypt_conn.c
189 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
195 xdr_int64.o: ${RX}/xdr_int64.c
198 xdr_array.o: ${RX}/xdr_array.c
201 xdr_arrayn.o: ${RX}/xdr_arrayn.c
204 xdr_float.o: ${RX}/xdr_float.c
207 xdr_mem.o: ${RX}/xdr_mem.c
210 xdr_rec.o: ${RX}/xdr_rec.c
213 xdr_refernce.o: ${RX}/xdr_refernce.c
216 xdr_rx.o: ${RX}/xdr_rx.c
219 xdr_update.o: ${RX}/xdr_update.c
222 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
225 # Note that the special case statement for compiling des.c is present
226 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
227 # the problem is that linking the pthread fileserver fails with messages
230 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
231 # Please contact your HP Support representative
232 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
233 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
234 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
235 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
237 # pxdb32: internal error. File won't be debuggable (still a valid executable)
238 # *** Error exit code 10
240 # The problematic version of pxdb is:
242 # $ what /opt/langtools/bin/pxdb32
243 # /opt/langtools/bin/pxdb32:
244 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
246 # The problem occurs when -g and -O are both used when compiling des.c.
247 # The simplest way to work around the problem is to leave out either -g or -O.
248 # Since des.c is relatively stable I've chosen to eliminate -g rather
249 # than take any hit in performance.
253 case ${SYS_NAME} in \
255 set X `echo ${CCRULE} | sed s/-g//`; shift; \
263 crypt.o: ${DES}/crypt.c
266 cbc_encrypt.o: ${DES}/cbc_encrypt.c
269 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
272 cksum.o: ${DES}/cksum.c
275 new_rnd_key.o: ${DES}/new_rnd_key.c
278 key_sched.o: ${DES}/key_sched.c
281 debug_decl.o: ${DES}/debug_decl.c
284 quad_cksum.o: ${DES}/quad_cksum.c
287 key_parity.o: ${DES}/key_parity.c
290 weak_key.o: ${DES}/weak_key.c
293 strng_to_key.o: ${DES}/strng_to_key.c
296 misco.o: ${DES}/misco.c
297 ${CCRULE} -DDONT_INCL_MAIN;
299 util.o: ${DES}/util.c
302 error_msg.o: ${COMERR}/error_msg.c
305 et_name.o: ${COMERR}/et_name.c
308 com_err.o: ${COMERR}/com_err.c
311 casestrcpy.o: ${UTIL}/casestrcpy.c
314 base64.o: ${UTIL}/base64.c
317 syscall.o: ${SYS}/syscall.s
318 case "$(SYS_NAME)" in \
320 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
321 as -o syscall.o syscall.ss; \
323 sgi_* | ppc_darwin* ) \
324 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
326 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
327 ${AS} -o syscall.o syscall.i; \
328 rm -f syscall.ss syscall.i;; \
332 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
333 as -o syscall.o syscall.ss; \
337 rxstat.o: ${RXSTAT}/rxstat.c
340 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
343 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
346 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
349 afsint.cs.o: ${FSINT}/afsint.cs.c
352 afsint.xdr.o: ${FSINT}/afsint.xdr.c
355 afscbint.cs.o: ${FSINT}/afscbint.cs.c
358 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
361 afsaux.o: ${FSINT}/afsaux.c
370 DESPAR =../../../DESLIB/dest/
372 echo "Installing libafsrpc stubs from ${DESPAR}:" `(csh -c 'cd ${DESPAR};pwd')`
373 ${RM} -f ${DESTDIR}lib/libafsrpc.a
374 ${INSTALL} ${DESPAR}lib/libafsrpc.a ${DESTDIR}lib/libafsrpc.a