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 TOP_INCDIR=@TOP_INCDIR@
12 TOP_LIBDIR=@TOP_LIBDIR@
13 TOP_OBJDIR=@TOP_OBJDIR@
17 exec_prefix=@exec_prefix@
20 libexecdir=@libexecdir@
22 includedir=@includedir@
24 afssrvbindir=@afssrvbindir@
25 afssrvsbindir=@afssrvsbindir@
26 afssrvlibexecdir=@afssrvlibexecdir@
27 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
28 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
29 TOP_SRCDIR=@TOP_SRCDIR@
30 SYS_NAME=@AFS_SYSNAME@
34 include ../config/Makefile.${SYS_NAME}
37 INCLUDES=-I. -I${srcdir} -I${TOP_INCDIR} -I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
38 -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
39 CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_OBJDIR}/src/config
40 SFLAGS=-P -I${TOP_INCDIR}
42 CCRULE = ${CC} ${CFLAGS} -c $?
49 SYS = ${srcdir}/../sys
68 AFS_component_version_number.o
135 all: ${TOP_LIBDIR}/libafsrpc.a
137 install: ${DESTDIR}${libdir}/libafsrpc.a
139 ${DEST}/lib/libafsrpc.a: libafsrpc.a
142 libafsrpc.a: ${LIBOBJS}
144 $(AR) crv $@ ${LIBOBJS}
146 case "${SYS_NAME}" in \
148 $(AR) crv $@ ../sys/afsl.exp;; \
151 rx_event.o: ${RX}/rx_event.c
154 rx_user.o: ${RX}/rx_user.c
157 rx_pthread.o: ${RX}/rx_pthread.c
163 rx_conncache.o: ${RX}/rx_conncache.c
166 rx_null.o: ${RX}/rx_null.c
169 rx_globals.o: ${RX}/rx_globals.c
172 rx_getaddr.o: ${RX}/rx_getaddr.c
175 rx_misc.o: ${RX}/rx_misc.c
178 rx_packet.o: ${RX}/rx_packet.c
181 rx_rdwr.o: ${RX}/rx_rdwr.c
184 rx_trace.o: ${RX}/rx_trace.c
187 rx_multi.o: ${RX}/rx_multi.c
190 rxkad_client.o: ${RXKAD}/rxkad_client.c
193 rxkad_server.o: ${RXKAD}/rxkad_server.c
196 rxkad_common.o: ${RXKAD}/rxkad_common.c
199 ticket.o: ${RXKAD}/ticket.c
202 fcrypt.o: ${RXKAD}/fcrypt.c
205 crypt_conn.o: ${RXKAD}/crypt_conn.c
208 AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
214 xdr_int64.o: ${RX}/xdr_int64.c
217 xdr_array.o: ${RX}/xdr_array.c
220 xdr_arrayn.o: ${RX}/xdr_arrayn.c
223 xdr_float.o: ${RX}/xdr_float.c
226 xdr_mem.o: ${RX}/xdr_mem.c
229 xdr_rec.o: ${RX}/xdr_rec.c
232 xdr_refernce.o: ${RX}/xdr_refernce.c
235 xdr_rx.o: ${RX}/xdr_rx.c
238 xdr_update.o: ${RX}/xdr_update.c
241 xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
244 # Note that the special case statement for compiling des.c is present
245 # simply to work around a compiler bug on HP-UX 11.0. The symptom of
246 # the problem is that linking the pthread fileserver fails with messages
249 # pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
250 # Please contact your HP Support representative
251 # pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
252 # pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
253 # pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
254 # pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
256 # pxdb32: internal error. File won't be debuggable (still a valid executable)
257 # *** Error exit code 10
259 # The problematic version of pxdb is:
261 # $ what /opt/langtools/bin/pxdb32
262 # /opt/langtools/bin/pxdb32:
263 # HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
265 # The problem occurs when -g and -O are both used when compiling des.c.
266 # The simplest way to work around the problem is to leave out either -g or -O.
267 # Since des.c is relatively stable I've chosen to eliminate -g rather
268 # than take any hit in performance.
272 case ${SYS_NAME} in \
274 set X `echo ${CCRULE} | sed s/-g//`; shift; \
282 crypt.o: ${DES}/crypt.c
285 cbc_encrypt.o: ${DES}/cbc_encrypt.c
288 pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
291 cksum.o: ${DES}/cksum.c
294 new_rnd_key.o: ${DES}/new_rnd_key.c
297 key_sched.o: ${DES}/key_sched.c
300 debug_decl.o: ${DES}/debug_decl.c
303 quad_cksum.o: ${DES}/quad_cksum.c
306 key_parity.o: ${DES}/key_parity.c
309 weak_key.o: ${DES}/weak_key.c
312 strng_to_key.o: ${DES}/strng_to_key.c
315 misc.o: ${DES}/misc.c
318 util.o: ${DES}/util.c
321 error_msg.o: ${COMERR}/error_msg.c
324 et_name.o: ${COMERR}/et_name.c
327 com_err.o: ${COMERR}/com_err.c
330 casestrcpy.o: ${UTIL}/casestrcpy.c
333 base64.o: ${UTIL}/base64.c
336 syscall.o: ${SYS}/syscall.s
337 case "$(SYS_NAME)" in \
339 /usr/ccs/lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
340 as -o syscall.o syscall.ss; \
342 sgi_* | ppc_darwin* ) \
343 ${CC} ${CFLAGS} -c ${SYS}/syscall.s;; \
345 ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
346 ${AS} -o syscall.o syscall.i; \
347 $(RM) -f syscall.ss syscall.i;; \
351 /lib/cpp ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
352 as -o syscall.o syscall.ss; \
356 rxstat.o: ${RXSTAT}/rxstat.c
359 rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
362 rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
365 rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
368 afsint.cs.o: ${FSINT}/afsint.cs.c
371 afsint.xdr.o: ${FSINT}/afsint.xdr.c
374 afscbint.cs.o: ${FSINT}/afscbint.cs.c
377 afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
380 afsaux.o: ${FSINT}/afsaux.c
384 $(RM) -f *.o libafsrpc*
385 ${DESTDIR}${libdir}/libafsrpc.a: libafsrpc.a
388 ${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
391 dest: ${DEST}/lib/libafsrpc.a