direct-io.hg

view tools/xenstat/xentop/Makefile @ 7477:5a7baecb1c70

Fix an issue for passing arguement from control panel to deivce model
for some arguemnt like 'localtime', 'isa', device model need an argument
"-localtime", instead of "-localtime 1"
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Oct 23 16:51:47 2005 +0100 (2005-10-23)
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