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 # Portions Copyright (c) 2003 Apple Computer, Inc.
15 # This is a pthread safe library containing rx, rxkad and des.
18 include @TOP_OBJDIR@/src/config/Makefile.config
21 INCLUDES=-I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
22 -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
23 CFLAGS = ${COMMON_CFLAGS} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} ${SHLIB_CFLAGS}
24 SFLAGS=-P -I${TOP_INCDIR}
27 CCRULE = ${CC} ${CFLAGS} -c $?
34 SYS = ${srcdir}/../sys
57 AFS_component_version_number.o
128 LIBAFSRPC = libafsrpc.${SHLIB_SUFFIX}.${LIBAFSRPCMAJOR}.${LIBAFSRPCMINOR}
130 all: ${TOP_LIBDIR}/${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
132 install: ${DESTDIR}${libdir}/${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
134 ${DEST}/lib/${LIBAFSRPC}: ${LIBAFSRPC}
135 ${INSTALL} ${LIBAFSRPC} ${DEST}/lib/${LIBAFSRPC}
137 ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}: ${DEST}/lib/${LIBAFSRPC}
138 -ln -f -s ${LIBAFSRPC} ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}
140 ${LIBAFSRPC}: ${LIBOBJS}
141 case ${SYS_NAME} in \
142 rs_aix4* | rs_aix5*) \
143 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} -bE:${srcdir}/afsrpc.exp ${MT_LIBS};; \
145 ${SHLIB_LINKER} -h ${LIBAFSRPC} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \
147 ${SHLIB_LINKER} -o ${LIBAFSRPC} ${LIBOBJS} ${MT_LIBS};; \
150 rx_event.o: ${RX}/rx_event.c
153 rx_user.o: ${RX}/rx_user.c
156 rx_pthread.o: ${RX}/rx_pthread.c
162 rx_conncache.o: ${RX}/rx_conncache.c
165 rx_null.o: ${RX}/rx_null.c
168 rx_globals.o: ${RX}/rx_globals.c
171 rx_getaddr.o: ${RX}/rx_getaddr.c
174 rx_misc.o: ${RX}/rx_misc.c
177 rx_packet.o: ${RX}/rx_packet.c
180 rx_rdwr.o: ${RX}/rx_rdwr.c
183 rx_trace.o: ${RX}/rx_trace.c
186 rx_multi.o: ${RX}/rx_multi.c
189 rxkad_client.o: ${RXKAD}/rxkad_client.c
192 rxkad_server.o: ${RXKAD}/rxkad_server.c
195 rxkad_common.o: ${RXKAD}/rxkad_common.c
198 ticket.o: ${RXKAD}/ticket.c
201 ticket5.o: ${RXKAD}/ticket5.c
204 crc.o: ${RXKAD}/crc.c
207 md4.o: ${RXKAD}/md4.c
210 md5.o: ${RXKAD}/md5.c
213 fcrypt.o: ${RXKAD}/domestic/fcrypt.c
216 crypt_conn.o: ${RXKAD}/domestic/crypt_conn.c
219 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
225 xdr_int32.o: ${RX}/xdr_int32.c
228 xdr_int64.o: ${RX}/xdr_int64.c
231 xdr_array.o: ${RX}/xdr_array.c
234 xdr_arrayn.o: ${RX}/xdr_arrayn.c
237 xdr_float.o: ${RX}/xdr_float.c
240 xdr_mem.o: ${RX}/xdr_mem.c
243 xdr_rec.o: ${RX}/xdr_rec.c
246 xdr_refernce.o: ${RX}/xdr_refernce.c
249 xdr_rx.o: ${RX}/xdr_rx.c
252 xdr_update.o: ${RX}/xdr_update.c
255 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
258 # Note that the special case statement for compiling des.c is present
259 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
260 # the problem is that linking the pthread fileserver fails with messages
263 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
264 # Please contact your HP Support representative
265 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
266 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
267 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
268 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
270 # pxdb32: internal error. File won't be debuggable (still a valid executable)
271 # *** Error exit code 10
273 # The problematic version of pxdb is:
275 # $ what /opt/langtools/bin/pxdb32
276 # /opt/langtools/bin/pxdb32:
277 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
279 # The problem occurs when -g and -O are both used when compiling des.c.
280 # The simplest way to work around the problem is to leave out either -g or -O.
281 # Since des.c is relatively stable I've chosen to eliminate -g rather
282 # than take any hit in performance.
286 case ${SYS_NAME} in \
288 set X `echo ${CCRULE} | sed s/-g//`; shift; \
296 crypt.o: ${DES}/crypt.c
299 cbc_encrypt.o: ${DES}/cbc_encrypt.c
302 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
305 cksum.o: ${DES}/cksum.c
308 new_rnd_key.o: ${DES}/new_rnd_key.c
311 key_sched.o: ${DES}/key_sched.c
314 debug_decl.o: ${DES}/debug_decl.c
317 quad_cksum.o: ${DES}/quad_cksum.c
320 key_parity.o: ${DES}/key_parity.c
323 weak_key.o: ${DES}/weak_key.c
326 strng_to_key.o: ${DES}/strng_to_key.c
329 misc.o: ${DES}/misc.c
332 util.o: ${DES}/util.c
335 error_msg.o: ${COMERR}/error_msg.c
338 et_name.o: ${COMERR}/et_name.c
341 com_err.o: ${COMERR}/com_err.c
344 casestrcpy.o: ${UTIL}/casestrcpy.c
347 assert.o: ${UTIL}/assert.c
350 base64.o: ${UTIL}/base64.c
353 syscall.o: ${SYS}/syscall.s
354 case "$(SYS_NAME)" in \
355 sun4x_5* | sunx86_5*) \
356 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
357 as -o syscall.o syscall.ss; \
359 sgi_* | *_darwin_* ) \
360 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
362 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
363 ${AS} -o syscall.o syscall.i; \
364 $(RM) -f syscall.ss syscall.i;; \
368 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
369 as -o syscall.o syscall.ss; \
373 rxstat.o: ${RXSTAT}/rxstat.c
376 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
379 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
382 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
385 afsint.cs.o: ${FSINT}/afsint.cs.c
388 afsint.xdr.o: ${FSINT}/afsint.xdr.c
391 afscbint.cs.o: ${FSINT}/afscbint.cs.c
394 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
397 afsaux.o: ${FSINT}/afsaux.c
401 $(RM) -f *.o libafsrpc*
403 ${DESTDIR}${libdir}/${LIBAFSRPC}: ${LIBAFSRPC}
404 ${INSTALL} ${LIBAFSRPC} ${DESTDIR}${libdir}/${LIBAFSRPC}
406 ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}: ${DESTDIR}${libdir}/${LIBAFSRPC}
407 -ln -f -s ${LIBAFSRPC} ${DESTDIR}${libdir}/libafsrpc.${SHLIB_SUFFIX}
409 ${TOP_LIBDIR}/${LIBAFSRPC}: ${LIBAFSRPC}
410 ${INSTALL} ${LIBAFSRPC} ${TOP_LIBDIR}/${LIBAFSRPC}
412 ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}: ${TOP_LIBDIR}/${LIBAFSRPC}
413 -ln -f -s ${LIBAFSRPC} ${TOP_LIBDIR}/libafsrpc.${SHLIB_SUFFIX}
415 dest: ${DEST}/lib/${LIBAFSRPC} ${DEST}/lib/libafsrpc.${SHLIB_SUFFIX}