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}
16 INSTALL=${SRCDIR}bin/install
20 -I${SRCDIR}include/afs \
21 -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 \
35 ${SRCDIR}include/afs/keys.h \
36 ${SRCDIR}include/afs/cellconfig.h \
37 ${SRCDIR}include/afs/cmd.h \
38 ${SRCDIR}include/afs/xstat_fs.h \
39 ${SRCDIR}include/afs/xstat_cm.h \
42 LIBS=${SRCDIR}lib/afs/libxstat_fs.a \
43 ${SRCDIR}lib/afs/libxstat_cm.a \
44 ${SRCDIR}lib/afs/libgtx.a \
45 ${SRCDIR}lib/afs/libafsint.a \
46 ${SRCDIR}lib/afs/libcmd.a \
47 ${SRCDIR}lib/librx.a \
48 ${SRCDIR}lib/liblwp.a \
49 ${SRCDIR}lib/afs/libsys.a \
50 ${SRCDIR}lib/afs/util.a
52 EXTRA_LIBS= ${TXLIBS} ${SRCDIR}lib/afs/libtermlib.a ${XLIBS}
54 include ../config/Makefile.version
60 afsmon-output.o: afsmon-output.c ${INCLS}
61 afsmon-win.o: afsmon-win.c ${INCLS}
62 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
64 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
65 ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
66 afsmon-output.o ${LIBS} ${EXTRA_LIBS}
68 afsmon-parselog: afsmon-parselog.o ${LIBS}
69 ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
72 #gtxtest.o: gtxtest.c ${INCLS}
73 #gtxtest: gtxtest.o ${LIBS}
74 # cc ${CFLAGS} -o gtxtest gtxtest.o ${LIBS} ${EXTRA_LIBS}
82 ${INSTALL} afsmonitor ${DESTDIR}bin
85 rm -f *.o afsmonitor AFS_component_version_number.c