rx: Remove multi_End_Ignore
[openafs.git] / src / libafsrpc / Makefile.in
index d894f06..6a1c1bc 100644 (file)
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-# 
-# This software has been released under the terms of the IBM Public
-# License.  For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# This is a pthread safe library containing rx, rxkad and des.
-
-DEST=@DEST@
-TOP_INCDIR=@TOP_INCDIR@
-TOP_LIBDIR=@TOP_LIBDIR@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-libdir=@libdir@
-includedir=@includedir@
-mandir=@mandir@
-afssrvbindir=@afssrvbindir@
-afssrvsbindir=@afssrvsbindir@
-afssrvlibexecdir=@afssrvlibexecdir@
-COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
-RXGEN=${TOP_SRCDIR}/rxgen/rxgen
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
-
-SHELL = /bin/sh
-
-include ../config/Makefile.${SYS_NAME}
-
-CC=${MT_CC}
-INCLUDES=-I${TOP_INCDIR} -I.. -I../rx
-CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_SRCDIR}/config
-SFLAGS=-P -I${TOP_INCDIR}
-RX = ../rx
-CCRULE = ${CC} ${CFLAGS} -c $?
-RXKAD = ../rxkad
-RXSTAT = ../rxstat
-FSINT = ../fsint
-DES = ../des
-COMERR = ../comerr
-UTIL = ../util
-SYS = ../sys
-
-SYSOBJS =\
-       syscall.o
-
-UTILOBJS =\
-       casestrcpy.o \
-       base64.o
-
-COMERROBJS =\
-       error_msg.o \
-       et_name.o \
-       com_err.o
-
-XDROBJS =\
-       xdr_arrayn.o \
-       xdr_rx.o \
-       xdr_int64.o \
-       xdr_afsuuid.o \
-       AFS_component_version_number.o
-
-RXOBJS =\
-       rx_event.o \
-       rx_user.o \
-       rx_pthread.o \
-       rx.o \
-       rx_null.o \
-       rx_conncache.o \
-       rx_globals.o \
-       rx_getaddr.o \
-       rx_misc.o \
-       rx_packet.o \
-       rx_rdwr.o \
-       rx_trace.o \
-       rx_multi.o
-
-RXSTATOBJS =\
-       rxstat.o \
-       rxstat.ss.o \
-       rxstat.xdr.o \
-       rxstat.cs.o
-
-FSINTOBJS =\
-       afsint.cs.o \
-       afsint.xdr.o \
-       afscbint.cs.o \
-       afscbint.xdr.o \
-       afsaux.o
-
-RXKADOBJS =\
-       rxkad_client.o \
-       rxkad_server.o \
-       rxkad_common.o \
-       ticket.o \
-       fcrypt.o \
-       crypt_conn.o
-
-DESOBJS =\
-       des.o \
-       cbc_encrypt.o \
-       pcbc_encrypt.o \
-       cksum.o \
-       new_rnd_key.o \
-       key_sched.o \
-       debug_decl.o \
-       quad_cksum.o \
-       key_parity.o \
-       weak_key.o \
-       strng_to_key.o \
-       misc.o \
-       util.o
-
-CRYPT_OBJ = crypt.o
-
-LIBOBJS = \
-       ${RXOBJS} \
-       ${DESOBJS} \
-       ${XDROBJS} \
-       ${RXKADOBJS} \
-       ${COMERROBJS} \
-       ${UTILOBJS} \
-       ${SYSOBJS} \
-       ${CRYPT_OBJ} \
-       ${RXSTATOBJS} \
-       ${FSINTOBJS}
-
-all: ${TOP_LIBDIR}/libafsrpc.a
-
-install: ${DESTDIR}${libdir}/libafsrpc.a
-
-${DEST}/lib/libafsrpc.a: libafsrpc.a
-       ${INSTALL} $? $@
-
-libafsrpc.a: ${LIBOBJS}
-       $(RM) -f $@
-       $(AR) crv $@ ${LIBOBJS}
-       $(RANLIB) $@
-       case "${SYS_NAME}" in \
-           rs_aix*) \
-               $(AR) crv $@ ../sys/afsl.exp;; \
-        esac
-
-rx_event.o: ${RX}/rx_event.c
-       ${CCRULE}
-
-rx_user.o: ${RX}/rx_user.c
-       ${CCRULE}
-
-rx_pthread.o: ${RX}/rx_pthread.c
-       ${CCRULE}
-
-rx.o: ${RX}/rx.c
-       ${CCRULE}
-
-rx_conncache.o: ${RX}/rx_conncache.c
-       ${CCRULE}
-
-rx_null.o: ${RX}/rx_null.c
-       ${CCRULE}
-
-rx_globals.o: ${RX}/rx_globals.c
-       ${CCRULE}
-
-rx_getaddr.o: ${RX}/rx_getaddr.c
-       ${CCRULE}
-
-rx_misc.o: ${RX}/rx_misc.c
-       ${CCRULE}
-
-rx_packet.o: ${RX}/rx_packet.c
-       ${CCRULE}
-
-rx_rdwr.o: ${RX}/rx_rdwr.c
-       ${CCRULE}
-
-rx_trace.o: ${RX}/rx_trace.c
-       ${CCRULE}
-
-rx_multi.o: ${RX}/rx_multi.c
-       ${CCRULE}
-
-rxkad_client.o: ${RXKAD}/rxkad_client.c
-       ${CCRULE}
-
-rxkad_server.o: ${RXKAD}/rxkad_server.c
-       ${CCRULE}
-
-rxkad_common.o: ${RXKAD}/rxkad_common.c
-       ${CCRULE}
-
-ticket.o: ${RXKAD}/ticket.c
-       ${CCRULE}
-
-fcrypt.o: ${RXKAD}/fcrypt.c
-       ${CCRULE}
-
-crypt_conn.o: ${RXKAD}/crypt_conn.c
-       ${CCRULE}
-
-AFS_component_version_number.o: ${RX}/AFS_component_version_number.c
-       ${CCRULE}
-
-xdr.o: ${RX}/xdr.c
-       ${CCRULE}
-
-xdr_int64.o: ${RX}/xdr_int64.c
-       ${CCRULE}
-
-xdr_array.o: ${RX}/xdr_array.c
-       ${CCRULE}
-
-xdr_arrayn.o: ${RX}/xdr_arrayn.c
-       ${CCRULE}
-
-xdr_float.o: ${RX}/xdr_float.c
-       ${CCRULE}
-
-xdr_mem.o: ${RX}/xdr_mem.c
-       ${CCRULE}
-
-xdr_rec.o: ${RX}/xdr_rec.c
-       ${CCRULE}
-
-xdr_refernce.o: ${RX}/xdr_refernce.c
-       ${CCRULE}
-
-xdr_rx.o: ${RX}/xdr_rx.c
-       ${CCRULE}
-
-xdr_update.o: ${RX}/xdr_update.c
-       ${CCRULE}
-
-xdr_afsuuid.o: ${RX}/xdr_afsuuid.c
-       ${CCRULE}
-
-# Note that the special case statement for compiling des.c is present
-# simply to work around a compiler bug on HP-UX 11.0.  The symptom of
-# the problem is that linking the pthread fileserver fails with messages
-# such as
-#
-#   pxdb internal warning: cu[84]: SLT_SRCFILE[411] out of synch
-#   Please contact your HP Support representative
-#   pxdb internal warning: cu[84]: SLT_SRCFILE[442] out of synch
-#   pxdb internal warning: cu[84]: SLT_SRCFILE[450] out of synch
-#   pxdb internal warning: cu[84]: SLT_SRCFILE[529] out of synch
-#   pxdb internal warning: cu[84]: SLT_SRCFILE[544] out of synch
-#   ...
-#   pxdb32: internal error. File won't be debuggable (still a valid executable)
-#   *** Error exit code 10
+# Copyright (c) 2012 Your File System Inc.
+# All rights reserved.
 #
