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@
12 TOP_OBJDIR=@TOP_OBJDIR@
16 exec_prefix=@exec_prefix@
19 libexecdir=@libexecdir@
21 includedir=@includedir@
23 afssrvbindir=@afssrvbindir@
24 afssrvsbindir=@afssrvsbindir@
25 afssrvlibexecdir=@afssrvlibexecdir@
26 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
27 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
28 TOP_SRCDIR=@TOP_SRCDIR@
29 SYS_NAME=@AFS_SYSNAME@
33 include ../config/Makefile.${SYS_NAME}
36 -I${TOP_OBJDIR}/src/config \
42 INCLS=${TOP_INCDIR}/afs/gtxobjects.h \
43 ${TOP_INCDIR}/afs/gtxwindows.h \
44 ${TOP_INCDIR}/afs/gtxcurseswin.h \
45 ${TOP_INCDIR}/afs/gtxdumbwin.h \
46 ${TOP_INCDIR}/afs/gtxX11win.h \
47 ${TOP_INCDIR}/afs/gtxobjects.h \
48 ${TOP_INCDIR}/afs/gtxlightobj.h \
49 ${TOP_INCDIR}/afs/gtxtextobj.h \
50 ${TOP_INCDIR}/afs/gtxobjdict.h \
51 ${TOP_INCDIR}/afs/keys.h \
52 ${TOP_INCDIR}/afs/cellconfig.h \
53 ${TOP_INCDIR}/afs/cmd.h \
54 ${TOP_INCDIR}/afs/xstat_fs.h \
55 ${TOP_INCDIR}/afs/xstat_cm.h \
58 LIBS=${TOP_LIBDIR}/libxstat_fs.a \
59 ${TOP_LIBDIR}/libxstat_cm.a \
60 ${TOP_LIBDIR}/libgtx.a \
61 ${TOP_LIBDIR}/libafsint.a \
62 ${TOP_LIBDIR}/libcmd.a \
63 ${TOP_LIBDIR}/librx.a \
64 ${TOP_LIBDIR}/liblwp.a \
65 ${TOP_LIBDIR}/libsys.a \
68 EXTRA_LIBS=${TXLIBS} ${TOP_LIBDIR}/libtermlib.a ${XLIBS}
72 afsmon-output.o: afsmon-output.c ${INCLS}
73 afsmon-win.o: afsmon-win.c ${INCLS}
74 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
76 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
77 ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
78 afsmon-output.o ${LIBS} ${EXTRA_LIBS}
80 afsmon-parselog: afsmon-parselog.o ${LIBS}
81 ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
87 install: ${DESTDIR}${bindir}/afsmonitor
90 $(RM) -f *.o afsmonitor AFS_component_version_number.c
92 include ../config/Makefile.version
93 ${DEST}/bin/afsmonitor: afsmonitor
96 ${DESTDIR}${bindir}/afsmonitor: afsmonitor
100 dest: ${DEST}/bin/afsmonitor