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