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 MODULE_CFLAGS=@XCFLAGS@ @KRB5_CPPFLAGS@ -DALLOW_REGISTER
16 AKLIBS= ${LIBS} @KRB5_LDFLAGS@ @KRB5_LIBS@
17 AFSLIBS= ${TOP_LIBDIR}/libafsauthent.a \
18 ${TOP_LIBDIR}/libafsrpc.a \
19 ${TOP_LIBDIR}/libafshcrypto.a \
20 ${TOP_LIBDIR}/libcmd.a \
23 SRCS= aklog.c krb_util.c linked_list.c
24 OBJS= aklog.o krb_util.o linked_list.o
26 all: aklog asetkey klog
28 aklog: ${OBJS} ${AFSLIBS}
29 $(AFS_LDRULE) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
31 asetkey: asetkey.o ${AFSLIBS}
32 $(AFS_LDRULE) asetkey.o ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
34 klog: klog.o skipwrap.o ${AFSLIBS}
35 $(AFS_LDRULE) klog.o skipwrap.o \
36 ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
39 # Installation targets
41 install: aklog asetkey klog
42 ${INSTALL} -d ${DESTDIR}${bindir}
43 ${INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
44 ${INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
45 ${INSTALL} -d ${DESTDIR}${afssrvbindir}
46 ${INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey
48 dest: aklog asetkey klog
49 ${INSTALL} -d ${DEST}/bin
50 ${INSTALL_PROGRAM} aklog ${DEST}/bin/aklog
51 ${INSTALL_PROGRAM} klog ${DEST}/bin/klog.krb5
52 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
53 ${INSTALL_PROGRAM} asetkey ${DEST}/root.server/usr/afs/bin/asetkey
59 $(RM) -f *.o ${OBJS} aklog asetkey klog
61 include ../config/Makefile.version