ia64/xen-unstable

view tools/xenstat/xentop/Makefile @ 6338:59a6a0350158

Minor xenstat changes from Christian Limpach.
author mark.williamson@cl.cam.ac.uk
date Fri Aug 19 18:22:56 2005 +0000 (2005-08-19)
parents 173b918160e2
children f51fe43c5d1c 6783e59e1c45
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 -lcurses
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