fs-sysname-output-syntax-compatibility-20010723
[openafs.git] / src / afsmonitor / Makefile
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
10 SHELL = /bin/sh
11 DESTDIR=DEST/
12 SRCDIR=DEST/
13 COMPONENT=afsmonitor
14 include ../config/Makefile.${SYS_NAME}
15
16 CFLAGS=-g -I. \
17         -I${TOP_SRCDIR}/config \
18         -I${SRCDIR}include \
19         -I${SRCDIR}include/afs \
20         -I${SRCDIR} ${XCFLAGS}
21 LDFLAGS = ${XLDFLAGS}
22 RPCINCLS=
23
24 INCLS=${SRCDIR}include/afs/gtxobjects.h \
25         ${SRCDIR}include/afs/gtxwindows.h \
26         ${SRCDIR}include/afs/gtxcurseswin.h \
27         ${SRCDIR}include/afs/gtxdumbwin.h \
28         ${SRCDIR}include/afs/gtxX11win.h \
29         ${SRCDIR}include/afs/gtxobjects.h \
30         ${SRCDIR}include/afs/gtxlightobj.h \
31         ${SRCDIR}include/afs/gtxtextobj.h \
32         ${SRCDIR}include/afs/gtxobjdict.h \
33         ${RPCINCLS} \
34         ${SRCDIR}include/afs/keys.h \
35         ${SRCDIR}include/afs/cellconfig.h \
36         ${SRCDIR}include/afs/cmd.h \
37         ${SRCDIR}include/afs/xstat_fs.h \
38         ${SRCDIR}include/afs/xstat_cm.h \
39         afsmonitor.h \
40         afsmon-labels.h
41 LIBS=${SRCDIR}lib/afs/libxstat_fs.a \
42         ${SRCDIR}lib/afs/libxstat_cm.a \
43         ${SRCDIR}lib/afs/libgtx.a \
44         ${SRCDIR}lib/afs/libafsint.a \
45         ${SRCDIR}lib/afs/libcmd.a \
46         ${SRCDIR}lib/librx.a \
47         ${SRCDIR}lib/liblwp.a \
48         ${SRCDIR}lib/afs/libsys.a \
49         ${SRCDIR}lib/afs/util.a 
50
51 EXTRA_LIBS= ${TXLIBS} ${SRCDIR}lib/afs/libtermlib.a  ${XLIBS} 
52
53 include ../config/Makefile.version
54
55 noversion: install
56
57 all: afsmonitor 
58
59 afsmon-output.o: afsmon-output.c ${INCLS}
60 afsmon-win.o: afsmon-win.c ${INCLS}
61 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
62
63 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
64         ${CC} ${LDFLAGS} -o afsmonitor afsmonitor.o afsmon-win.o \
65                 afsmon-output.o ${LIBS} ${EXTRA_LIBS}
66
67 afsmon-parselog:  afsmon-parselog.o ${LIBS}
68         ${CC} ${CFLAGS} -o afsmon-parselog afsmon-parselog.c \
69                 ${LIBS} ${EXTRA_LIBS}
70
71 #gtxtest.o:     gtxtest.c ${INCLS}
72 #gtxtest:       gtxtest.o ${LIBS}
73 #               cc ${CFLAGS} -o gtxtest gtxtest.o ${LIBS} ${EXTRA_LIBS} 
74
75 #
76 # Misc others
77 #
78 system: install
79
80 install: all
81         ${INSTALL} afsmonitor ${DESTDIR}bin
82
83 clean:
84         rm -f  *.o afsmonitor AFS_component_version_number.c
85