88dc002175bbd66005378b1f601c92fd23d9a302
[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= \
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 LT_libs = $(LDFLAGS_hcrypto) $(LIB_hcrypto) $(LDFLAGS_roken) $(LIB_roken)
21
22 SRCS=   aklog.c krb_util.c linked_list.c
23 OBJS=   aklog.o krb_util.o linked_list.o
24
25 all: aklog asetkey klog
26
27 aklog:  ${OBJS} ${AFSLIBS}
28         $(LT_LDRULE_static) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LT_libs) ${MT_LIBS}
29
30 asetkey: asetkey.o ${AFSLIBS}
31         $(LT_LDRULE_static) asetkey.o ${AKLIBS} ${AFSLIBS} $(LT_libs) ${MT_LIBS}
32
33 klog:   klog.o skipwrap.o ${AFSLIBS}
34         $(LT_LDRULE_static) klog.o skipwrap.o \
35                 ${AKLIBS} ${AFSLIBS} $(LT_libs) ${MT_LIBS}
36
37 #
38 # Installation targets
39 #
40 install: aklog asetkey klog
41         ${INSTALL} -d ${DESTDIR}${bindir}
42         ${LT_INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
43         ${LT_INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
44         ${INSTALL} -d ${DESTDIR}${afssrvbindir}
45         ${LT_INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey
46
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
53
54 #
55 # Misc. targets
56 #
57 clean:
58         $(LT_CLEAN)
59         $(RM) -f *.o ${OBJS} aklog asetkey klog
60
61 include ../config/Makefile.version