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