1993b8fb07ceca2c94f38500c00cc851ac851ec4
[openafs.git] / src / libafsauthent / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 # This is a pthread safe library containing ubikclient, auth, kauth.
9
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 include @TOP_OBJDIR@/src/config/Makefile.libtool
13
14 # Increment these according to libtool's versioning rules (look them up!)
15 # The output library looks like libafsauthen.<current - age>.<revision>
16 LT_current = 2
17 LT_revision = 0
18 LT_age = 0
19
20 LT_objs = \
21         $(top_builddir)/src/audit/libaudit_pic.la \
22         $(top_builddir)/src/auth/libauth_pic.la   \
23         $(top_builddir)/src/kauth/libkauth_pic.la \
24         $(top_builddir)/src/ubik/libauthent_ubik.la \
25         $(top_builddir)/src/sys/libsys_pic.la \
26         $(top_builddir)/src/ptserver/libprot_pic.la \
27         $(top_builddir)/src/volser/libvolser_pic.la \
28         $(top_builddir)/src/vlserver/libvlserver_pic.la \
29         $(top_builddir)/src/opr/libopr_pic.la \
30         $(top_builddir)/src/util/libafsutil_pic.la
31
32 LT_deps = \
33         $(top_builddir)/src/libafsrpc/libafsrpc.la
34
35 LT_libs = $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) $(LIB_AFSDB) $(MT_LIBS)
36
37 all: libafsauthent.la libafsauthent_pic.la \
38         $(TOP_LIBDIR)/libafsauthent.a \
39         $(TOP_LIBDIR)/libafsauthent_pic.a
40
41 libafsauthent.la: libafsauthent.la.sym $(LT_objs) $(LT_deps) libafsauthent_pic.la
42         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
43
44 libafsauthent_pic.la: $(LT_objs)
45         $(LT_LDLIB_pic) $(LT_objs)
46
47 # On AIX, libtool can only produce one of shared and static libraries in a
48 # given invocation, so we need separate rules.
49 libafsauthent.a: $(LT_objs) libafsauthent.la
50         $(LT_LDLIB_static) $(LT_objs)
51
52 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
53         ${INSTALL_DATA} $? $@
54
55 ${TOP_LIBDIR}/libafsauthent_pic.a: libafsauthent_pic.la
56         ${INSTALL_DATA} .libs/libafsauthent_pic.a $@
57
58 clean:
59         $(LT_CLEAN)
60         $(RM) -f *.o libafsauthent.a
61
62 install: libafsauthent.la libafsauthent.a libafsauthent_pic.la
63         ${INSTALL} -d ${DESTDIR}${libdir}
64         ${LT_INSTALL_DATA} libafsauthent.la ${DESTDIR}${libdir}/libafsauthent.la
65         ${RM} ${DESTDIR}${libdir}/libafsauthent.la
66         ${INSTALL_DATA}  libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
67         ${INSTALL_DATA}  .libs/libafsauthent_pic.a ${DESTDIR}${libdir}/libafsauthent_pic.a
68
69 dest: libafsauthent.a
70         ${INSTALL} -d ${DEST}/lib
71         ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a