ia64/xen-unstable

view tools/xenstat/xentop/Makefile @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents 06d84bf87159
children a793b7a53605 b454a09cddb1
line source
1 # Copyright (C) International Business Machines Corp., 2005
2 # Author: Josh Triplett <josht@us.ibm.com>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; under version 2 of the License.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 XEN_ROOT=../../..
14 include $(XEN_ROOT)/tools/Rules.mk
16 ifneq ($(XENSTAT_XENTOP),y)
17 all install xentop:
18 else
20 INSTALL = install
21 INSTALL_PROG = $(INSTALL) -m0755 -D
22 INSTALL_DATA = $(INSTALL) -m0644 -D
24 prefix=/usr
25 mandir=$(prefix)/share/man
26 man1dir=$(mandir)/man1
27 sbindir=$(prefix)/sbin
29 CFLAGS += -DGCC_PRINTF -Wall -Werror -I$(XEN_LIBXENSTAT)
30 LDFLAGS += -L$(XEN_LIBXENSTAT)
31 LDLIBS += -lxenstat -lncurses
33 all: xentop
35 xentop: xentop.o
37 install: xentop xentop.1
38 $(INSTALL_PROG) xentop $(DESTDIR)$(sbindir)/xentop
39 $(INSTALL_DATA) xentop.1 $(DESTDIR)$(man1dir)/xentop.1
41 endif
43 clean:
44 rm -f xentop xentop.o