Allow building with MIT krb5 and external roken
[openafs.git] / src / aklog / Makefile.in
1 #
2 # This Makefile in in the public domain
3 #
4
5 srcdir=@srcdir@
6 include @TOP_OBJDIR@/src/config/Makefile.config
7 include @TOP_OBJDIR@/src/config/Makefile.pthread
8
9
10 MODULE_CFLAGS=@KRB5_CPPFLAGS@ -DALLOW_REGISTER
11 MODULE_LDFLAGS=@KRB5_LDFLAGS@
12
13 AKLIBS= ${LIBS} $(LDFLAGS_krb5) $(LIB_krb5) @AKLOG_KRB5_LIBS@
14 AFSLIBS= ${TOP_LIBDIR}/libafshcrypto.a \
15          $(top_builddir)/src/ptserver/liboafs_prot.la \
16          $(top_builddir)/src/rxkad/liboafs_rxkad.la \
17          $(top_builddir)/src/cmd/liboafs_cmd.la \
18          $(top_builddir)/src/opr/liboafs_opr.la \
19          $(top_builddir)/src/util/liboafs_util.la
20
21 SRCS=   aklog.c krb_util.c linked_list.c
22 OBJS=   aklog.o krb_util.o linked_list.o
23
24 all: aklog asetkey klog
25
26 aklog:  ${OBJS} ${AFSLIBS}
27         $(LT_LDRULE_static) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
28
29 asetkey: asetkey.o ${AFSLIBS}
30         $(LT_LDRULE_static) asetkey.o ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
31
32 klog:   klog.o skipwrap.o ${AFSLIBS}
33         $(LT_LDRULE_static) klog.o skipwrap.o \
34                 ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
35
36 #
37 # Installation targets
38 #
39 install: aklog asetkey klog
40         ${INSTALL} -d ${DESTDIR}${bindir}
41         ${LT_INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
42         ${LT_INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
43         ${INSTALL} -d ${DESTDIR}${afssrvbindir}
44         ${LT_INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey
45
46 dest: aklog asetkey klog
47         ${INSTALL} -d ${DEST}/bin
48         ${INSTALL_PROGRAM} aklog ${DEST}/bin/aklog
49         ${INSTALL_PROGRAM} klog ${DEST}/bin/klog.krb5
50         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
51         ${INSTALL_PROGRAM} asetkey ${DEST}/root.server/usr/afs/bin/asetkey
52
53 #
54 # Misc. targets
55 #
56 clean:
57         $(LT_CLEAN)
58         $(RM) -f *.o ${OBJS} aklog asetkey klog
59
60 include ../config/Makefile.version