f65358350742e96afdf076670715c65d555aa410
[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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 INCLS=${TOP_INCDIR}/afs/gtxobjects.h \
18         ${TOP_INCDIR}/afs/gtxwindows.h \
19         ${TOP_INCDIR}/afs/gtxcurseswin.h \
20         ${TOP_INCDIR}/afs/gtxdumbwin.h \
21         ${TOP_INCDIR}/afs/gtxX11win.h \
22         ${TOP_INCDIR}/afs/gtxobjects.h \
23         ${TOP_INCDIR}/afs/gtxlightobj.h \
24         ${TOP_INCDIR}/afs/gtxtextobj.h \
25         ${TOP_INCDIR}/afs/gtxobjdict.h \
26         ${TOP_INCDIR}/afs/keys.h \
27         ${TOP_INCDIR}/afs/cellconfig.h \
28         ${TOP_INCDIR}/afs/cmd.h \
29         ${TOP_INCDIR}/afs/xstat_fs.h \
30         ${TOP_INCDIR}/afs/xstat_cm.h \
31         afsmonitor.h \
32         afsmon-labels.h
33 LIBS=${TOP_LIBDIR}/libxstat_fs.a \
34         ${TOP_LIBDIR}/libxstat_cm.a \
35         ${TOP_LIBDIR}/libgtx.a \
36         ${TOP_LIBDIR}/libafsint.a \
37         ${TOP_LIBDIR}/libcmd.a \
38         ${TOP_LIBDIR}/librx.a \
39         ${TOP_LIBDIR}/liblwp.a \
40         ${TOP_LIBDIR}/libsys.a \
41         ${TOP_LIBDIR}/util.a
42
43 EXTRA_LIBS=${TXLIBS} ${XLIBS}
44
45 all: afsmonitor
46
47 afsmon-output.o: afsmon-output.c ${INCLS}
48 afsmon-win.o: afsmon-win.c ${INCLS}
49 afsmonitor.o: afsmonitor.c ${INCLS} AFS_component_version_number.c
50
51 afsmonitor: afsmonitor.o afsmon-win.o afsmon-output.o ${LIBS}
52         $(AFS_LDRULE) afsmonitor.o afsmon-win.o afsmon-output.o \
53                 ${LIBS} ${EXTRA_LIBS}
54
55 afsmon-parselog:  afsmon-parselog.o ${LIBS}
56         $(AFS_LDRULE) afsmon-parselog.c ${LIBS} ${EXTRA_LIBS}
57
58 install: afsmonitor
59         ${INSTALL} -d ${DESTDIR}${bindir}
60         ${INSTALL_PROGRAM} afsmonitor ${DESTDIR}${bindir}/afsmonitor
61
62 dest: afsmonitor
63         ${INSTALL} -d ${DEST}/bin
64         ${INSTALL_PROGRAM} afsmonitor ${DEST}/bin/afsmonitor
65
66 clean:
67         $(RM) -f *.o afsmonitor AFS_component_version_number.c
68
69 include ../config/Makefile.version