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
10 TOP_INCDIR=@TOP_INCDIR@
11 TOP_LIBDIR=@TOP_LIBDIR@
13 exec_prefix=@exec_prefix@
16 libexecdir=@libexecdir@
18 includedir=@includedir@
20 afssrvbindir=@afssrvbindir@
21 afssrvsbindir=@afssrvsbindir@
22 afssrvlibexecdir=@afssrvlibexecdir@
23 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
24 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
25 TOP_SRCDIR=@TOP_SRCDIR@
26 SYS_NAME=@AFS_SYSNAME@
30 include ../config/Makefile.${SYS_NAME}
33 -I${TOP_SRCDIR}/config \
39 INCLS=${TOP_INCDIR}/afs/gtxobjects.h \
40 ${TOP_INCDIR}/afs/gtxwindows.h \
41 ${TOP_INCDIR}/afs/gtxcurseswin.h \
42 ${TOP_INCDIR}/afs/gtxdumbwin.h \
43 ${TOP_INCDIR}/afs/gtxX11win.h \
44 ${TOP_INCDIR}/afs/gtxobjects.h \
45 ${TOP_INCDIR}/afs/gtxlightobj.h \
46 ${TOP_INCDIR}/afs/gtxtextobj.h \
47 ${TOP_INCDIR}/afs/gtxobjdict.h \
48 ${TOP_INCDIR}/afs/keys.h \
49 ${TOP_INCDIR}/afs/cellconfig.h \
50 ${TOP_INCDIR}/afs/cmd.h \
51 ${TOP_INCDIR}/afs/xstat_fs.h \
52 ${TOP_INCDIR}/afs/xstat_cm.h \
55 LIBS=${TOP_LIBDIR}/libxstat_fs.a \
56 ${TOP_LIBDIR}/libxstat_cm.a \
57 ${TOP_LIBDIR}/libgtx.a \
58 ${TOP_LIBDIR}/libafsint.a \
59 ${TOP_LIBDIR}/libcmd.a \
60 ${TOP_LIBDIR}/librx.a \
61 ${TOP_LIBDIR}/liblwp.a \
62 ${TOP_LIBDIR}/libsys.a \
65 EXTRA_LIBS=${TXLIBS} ${TOP_LIBDIR}/libtermlib.a ${XLIBS}
69 afsmon-output.o: afsmon-output.c ${INCLS}
70 afsmon-win.o: afsmon-win.c ${INCLS}
71 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
73 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
74 ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
75 afsmon-output.o ${LIBS} ${EXTRA_LIBS}
77 afsmon-parselog: afsmon-parselog.o ${LIBS}
78 ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
84 install: ${DESTDIR}${bindir}/afsmonitor
87 $(RM) -f *.o afsmonitor AFS_component_version_number.c
89 include ../config/Makefile.version
90 ${DEST}/bin/afsmonitor: afsmonitor
93 ${DESTDIR}${bindir}/afsmonitor: afsmonitor
97 dest: ${DEST}/bin/afsmonitor