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
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.libtool
11 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 BASE_objs= cellconfig.lo keys.lo userok.lo writeconfig.lo authcon.lo \
14 acfg_errors.lo ktc_errors.lo netrestrict.lo token.xdr.lo token.lo \
17 LT_objs= ktc.lo $(BASE_objs)
18 KRB_objs = ktc.krb.lo $(BASE_objs)
20 LT_deps= $(top_builddir)/src/opr/liboafs_opr.la \
21 $(top_builddir)/src/comerr/liboafs_comerr.la \
22 $(top_builddir)/src/rx/liboafs_rx.la \
23 $(top_builddir)/src/rxkad/liboafs_rxkad.la \
24 $(top_builddir)/src/audit/liboafs_audit.la \
25 $(top_builddir)/src/util/liboafs_util.la \
26 $(top_builddir)/src/sys/liboafs_sys.la
28 LT_libs= $(LDFLAGS_roken) $(LIB_roken)
31 ${TOP_LIBDIR}/librxkad.a \
32 ${TOP_LIBDIR}/librx.a \
33 ${TOP_LIBDIR}/libsys.a \
34 ${TOP_LIBDIR}/liblwp.a \
37 INCLS=cellconfig.h auth.h keys.h internal.h token.h
39 all: liboafs_auth.la libauthent_auth.la \
40 ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a \
43 depinstall: ${TOP_INCDIR}/afs/keys.h \
44 ${TOP_INCDIR}/afs/cellconfig.h \
45 ${TOP_INCDIR}/afs/auth.h \
46 ${TOP_INCDIR}/afs/ktc.h \
47 ${TOP_INCDIR}/afs/token.h \
52 ${TOP_INCDIR}/afs/token.h: token.h
55 generated: acfg_errors.c cellconfig.h ktc_errors.c auth.h
57 ${TOP_INCDIR}/afs/keys.h: keys.h
60 ${TOP_INCDIR}/afs/cellconfig.h: cellconfig.h
61 ${INSTALL_DATA} cellconfig.h $@
63 ${TOP_INCDIR}/afs/auth.h: auth.h
66 ${TOP_INCDIR}/afs/ktc.h: ktc.h
69 ${TOP_LIBDIR}/libauth.a: libauth.a
70 ${INSTALL_DATA} libauth.a $@
72 ${TOP_LIBDIR}/libauth.krb.a: libauth.krb.a
73 ${INSTALL_DATA} libauth.krb.a $@
75 cellconfig.lo: cellconfig.c ${INCLS}
76 keys.lo: keys.c ${INCLS}
77 ktc.lo: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
78 writeconfig.lo: writeconfig.c ${INCLS}
79 authcon.lo: authcon.c ${INCLS}
80 userok.lo: userok.c ${INCLS}
81 cellconfig.lo: cellconfig.c ${INCLS}
82 realms.lo: realms.c ${INCLS}
83 netrestrict.lo: ${INCLS}
85 copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
86 setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
90 CFLAGS_ktc.krb.lo = -DAFS_KERBEROS_ENV
91 ktc.krb.lo: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
92 $(LTLWP_CCRULE) $(srcdir)/ktc.c
95 $(LT_LDLIB_lwp) $(LT_objs)
97 libauth.krb.a: $(KRB_objs)
98 $(LT_LDLIB_lwp) $(KRB_objs)
100 liboafs_auth.la: liboafs_auth.la.sym $(LT_objs) $(LT_deps)
101 $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
103 libauthent_auth.la: $(LT_objs)
104 $(LT_LDLIB_pic) $(LT_objs)
106 copyauth: copyauth.o ${LIBS}
107 $(AFS_LDRULE) copyauth.o ${LIBS} ${XLIBS}
109 setkey: setkey.o ${LIBS}
110 $(AFS_LDRULE) setkey.o ${LIBS} ${XLIBS}
112 acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
113 $(RM) -f cellconfig.h acfg_errors.c
114 ${COMPILE_ET} -p ${srcdir} acfg_errors -h cellconfig
116 ktc_errors.c auth.h: ktc_errors.et auth.p.h
117 $(RM) -f auth.h ktc_errors.c
118 ${COMPILE_ET} -p ${srcdir} ktc_errors -h auth
120 Ktoken.xdr.c: token.xg
121 $(RXGEN) -A -x -k -c -o $@ $(srcdir)/token.xg
123 token.xdr.c: token.xg
124 $(RXGEN) -A -x -c -o $@ ${srcdir}/token.xg
127 $(RXGEN) -A -x -h -o $@ ${srcdir}/token.xg
132 install: libauth.a libauth.krb.a auth.h cellconfig.h
133 ${INSTALL} -d ${DESTDIR}${libdir}/afs
134 ${INSTALL} -d ${DESTDIR}${includedir}/afs
135 ${INSTALL_DATA} libauth.a ${DESTDIR}${libdir}/afs/libauth.a
136 ${INSTALL_DATA} libauth.krb.a ${DESTDIR}${libdir}/afs/libauth.krb.a
137 ${INSTALL_DATA} ${srcdir}/keys.h ${DESTDIR}${includedir}/afs/keys.h
138 ${INSTALL_DATA} cellconfig.h ${DESTDIR}${includedir}/afs/cellconfig.h
139 ${INSTALL_DATA} auth.h ${DESTDIR}${includedir}/afs/auth.h
140 ${INSTALL_DATA} ${srcdir}/ktc.h ${DESTDIR}${includedir}/afs/ktc.h
142 dest: libauth.a libauth.krb.a auth.h cellconfig.h
143 ${INSTALL} -d ${DEST}/lib/afs
144 ${INSTALL} -d ${DEST}/include/afs
145 ${INSTALL_DATA} libauth.a ${DEST}/lib/afs/libauth.a
146 ${INSTALL_DATA} libauth.krb.a ${DEST}/lib/afs/libauth.krb.a
147 ${INSTALL_DATA} ${srcdir}/keys.h ${DEST}/include/afs/keys.h
148 ${INSTALL_DATA} cellconfig.h ${DEST}/include/afs/cellconfig.h
149 ${INSTALL_DATA} auth.h ${DEST}/include/afs/auth.h
150 ${INSTALL_DATA} ${srcdir}/ktc.h ${DEST}/include/afs/ktc.h
160 $(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c \
161 ktc_errors.c token.h token.xdr.c core Ktoken.xdr.c \
162 AFS_component_version_number.c
164 include ../config/Makefile.version