-# The problematic version of pxdb is:
-#
-#   $ what /opt/langtools/bin/pxdb32
-#   /opt/langtools/bin/pxdb32:
-#           HP92453-02 A.10.0A HP-UX SYMBOLIC DEBUGGER (PXDB) $Revision$
-#
-# The problem occurs when -g and -O are both used when compiling des.c.
-# The simplest way to work around the problem is to leave out either -g or -O.
-# Since des.c is relatively stable I've chosen to eliminate -g rather
-# than take any hit in performance.
-
-des.o: ${DES}/des.c
-       set -x; \
-       case ${SYS_NAME} in \
-       hp_ux11*) \
-               set X `echo ${CCRULE} | sed s/-g//`; shift; \
-               "$$@" \
-               ;; \
+# This file is released under the terms of the two clause BSD
+# License. For details, see the LICENSE file at the top level of
+# this distribution.
+
+srcdir=@srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.libtool
+
+# Increment these according to libtool's versioning rules (look them up!)
+# The library output looks like libafsrpc.so.<current - age>.<revision>
+LT_current = 3
+LT_revision = 0
+LT_age = 0
+
+LT_objs = \
+       $(top_builddir)/src/fsint/libfsint_pic.la \
+       $(top_builddir)/src/rx/librx_pic.la \
+       $(top_builddir)/src/rxkad/librxkad_pic.la \
+       $(top_builddir)/src/crypto/rfc3961/librfc3961_pic.la \
+       $(top_builddir)/src/comerr/libcomerr_pic.la \
+       $(top_builddir)/src/util/libafsrpc_util.la \
+       $(top_builddir)/src/rxstat/librxstat_pic.la \
+       $(top_builddir)/src/sys/libafsrpc_sys.la \
+       $(top_builddir)/src/lwp/liblwpcompat_pic.la \
+       $(top_builddir)/src/opr/libopr_pic.la \
+       @RXGK_LIBS_RPC@
+
+LT_libs = $(LIB_hcrypto) $(LIB_roken) $(MT_LIBS) $(RXGK_GSSAPI_LIBS)
+
+@SHARED_ONLY@SHARED_LIBS = libafsrpc.la
+
+all: $(SHARED_LIBS) libafsrpc.a libafsrpc_pic.la \
+       $(TOP_LIBDIR)/libafsrpc.a \
+       $(TOP_LIBDIR)/libafsrpc_pic.a
+
+# On AIX, we need to pull in the syscall import list from afsl.exp. Sadly
+# there doesn't seem to be any way to get libtool to remember this requirement
+# when it links the libafsrpc_sys.la convenience library.
+
+libafsrpc.la: libafsrpc.la.sym $(LT_objs) $(LT_deps) libafsrpc_pic.la libafsrpc.a
+       @set -e; set -x; case "$(SYS_NAME)" in \
+       rs_aix*) \
+           $(LT_LDLIB_shlib_only) -Wl,-bI:../sys/afsl.exp \
+               $(LT_objs) $(LT_deps) $(LT_libs) ;; \
        *) \
