Unix builds: Reference krb5 libs in standard way
[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
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_LIBDIR}/libopr.a \
18          ${TOP_LIBDIR}/util.a
19
20 SRCS=   aklog.c krb_util.c linked_list.c
21 OBJS=   aklog.o krb_util.o linked_list.o
22
23 all: aklog asetkey klog
24
25 aklog:  ${OBJS} ${AFSLIBS}
26         $(AFS_LDRULE) ${OBJS} ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
27
28 asetkey: asetkey.o ${AFSLIBS}
29         $(AFS_LDRULE) asetkey.o ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
30
31 klog:   klog.o skipwrap.o ${AFSLIBS}
32         $(AFS_LDRULE) klog.o skipwrap.o \
33                 ${AKLIBS} ${AFSLIBS} $(LIB_roken) ${MT_LIBS}
34
35 #
36 # Installation targets
37 #
38 install: aklog asetkey klog
39         ${INSTALL} -d ${DESTDIR}${bindir}
40         ${INSTALL_PROGRAM} aklog ${DESTDIR}${bindir}/aklog
41         ${INSTALL_PROGRAM} klog ${DESTDIR}${bindir}/klog.krb5
42         ${INSTALL} -d ${DESTDIR}${afssrvbindir}
43         ${INSTALL_PROGRAM} asetkey ${DESTDIR}${afssrvbindir}/asetkey 
44
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
51
52 #
53 # Misc. targets
54 #
55 clean:
56         $(RM) -f *.o ${OBJS} aklog asetkey klog
57
58 include ../config/Makefile.version