1 # Copyright 2000, International Business Machines Corporation and others.
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
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
14 include ../config/Makefile.${SYS_NAME}
16 INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include -I${DESTDIR}include/afs
18 CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS} ${DBUG}
20 PROGRAMS= unlog tokens tokens.krb kseal
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
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
41 include ../config/Makefile.version
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
52 lint: log.c passwd.c unlog.c testlog.c
54 lint ${INCDIRS} unlog.c
55 lint ${INCDIRS} passwd.c
58 rm -f *.o log passwd unlog tokens kseal core AFS_component_version_number.c tokens.krb
61 wc -l log.c passwd.c unlog.c
65 kseal: kseal.o ${LIBRARIES}
66 ${CC} -o kseal kseal.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
68 log: log.o ${LIBRARIES}
69 ${CC} -o log log.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
71 unlog: unlog.o ${LIBRARIES}
72 ${CC} -o unlog unlog.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
74 passwd: passwd.o ${LIBRARIES}
75 ${CC} -o passwd passwd.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
77 tokens: tokens.o ${LIBRARIES}
78 ${CC} -o tokens tokens.o ${LIBRARIES} ${XLIBS} ${CFLAGS}
80 tokens.krb: tokens.o ${KLIBRARIES}
81 ${CC} -o tokens.krb tokens.o ${KLIBRARIES} ${XLIBS} ${CFLAGS}
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