2 # This Makefile in in the public domain
6 include @TOP_OBJDIR@/src/config/Makefile.config
7 include @TOP_OBJDIR@/src/config/Makefile.pthread
10 INSTALL_DATA = @INSTALL_DATA@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14 XCFLAGS=@XCFLAGS@ @KRB5_CPPFLAGS@ -DALLOW_REGISTER
15 AKLIBS= ${LIBS} @KRB5_LDFLAGS@ @KRB5_LIBS@
16 AFSLIBS= ${TOP_LIBDIR}/libafsauthent.a \
17 ${TOP_LIBDIR}/libafsrpc.a \
18 ${TOP_LIBDIR}/libafshcrypto.a \
19 ${TOP_LIBDIR}/libcmd.a \
22 SRCS= aklog.c krb_util.c linked_list.c
23 OBJS= aklog.o krb_util.o linked_list.o
25 all: aklog asetkey klog
27 aklog: ${OBJS} ${AFSLIBS}
28 $(AFS_LDRULE) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
30 asetkey: asetkey.o ${AFSLIBS}
31 $(AFS_LDRULE) asetkey.o ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
33 klog: klog.o skipwrap.o ${AFSLIBS}
34 $(AFS_LDRULE) klog.o skipwrap.o \
35 ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
38 # Installation targets
40 install: aklog asetkey klog
41 ${INSTALL} -d ${DESTDIR}${bindir}
42 ${INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
43 ${INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
44 ${INSTALL} -d ${DESTDIR}${afssrvbindir}
45 ${INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey
47 dest: aklog asetkey klog
48 ${INSTALL} -d ${DEST}/bin
49 ${INSTALL_PROGRAM} aklog ${DEST}/bin/aklog
50 ${INSTALL_PROGRAM} klog ${DEST}/bin/klog.krb5
51 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
52 ${INSTALL_PROGRAM} asetkey ${DEST}/root.server/usr/afs/bin/asetkey
58 $(RM) -f *.o ${OBJS} aklog asetkey klog
60 include ../config/Makefile.version