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.lwp
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
18 acfg_errors.o ktc_errors.o token.xdr.o token.o
19 KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
20 acfg_errors.o ktc_errors.o token.xdr.o token.o
23 ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
24 ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/libsys.a \
25 ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a
26 INCLS=cellconfig.h auth.h keys.h
28 UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
29 ktc.c authcon.c ktc_errors.c
31 all: ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a depinstall
33 depinstall: ${TOP_INCDIR}/afs/keys.h \
34 ${TOP_INCDIR}/afs/cellconfig.h \
35 ${TOP_INCDIR}/afs/auth.h \
36 ${TOP_INCDIR}/afs/ktc.h \
37 ${TOP_INCDIR}/afs/token.h \
42 ${TOP_INCDIR}/afs/token.h: token.h
45 generated: acfg_errors.c cellconfig.h ktc_errors.c auth.h
47 ${TOP_INCDIR}/afs/keys.h: keys.h
50 ${TOP_INCDIR}/afs/cellconfig.h: cellconfig.h
51 ${INSTALL_DATA} cellconfig.h $@
53 ${TOP_INCDIR}/afs/auth.h: auth.h
56 ${TOP_INCDIR}/afs/ktc.h: ktc.h
59 ${TOP_LIBDIR}/libauth.a: libauth.a
60 ${INSTALL_DATA} libauth.a $@
62 ${TOP_LIBDIR}/libauth.krb.a: libauth.krb.a
63 ${INSTALL_DATA} libauth.krb.a $@
65 cellconfig.o: cellconfig.c ${INCLS}
66 ktc.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
67 writeconfig.o: writeconfig.c ${INCLS}
68 authcon.o: authcon.c ${INCLS}
69 userok.o: userok.c ${INCLS}
70 cellconfig.o: cellconfig.c ${INCLS}
71 copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
72 setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
74 CFLAGS_ktc.krb.o = -DAFS_KERBEROS_ENV
75 ktc.krb.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
76 $(AFS_CCRULE) $(srcdir)/ktc.c
78 libauth.a: $(OBJS) AFS_component_version_number.o
80 $(AR) crv $@ $(OBJS) AFS_component_version_number.o
83 libauth.krb.a: $(KOBJS) AFS_component_version_number.o
85 $(AR) crv $@ $(KOBJS) AFS_component_version_number.o
88 copyauth: copyauth.o ${LIBS}
89 $(AFS_LDRULE) copyauth.o ${LIBS} ${XLIBS}
91 setkey: setkey.o ${LIBS}
92 $(AFS_LDRULE) setkey.o ${LIBS} ${XLIBS}
94 acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
95 $(RM) -f cellconfig.h acfg_errors.c
96 ${COMPILE_ET} -p ${srcdir} acfg_errors -h cellconfig
100 ktc_errors.c auth.h: ktc_errors.et auth.p.h
101 $(RM) -f auth.h ktc_errors.c
102 ${COMPILE_ET} -p ${srcdir} ktc_errors -h auth
104 Ktoken.xdr.c: token.xg
105 $(RXGEN) -A -x -k -c -o $@ $(srcdir)/token.xg
107 token.xdr.c: token.xg
108 $(RXGEN) -A -x -c -o $@ ${srcdir}/token.xg
111 $(RXGEN) -A -x -h -o $@ ${srcdir}/token.xg
116 install: libauth.a libauth.krb.a auth.h cellconfig.h
117 ${INSTALL} -d ${DESTDIR}${libdir}/afs
118 ${INSTALL} -d ${DESTDIR}${includedir}/afs
119 ${INSTALL_DATA} libauth.a ${DESTDIR}${libdir}/afs/libauth.a
120 ${INSTALL_DATA} libauth.krb.a ${DESTDIR}${libdir}/afs/libauth.krb.a
121 ${INSTALL_DATA} ${srcdir}/keys.h ${DESTDIR}${includedir}/afs/keys.h
122 ${INSTALL_DATA} cellconfig.h ${DESTDIR}${includedir}/afs/cellconfig.h
123 ${INSTALL_DATA} auth.h ${DESTDIR}${includedir}/afs/auth.h
124 ${INSTALL_DATA} ${srcdir}/ktc.h ${DESTDIR}${includedir}/afs/ktc.h
126 dest: libauth.a libauth.krb.a auth.h cellconfig.h
127 ${INSTALL} -d ${DEST}/lib/afs
128 ${INSTALL} -d ${DEST}/include/afs
129 ${INSTALL_DATA} libauth.a ${DEST}/lib/afs/libauth.a
130 ${INSTALL_DATA} libauth.krb.a ${DEST}/lib/afs/libauth.krb.a
131 ${INSTALL_DATA} ${srcdir}/keys.h ${DEST}/include/afs/keys.h
132 ${INSTALL_DATA} cellconfig.h ${DEST}/include/afs/cellconfig.h
133 ${INSTALL_DATA} auth.h ${DEST}/include/afs/auth.h
134 ${INSTALL_DATA} ${srcdir}/ktc.h ${DEST}/include/afs/ktc.h
143 $(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c \
144 ktc_errors.c token.h token.xdr.c core \
145 AFS_component_version_number.c
147 include ../config/Makefile.version