213ed29ba8bcd2adcf06890b9dce32db3d9e8c3d
[openafs.git] / src / afsmonitor / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 # Makefile for Afsmonitor, the AFS Performance monitoring tool
9 DEST=@DEST@
10 TOP_INCDIR=@TOP_INCDIR@
11 TOP_LIBDIR=@TOP_LIBDIR@
12 prefix=@prefix@
13 exec_prefix=@exec_prefix@
14 bindir=@bindir@
15 sbindir=@sbindir@
16 libexecdir=@libexecdir@
17 libdir=@libdir@
18 includedir=@includedir@
19 mandir=@mandir@
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@
27
28 SHELL = /bin/sh
29
30 include ../config/Makefile.${SYS_NAME}
31
32 CFLAGS=-g -I. \
33         -I${TOP_SRCDIR}/config \
34         -I${TOP_INCDIR} \
35         -I${TOP_INCDIR}/afs \
36         ${XCFLAGS}
37 LDFLAGS = ${XLDFLAGS}
38
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 \
53         afsmonitor.h \
54         afsmon-labels.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 \
63         ${TOP_LIBDIR}/util.a
64
65 EXTRA_LIBS=${TXLIBS} ${TOP_LIBDIR}/libtermlib.a  ${XLIBS}
66
67 all: afsmonitor
68
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
72
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}
76
77 afsmon-parselog:  afsmon-parselog.o ${LIBS}
78         ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
79                 ${LIBS} ${EXTRA_LIBS}
80
81 #
82 # Misc others
83 #
84 install:  ${DESTDIR}${bindir}/afsmonitor
85
86 clean:
87         $(RM) -f *.o afsmonitor AFS_component_version_number.c
88
89 include ../config/Makefile.version
90 ${DEST}/bin/afsmonitor: afsmonitor
91         ${INSTALL} $? $@
92
93 ${DESTDIR}${bindir}/afsmonitor: afsmonitor
94         ${INSTALL} $? $@
95
96
97 dest:  ${DEST}/bin/afsmonitor
98