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 MODULE_CFLAGS=@KRB5_CPPFLAGS@ -DALLOW_REGISTER
12 AKLIBS= ${LIBS} $(LDFLAGS_krb5) $(LIB_krb5)
13 AFSLIBS= ${TOP_LIBDIR}/libafsauthent.a \
14 ${TOP_LIBDIR}/libafsrpc.a \
15 ${TOP_LIBDIR}/libafshcrypto.a \
16 ${TOP_LIBDIR}/libcmd.a \
17 $(top_builddir)/src/opr/liboafs_opr.la \
20 SRCS= aklog.c krb_util.c linked_list.c
21 OBJS= aklog.o krb_util.o linked_list.o
23 all: aklog asetkey klog
25 aklog: ${OBJS} ${AFSLIBS}
26 $(LT_LDRULE_static) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
28 asetkey: asetkey.o ${AFSLIBS}
29 $(LT_LDRULE_static) asetkey.o ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
31 klog: klog.o skipwrap.o ${AFSLIBS}
32 $(LT_LDRULE_static) klog.o skipwrap.o \
33 ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
36 # Installation targets
38 install: aklog asetkey klog
39 ${INSTALL} -d ${DESTDIR}${bindir}
40 ${LT_INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
41 ${LT_INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
42 ${INSTALL} -d ${DESTDIR}${afssrvbindir}
43 ${LT_INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey
45 dest: aklog asetkey klog
46 ${INSTALL} -d ${DEST}/bin
47 ${INSTALL_PROGRAM} aklog ${DEST}/bin/aklog
48 ${INSTALL_PROGRAM} klog ${DEST}/bin/klog.krb5
49 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
50 ${INSTALL_PROGRAM} asetkey ${DEST}/root.server/usr/afs/bin/asetkey
57 $(RM) -f *.o ${OBJS} aklog asetkey klog
59 include ../config/Makefile.version