-               ${CCRULE} \
-               ;; \
+           $(LT_LDLIB_shlib_only) $(LT_objs) $(LT_deps) $(LT_libs);; \
        esac
 
-crypt.o: ${DES}/crypt.c
-       ${CCRULE}
-
-cbc_encrypt.o: ${DES}/cbc_encrypt.c
-       ${CCRULE}
-
-pcbc_encrypt.o: ${DES}/pcbc_encrypt.c
-       ${CCRULE}
-
-cksum.o: ${DES}/cksum.c
-       ${CCRULE}
-
-new_rnd_key.o: ${DES}/new_rnd_key.c
-       ${CCRULE}
-
-key_sched.o: ${DES}/key_sched.c
-       ${CCRULE}
-
-debug_decl.o: ${DES}/debug_decl.c
-       ${CCRULE}
-
-quad_cksum.o: ${DES}/quad_cksum.c
-       ${CCRULE}
-
-key_parity.o: ${DES}/key_parity.c
-       ${CCRULE}
+libafsrpc_pic.la: $(LT_objs)
+       $(LT_LDLIB_pic) $(LT_objs)
 
-weak_key.o: ${DES}/weak_key.c
-       ${CCRULE}
-
-strng_to_key.o: ${DES}/strng_to_key.c
-       ${CCRULE}
-
-misc.o: ${DES}/misc.c
-       ${CCRULE}
-
-util.o: ${DES}/util.c
-       ${CCRULE}
-
-error_msg.o: ${COMERR}/error_msg.c
-       ${CCRULE}
-
-et_name.o: ${COMERR}/et_name.c
-       ${CCRULE}
-
-com_err.o: ${COMERR}/com_err.c
-       ${CCRULE}
-
-casestrcpy.o: ${UTIL}/casestrcpy.c
-       ${CCRULE}
-
-base64.o: ${UTIL}/base64.c
-       ${CCRULE}
-
-syscall.o: ${SYS}/syscall.s
-       case "$(SYS_NAME)" in \
-            sun4x_5*) \
-               /usr/ccs/lib/cpp  ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
-               as -o syscall.o syscall.ss;             \
-               $(RM) syscall.ss;;                              \
-        sgi_* | ppc_darwin* ) \
-                ${CC} ${CFLAGS} -c ${SYS}/syscall.s;;          \
-        alpha_dux?? ) \
-               ${AS} -P ${CFLAGS} -D_NO_PROTO -DMACH -DOSF -nostdinc -traditional -DASSEMBLER ${SYS}/syscall.s; \
-               ${AS} -o syscall.o syscall.i; \
-               $(RM) -f syscall.ss syscall.i;; \
-        *fbsd* ) \
-               touch syscall.o ;; \
-        *) \
-               /lib/cpp  ${SFLAGS} ${SYS}/syscall.s syscall.ss; \
-               as -o syscall.o syscall.ss;             \
-               $(RM) syscall.ss;;                              \
+# AIX needs libafsrpc to also be linked against the syscall import list
+# On most platforms, libtool will make shared and static libraries at the
+# same time, but not on AIX, so we need separate rules.
+libafsrpc.a: $(LT_objs)
+       $(LT_LDLIB_static) $(LT_objs)
+       @set -e; set -x; case "${SYS_NAME}" in \
+           rs_aix*) \
+               $(AR) crv $@ ../sys/afsl.exp;; \
        esac
 
