afs: Assert avc->lock is held in afs_IAS_once
[openafs.git] / src / log / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12
13 PROGRAMS=       unlog tokens tokens.krb
14
15 INCLS=${TOP_INCDIR}/afs/auth.h ${TOP_INCDIR}/rx/rx.h \
16 ${TOP_INCDIR}/rx/xdr.h ${TOP_INCDIR}/des.h ${TOP_INCDIR}/rx/rxkad.h \
17 ${TOP_INCDIR}/afs/cellconfig.h
18
19 LIBRARIES=${TOP_LIBDIR}/libauth.a \
20                 ${TOP_LIBDIR}/librxkad.a \
21                 ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/librx.a \
22                 ${TOP_LIBDIR}/libsys.a \
23                 ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \
24                 ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/libopr.a \
25                 ${TOP_LIBDIR}/libafsrfc3961.a \
26                 ${TOP_LIBDIR}/libafshcrypto_lwp.a
27
28 KLIBRARIES=${TOP_LIBDIR}/libauth.krb.a \
29                 ${TOP_LIBDIR}/librxkad.a \
30                 ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/librx.a \
31                 ${TOP_LIBDIR}/libsys.a \
32                 ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \
33                 ${TOP_LIBDIR}/util.a ${TOP_LIBDIR}/libopr.a \
34                 ${TOP_LIBDIR}/libafsrfc3961.a \
35                 ${TOP_LIBDIR}/libafshcrypto_lwp.a
36
37 #
38 # Main targets
39 #
40 all: unlog tokens tokens.krb pagsh pagsh.krb
41
42 #
43 # Build targets
44 #
45 kseal: kseal.o ${LIBRARIES}
46         $(AFS_LDRULE) kseal.o ${LIBRARIES} $(LIB_roken) ${XLIBS}
47
48 pagsh: pagsh.o ${LIBRARIES}
49         $(AFS_LDRULE) pagsh.o ${LIBRARIES} $(LIB_roken) ${XLIBS}
50
51 CFLAGS_pagsh.krb.o = -DAFS_KERBEROS_ENV
52 pagsh.krb.o: pagsh.c
53         $(AFS_CCRULE) $(srcdir)/pagsh.c
54
55 pagsh.krb: pagsh.krb.o ${KLIBRARIES}
56         $(AFS_LDRULE) pagsh.krb.o ${KLIBRARIES} $(LIB_roken) ${XLIBS}
57
58 unlog: unlog.o ${LIBRARIES}
59         $(AFS_LDRULE) unlog.o ${LIBRARIES} $(LIB_roken) ${XLIBS}
60
61 tokens: tokens.o ${LIBRARIES}
62         $(AFS_LDRULE) tokens.o ${LIBRARIES} $(LIB_roken) ${XLIBS}
63
64 tokens.krb: tokens.o ${KLIBRARIES}
65         $(AFS_LDRULE) tokens.o ${KLIBRARIES} $(LIB_roken) ${XLIBS}
66
67 kseal.o: kseal.c ${INCLS} AFS_component_version_number.c
68 unlog.o: unlog.c AFS_component_version_number.c
69 tokens.o: tokens.c ${TOP_INCDIR}/rx/xdr.h AFS_component_version_number.c
70
71 #
72 # Install targets
73 #
74 install: unlog tokens tokens.krb pagsh pagsh.krb
75         ${INSTALL} -d ${DESTDIR}${bindir}
76         ${INSTALL} -d ${DESTDIR}${afssrvbindir}
77         ${INSTALL} -d ${DESTDIR}${sbindir}
78         ${INSTALL_PROGRAM} unlog ${DESTDIR}${bindir}/unlog
79         ${INSTALL_PROGRAM} tokens ${DESTDIR}${bindir}/tokens
80         ${INSTALL_PROGRAM} tokens.krb ${DESTDIR}${bindir}/tokens.krb
81         ${INSTALL_PROGRAM} tokens ${DESTDIR}${afssrvbindir}/tokens
82         ${INSTALL_PROGRAM} tokens.krb ${DESTDIR}${afssrvbindir}/tokens.krb
83         ${INSTALL_PROGRAM} pagsh ${DESTDIR}${bindir}/pagsh
84         ${INSTALL_PROGRAM} pagsh.krb ${DESTDIR}${bindir}/pagsh.krb
85
86
87 dest: unlog tokens tokens.krb pagsh pagsh.krb
88         ${INSTALL} -d ${DEST}/bin
89         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
90         ${INSTALL} -d ${DEST}/etc
91         ${INSTALL_PROGRAM} unlog ${DEST}/bin/unlog
92         ${INSTALL_PROGRAM} tokens ${DEST}/bin/tokens
93         ${INSTALL_PROGRAM} tokens.krb ${DEST}/bin/tokens.krb
94         ${INSTALL_PROGRAM} tokens ${DEST}/root.server/usr/afs/bin/tokens
95         ${INSTALL_PROGRAM} tokens.krb ${DEST}/root.server/usr/afs/bin/tokens.krb
96         ${INSTALL_PROGRAM} pagsh ${DEST}/bin/pagsh
97         ${INSTALL_PROGRAM} pagsh.krb ${DEST}/bin/pagsh.krb
98 #
99 # Misc. targets
100 #
101 clean:
102         $(RM) -f *.o unlog tokens kseal pagsh pagsh.krb \
103                 core AFS_component_version_number.c tokens.krb
104
105 .PHONY: test
106 test:
107         cd test && $(MAKE)
108
109 include ../config/Makefile.version