macos: delegate sock_* calls to bkg daemons
[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 KCLIBS = \
21          $(top_builddir)/src/auth/liboafs_auth.la \
22          $(top_builddir)/src/cmd/liboafs_cmd.la \
23          $(top_builddir)/src/opr/liboafs_opr.la
24 LT_libs = $(LDFLAGS_hcrypto) $(LIB_hcrypto) $(LDFLAGS_roken) $(LIB_roken)
25
26 SRCS=   aklog.c krb_util.c linked_list.c
27 OBJS=   aklog.o krb_util.o linked_list.o
28
29 all: aklog asetkey klog akeyconvert
30
31 aklog:  ${OBJS} ${AFSLIBS}
32         $(LT_LDRULE_static) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LT_libs) ${MT_LIBS}
33
34 asetkey: asetkey.o ${AFSLIBS}
35         $(LT_LDRULE_static) asetkey.o ${AKLIBS} ${AFSLIBS} $(LT_libs) ${MT_LIBS}
36
37 akeyconvert: akeyconvert.o ${KCLIBS}
38         $(LT_LDRULE_static) akeyconvert.o ${AKLIBS} ${KCLIBS} \
39                 $(LT_libs) ${MT_LIBS}
40
41 klog:   klog.o skipwrap.o ${AFSLIBS}
42         $(LT_LDRULE_static) klog.o skipwrap.o \
43                 ${AKLIBS} ${AFSLIBS} $(LT_libs) ${MT_LIBS}
44
45 #
46 # Installation targets
47 #
48 install: aklog asetkey klog
49         ${INSTALL} -d ${DESTDIR}${bindir}
50         ${LT_INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
51         ${LT_INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
52         ${INSTALL} -d ${DESTDIR}${afssrvbindir}
53         ${LT_INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey
54         ${LT_INSTALL_PROGRAM} akeyconvert ${DESTDIR}${afssrvbindir}/akeyconvert
55
56 dest: aklog asetkey klog
57         ${INSTALL} -d ${DEST}/bin
58         ${INSTALL_PROGRAM} aklog ${DEST}/bin/aklog
59         ${INSTALL_PROGRAM} klog ${DEST}/bin/klog.krb5
60         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
61         ${INSTALL_PROGRAM} asetkey ${DEST}/root.server/usr/afs/bin/asetkey
62         ${INSTALL_PROGRAM} akeyconvert ${DEST}/root.server/usr/afs/bin/akeyconvert
63
64 #
65 # Misc. targets
66 #
67 clean:
68         $(LT_CLEAN)
69         $(RM) -f *.o ${OBJS} aklog asetkey klog akeyconvert
70
71 include ../config/Makefile.version