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
8 # Makefile for Afsmonitor, the AFS Performance monitoring tool
11 TOP_SRCDIR=@TOP_SRCDIR@
12 SYS_NAME=@AFS_SYSNAME@
16 include ../config/Makefile.${SYS_NAME}
19 -I${TOP_SRCDIR}/config \
21 -I${SRCDIR}/include/afs \
22 -I${SRCDIR} ${XCFLAGS}
25 INCLS=${SRCDIR}/include/afs/gtxobjects.h \
26 ${SRCDIR}/include/afs/gtxwindows.h \
27 ${SRCDIR}/include/afs/gtxcurseswin.h \
28 ${SRCDIR}/include/afs/gtxdumbwin.h \
29 ${SRCDIR}/include/afs/gtxX11win.h \
30 ${SRCDIR}/include/afs/gtxobjects.h \
31 ${SRCDIR}/include/afs/gtxlightobj.h \
32 ${SRCDIR}/include/afs/gtxtextobj.h \
33 ${SRCDIR}/include/afs/gtxobjdict.h \
34 ${SRCDIR}/include/afs/keys.h \
35 ${SRCDIR}/include/afs/cellconfig.h \
36 ${SRCDIR}/include/afs/cmd.h \
37 ${SRCDIR}/include/afs/xstat_fs.h \
38 ${SRCDIR}/include/afs/xstat_cm.h \
41 LIBS=${SRCDIR}/lib/afs/libxstat_fs.a \
42 ${SRCDIR}/lib/afs/libxstat_cm.a \
43 ${SRCDIR}/lib/afs/libgtx.a \
44 ${SRCDIR}/lib/afs/libafsint.a \
45 ${SRCDIR}/lib/afs/libcmd.a \
46 ${SRCDIR}/lib/librx.a \
47 ${SRCDIR}/lib/liblwp.a \
48 ${SRCDIR}/lib/afs/libsys.a \
49 ${SRCDIR}/lib/afs/util.a
51 EXTRA_LIBS= ${TXLIBS} ${SRCDIR}/lib/afs/libtermlib.a ${XLIBS}
56 afsmon-output.o: afsmon-output.c ${INCLS}
57 afsmon-win.o: afsmon-win.c ${INCLS}
58 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
60 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
61 ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
62 afsmon-output.o ${LIBS} ${EXTRA_LIBS}
64 afsmon-parselog: afsmon-parselog.o ${LIBS}
65 ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
72 ${INSTALL} afsmonitor ${DESTDIR}/bin
75 $(RM) -f *.o afsmonitor AFS_component_version_number.c
77 include ../config/Makefile.version