-rxstat.o: ${RXSTAT}/rxstat.c
-       ${CCRULE}
-
-rxstat.cs.o: ${RXSTAT}/rxstat.cs.c
-       ${CCRULE}
-
-rxstat.ss.o: ${RXSTAT}/rxstat.ss.c
-       ${CCRULE}
-
-rxstat.xdr.o: ${RXSTAT}/rxstat.xdr.c
-       ${CCRULE}
-
-afsint.cs.o: ${FSINT}/afsint.cs.c
-       ${CCRULE}
-
-afsint.xdr.o: ${FSINT}/afsint.xdr.c
-       ${CCRULE}
+${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
+       ${INSTALL_DATA} $? $@
 
-afscbint.cs.o: ${FSINT}/afscbint.cs.c
-       ${CCRULE}
+${TOP_LIBDIR}/libafsrpc_pic.a: libafsrpc_pic.la
+       ${INSTALL_DATA} .libs/libafsrpc_pic.a $@
 
-afscbint.xdr.o: ${FSINT}/afscbint.xdr.c
-       ${CCRULE}
+install: $(SHARED_LIBS) libafsrpc.a libafsrpc_pic.la
+       ${INSTALL} -d ${DESTDIR}${libdir}
+       @SHARED_ONLY@$(LT_INSTALL_DATA) libafsrpc.la $(DESTDIR)$(libdir)/libafsrpc.la
+       @SHARED_ONLY@$(RM) $(DESTDIR)$(libdir)/libafsrpc.la
+       $(INSTALL_DATA) libafsrpc.a $(DESTDIR)$(libdir)/libafsrpc.a
+       $(INSTALL_DATA) .libs/libafsrpc_pic.a $(DESTDIR)$(libdir)/libafsrpc_pic.a
 
-afsaux.o: ${FSINT}/afsaux.c
-       ${CCRULE}
+dest: $(SHARED_LIBS) libafsrpc.a
+       ${INSTALL} -d ${DEST}/lib
+       @SHARED_ONLY@${LT_INSTALL_DATA} libafsrpc.la ${DEST}/lib/libafsrpc.la
+       @SHARED_ONLY@${RM} ${DEST}/lib/libafsrpc.la
+       ${INSTALL_DATA} libafsrpc.a ${DEST}/lib/libafsrpc.a
+       ${INSTALL_DATA} .libs/libafsrpc_pic.a ${DEST}/lib/libafsrpc_pic.a
 
 clean:
-       $(RM) -f *.o libafsrpc*
-${DESTDIR}${libdir}/libafsrpc.a: libafsrpc.a
-       ${INSTALL} $? $@
-
-${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a
-       ${INSTALL} $? $@
-
-dest: ${DEST}/lib/libafsrpc.a
-
+       $(LT_CLEAN)
+       $(RM) -f *.o libafsrpc.a