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
14 include ../config/Makefile.${SYS_NAME}
18 -I${SRCDIR}include/afs \
19 -I${SRCDIR} ${XCFLAGS}
23 INCLS=${SRCDIR}include/afs/gtxobjects.h \
24 ${SRCDIR}include/afs/gtxwindows.h \
25 ${SRCDIR}include/afs/gtxcurseswin.h \
26 ${SRCDIR}include/afs/gtxdumbwin.h \
27 ${SRCDIR}include/afs/gtxX11win.h \
28 ${SRCDIR}include/afs/gtxobjects.h \
29 ${SRCDIR}include/afs/gtxlightobj.h \
30 ${SRCDIR}include/afs/gtxtextobj.h \
31 ${SRCDIR}include/afs/gtxobjdict.h \
33 ${SRCDIR}include/afs/keys.h \
34 ${SRCDIR}include/afs/cellconfig.h \
35 ${SRCDIR}include/afs/cmd.h \
36 ${SRCDIR}include/afs/xstat_fs.h \
37 ${SRCDIR}include/afs/xstat_cm.h \
40 LIBS=${SRCDIR}lib/afs/libxstat_fs.a \
41 ${SRCDIR}lib/afs/libxstat_cm.a \
42 ${SRCDIR}lib/afs/libgtx.a \
43 ${SRCDIR}lib/afs/libafsint.a \
44 ${SRCDIR}lib/afs/libcmd.a \
45 ${SRCDIR}lib/librx.a \
46 ${SRCDIR}lib/liblwp.a \
47 ${SRCDIR}lib/afs/libsys.a \
48 ${SRCDIR}lib/afs/util.a
50 EXTRA_LIBS= ${TXLIBS} ${SRCDIR}lib/afs/libtermlib.a ${XLIBS}
52 include ../config/Makefile.version
58 afsmon-output.o: afsmon-output.c ${INCLS}
59 afsmon-win.o: afsmon-win.c ${INCLS}
60 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
62 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
63 ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
64 afsmon-output.o ${LIBS} ${EXTRA_LIBS}
66 afsmon-parselog: afsmon-parselog.o ${LIBS}
67 ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
70 #gtxtest.o: gtxtest.c ${INCLS}
71 #gtxtest: gtxtest.o ${LIBS}
72 # cc ${CFLAGS} -o gtxtest gtxtest.o ${LIBS} ${EXTRA_LIBS}
80 ${INSTALL} afsmonitor ${DESTDIR}bin
83 rm -f *.o afsmonitor AFS_component_version_number.c