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
11 OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
12 acfg_errors.o ktc_errors.o
13 KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
14 acfg_errors.o ktc_errors.o
16 LIBS=libauth.a ${TOP_LIBDIR}/libsys.a \
17 ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
18 ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/libsys.a \
19 ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a
20 INCLS=cellconfig.h auth.h keys.h
22 UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
23 ktc.c authcon.c ktc_errors.c
25 all: ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a depinstall copyauth setkey
27 depinstall: ${TOP_INCDIR}/afs/keys.h \
28 ${TOP_INCDIR}/afs/cellconfig.h \
29 ${TOP_INCDIR}/afs/auth.h \
30 ${TOP_INCDIR}/afs/ktc.h
32 ${TOP_INCDIR}/afs/keys.h: keys.h
33 ${INSTALL_DATA} keys.h $@
35 ${TOP_INCDIR}/afs/cellconfig.h: cellconfig.h
36 ${INSTALL_DATA} cellconfig.h $@
38 ${TOP_INCDIR}/afs/auth.h: auth.h
39 ${INSTALL_DATA} auth.h $@
41 ${TOP_INCDIR}/afs/ktc.h: ktc.h
42 ${INSTALL_DATA} ktc.h $@
44 ${TOP_LIBDIR}/libauth.a: libauth.a
45 ${INSTALL_DATA} libauth.a $@
47 ${TOP_LIBDIR}/libauth.krb.a: libauth.krb.a
48 ${INSTALL_DATA} libauth.krb.a $@
50 cellconfig.o: cellconfig.c ${INCLS}
51 ktc.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
52 writeconfig.o: writeconfig.c ${INCLS}
53 authcon.o: authcon.c ${INCLS}
54 userok.o: userok.c ${INCLS}
55 cellconfig.o: cellconfig.c ${INCLS}
56 copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
57 setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
59 ktc.krb.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
60 ${CCOBJ} ${CFLAGS} -DAFS_KERBEROS_ENV -c ${srcdir}/ktc.c -o ktc.krb.o
62 libauth.a: $(OBJS) AFS_component_version_number.o
64 $(AR) crv $@ $(OBJS) AFS_component_version_number.o
67 libauth.krb.a: $(KOBJS) AFS_component_version_number.o
69 $(AR) crv $@ $(KOBJS) AFS_component_version_number.o
72 copyauth: copyauth.o ${LIBS}
73 $(CC) $(CFLAGS) -o copyauth copyauth.o ${LIBS} ${XLIBS}
75 setkey: setkey.o ${LIBS}
76 ${CC} $(CFLAGS) -o setkey setkey.o ${LIBS} ${XLIBS}
78 acfg_errors.o: acfg_errors.c
80 acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
81 $(RM) -f cellconfig.h acfg_errors.c
82 ${COMPILE_ET} -p ${srcdir} acfg_errors -h cellconfig
84 ktc_errors.o: ktc_errors.c
86 ktc_errors.c auth.h: ktc_errors.et auth.p.h
87 $(RM) -f auth.h ktc_errors.c
88 ${COMPILE_ET} -p ${srcdir} ktc_errors -h auth
93 install: copyauth libauth.a libauth.krb.a auth.h cellconfig.h
94 ${INSTALL} -d ${DESTDIR}${libdir}/afs
95 ${INSTALL} -d ${DESTDIR}${includedir}/afs
96 ${INSTALL_DATA} libauth.a ${DESTDIR}${libdir}/afs/libauth.a
97 ${INSTALL_DATA} libauth.krb.a ${DESTDIR}${libdir}/afs/libauth.krb.a
98 ${INSTALL_DATA} keys.h ${DESTDIR}${includedir}/afs/keys.h
99 ${INSTALL_DATA} cellconfig.h ${DESTDIR}${includedir}/afs/cellconfig.h
100 ${INSTALL_DATA} auth.h ${DESTDIR}${includedir}/afs/auth.h
101 ${INSTALL_DATA} ktc.h ${DESTDIR}${includedir}/afs/ktc.h
102 ${INSTALL_PROGRAM} copyauth ${DESTDIR}${sbindir}/copyauth
104 dest: copyauth libauth.a libauth.krb.a auth.h cellconfig.h
105 ${INSTALL} -d ${DEST}/lib/afs
106 ${INSTALL} -d ${DEST}/include/afs
107 ${INSTALL_DATA} libauth.a ${DEST}/lib/afs/libauth.a
108 ${INSTALL_DATA} libauth.krb.a ${DEST}/lib/afs/libauth.krb.a
109 ${INSTALL_DATA} keys.h ${DEST}/include/afs/keys.h
110 ${INSTALL_DATA} cellconfig.h ${DEST}/include/afs/cellconfig.h
111 ${INSTALL_DATA} auth.h ${DEST}/include/afs/auth.h
112 ${INSTALL_DATA} ktc.h ${DEST}/include/afs/ktc.h
113 ${INSTALL_PROGRAM} copyauth ${DEST}/etc/copyauth
122 $(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core \
123 AFS_component_version_number.c
125 include ../config/Makefile.version