fs-sysname-output-syntax-compatibility-20010723
[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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13
14 include ../config/Makefile.${SYS_NAME}
15
16 INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include -I${DESTDIR}include/afs 
17
18 CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS} ${DBUG}
19
20 PROGRAMS=       unlog tokens tokens.krb kseal
21
22 INCLS=${SRCDIR}include/afs/auth.h ${SRCDIR}include/rx/rx.h \
23 ${SRCDIR}include/rx/xdr.h ${SRCDIR}include/des.h ${SRCDIR}include/rx/rxkad.h \
24 ${SRCDIR}include/afs/cellconfig.h
25
26 LIBRARIES=      ${SRCDIR}lib/afs/libauth.a \
27                 ${SRCDIR}lib/librxkad.a \
28                 ${SRCDIR}lib/libdes.a \
29                 ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/librx.a \
30                 ${SRCDIR}lib/afs/libsys.a \
31                 ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libcmd.a \
32                 ${SRCDIR}lib/afs/util.a
33 KLIBRARIES=     ${SRCDIR}lib/afs/libauth.krb.a \
34                 ${SRCDIR}lib/librxkad.a \
35                 ${SRCDIR}lib/libdes.a \
36                 ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/librx.a \
37                 ${SRCDIR}lib/afs/libsys.a \
38                 ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/libcmd.a \
39                 ${SRCDIR}lib/afs/util.a
40
41 include ../config/Makefile.version
42
43 # top-level options
44
45 all:    ${PROGRAMS}
46
47 install:        all
48         ${INSTALL} -s unlog tokens tokens.krb ${DESTDIR}bin
49         ${INSTALL} -s tokens tokens.krb ${DESTDIR}root.server/usr/afs/bin
50         ${INSTALL} -s kseal ${DESTDIR}etc
51
52 lint:   log.c passwd.c unlog.c testlog.c
53         lint  ${INCDIRS} log.c 
54         lint  ${INCDIRS} unlog.c 
55         lint  ${INCDIRS} passwd.c
56
57 clean:  
58         rm -f *.o log passwd unlog tokens kseal core AFS_component_version_number.c tokens.krb
59
60 beancount:
61         wc -l log.c passwd.c unlog.c 
62
63 # programs
64
65 kseal: kseal.o ${LIBRARIES}
66         ${CC} -o kseal kseal.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
67
68 log: log.o ${LIBRARIES}
69         ${CC} -o log log.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
70
71 unlog: unlog.o ${LIBRARIES}
72         ${CC} -o unlog unlog.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
73
74 passwd: passwd.o ${LIBRARIES}
75         ${CC} -o passwd passwd.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
76
77 tokens: tokens.o ${LIBRARIES}
78         ${CC} -o tokens tokens.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
79
80 tokens.krb: tokens.o ${KLIBRARIES}
81         ${CC} -o tokens.krb tokens.o ${KLIBRARIES} ${XLIBS} ${CFLAGS}
82
83 # objects
84
85 kseal.o:                kseal.c ${INCLS} AFS_component_version_number.c
86 unlog.o:                unlog.c AFS_component_version_number.c
87 tokens.o:               tokens.c ${SRCDIR}include/rx/xdr.h AFS_component_version_number.c
88 #log.o:         log.c ${SRCDIR}include/afs/comauth.h ${SRCDIR}include/r/xdr.h
89 #passwd.o:      passwd.c ${SRCDIR}include/afs/comauth.h ${SRCDIR}include/r/xdr.h ${SRCDIR}include/r/r.h
90
91 test:
92         cd test; $(MAKE)