makefile-updates-20010828
[openafs.git] / src / scout / 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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 # Makefile for Scout, the AFS navigation and monitoring tool.
14 SHELL = /bin/sh
15
16 include ../config/Makefile.${SYS_NAME}
17
18 CFLAGS= ${DBUG} -I. \
19         -I${TOP_SRCDIR}/config \
20         -I${SRCDIR}/include \
21         -I${SRCDIR}/include/afs \
22         -I${SRCDIR} ${XCFLAGS}
23 LDFLAGS = ${XLDFLAGS}
24
25 #RPCINCLS=${SRCDIR}/include/lwp.h ${SRCDIR}/include/rx/rx.h bosint.h
26 RPCINCLS=
27
28 INCLS=${SRCDIR}/include/afs/gtxobjects.h \
29         ${SRCDIR}/include/afs/gtxwindows.h \
30         ${SRCDIR}/include/afs/gtxcurseswin.h \
31         ${SRCDIR}/include/afs/gtxdumbwin.h \
32         ${SRCDIR}/include/afs/gtxX11win.h \
33         ${SRCDIR}/include/afs/gtxobjects.h \
34         ${SRCDIR}/include/afs/gtxlightobj.h \
35         ${SRCDIR}/include/afs/gtxtextobj.h \
36         ${SRCDIR}/include/afs/gtxobjdict.h \
37         ${RPCINCLS} \
38         ${SRCDIR}/include/afs/keys.h \
39         ${SRCDIR}/include/afs/cellconfig.h \
40         ${SRCDIR}/include/afs/cmd.h
41  
42 LIBS=   ${SRCDIR}/lib/afs/libgtx.a \
43         ${SRCDIR}/lib/afs/libfsprobe.a \
44         ${SRCDIR}/lib/afs/libvolser.a \
45         ${SRCDIR}/lib/afs/libkauth.a \
46         ${SRCDIR}/lib/afs/libauth.a \
47         ${SRCDIR}/lib/librxkad.a \
48         ${SRCDIR}/lib/libdes.a \
49         ${SRCDIR}/lib/afs/libcmd.a \
50         ${SRCDIR}/lib/afs/vlib.a ${SRCDIR}/lib/afs/libacl.a \
51         ${SRCDIR}/lib/afs/libvldb.a \
52         ${SRCDIR}/lib/libubik.a \
53         ${SRCDIR}/lib/afs/libafsint.a \
54         ${SRCDIR}/lib/afs/libsys.a \
55         ${SRCDIR}/lib/librx.a \
56         ${SRCDIR}/lib/afs/libsys.a \
57         ${SRCDIR}/lib/afs/libaudit.a \
58         ${SRCDIR}/lib/afs/libcom_err.a \
59         ${SRCDIR}/lib/liblwp.a \
60         ${SRCDIR}/lib/afs/util.a
61
62 EXTRA_LIBS= ${TXLIBS} ${SRCDIR}/lib/afs/libtermlib.a  ${XLIBS}
63
64 include ../config/Makefile.version
65
66 all: scout
67
68 scout.o: scout.c ${INCLS} AFS_component_version_number.c
69
70 scout: scout.o $(LIBS)
71         ${CC} ${LDFLAGS} -o scout scout.o $(LIBS) ${EXTRA_LIBS}
72
73 #
74 # Misc others
75 #
76 system: install
77
78 install: all
79         ${INSTALL} scout ${DESTDIR}/bin
80
81 clean:
82         rm -f  *.o scout core AFS_component_version_number.c