initial-objdir-support-20011017
[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 TOP_OBJDIR=@TOP_OBJDIR@
13 srcdir=@srcdir@
14 VPATH=${srcdir}
15 prefix=@prefix@
16 exec_prefix=@exec_prefix@
17 bindir=@bindir@
18 sbindir=@sbindir@
19 libexecdir=@libexecdir@
20 libdir=@libdir@
21 includedir=@includedir@
22 mandir=@mandir@
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@
30
31 SHELL = /bin/sh
32
33 include ../config/Makefile.${SYS_NAME}
34
35 CFLAGS=-g -I. \
36         -I${TOP_OBJDIR}/src/config \
37         -I${TOP_INCDIR} \
38         -I${TOP_INCDIR}/afs \
39         ${XCFLAGS}
40 LDFLAGS = ${XLDFLAGS}
41
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 \
56         afsmonitor.h \
57         afsmon-labels.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 \
66         ${TOP_LIBDIR}/util.a
67
68 EXTRA_LIBS=${TXLIBS} ${TOP_LIBDIR}/libtermlib.a  ${XLIBS}
69
70 all: afsmonitor
71
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
75
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}
79
80 afsmon-parselog:  afsmon-parselog.o ${LIBS}
81         ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
82                 ${LIBS} ${EXTRA_LIBS}
83
84 #
85 # Misc others
86 #
87 install:  ${DESTDIR}${bindir}/afsmonitor
88
89 clean:
90         $(RM) -f *.o afsmonitor AFS_component_version_number.c
91
92 include ../config/Makefile.version
93 ${DEST}/bin/afsmonitor: afsmonitor
94         ${INSTALL} $? $@
95
96 ${DESTDIR}${bindir}/afsmonitor: afsmonitor
97         ${INSTALL} $? $@
98
99
100 dest:  ${DEST}/bin/afsmonitor
101