debuggers.hg

view tools/xenstat/xentop/Makefile @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents bd78714b8594
children
line source
1 # Copyright (C) International Business Machines Corp., 2005
2 # Author: Josh Triplett <josh@kernel.org>
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 .PHONY: all install xentop
18 all install xentop:
19 else
21 CFLAGS += -DGCC_PRINTF -Wall -Werror -I$(XEN_LIBXENSTAT)
22 LDFLAGS += -L$(XEN_LIBXENSTAT)
23 LDLIBS += -lxenstat $(CURSES_LIBS) $(SOCKET_LIBS)
24 CFLAGS += -DHOST_$(XEN_OS)
26 .PHONY: all
27 all: xentop
29 .PHONY: install
30 install: xentop xentop.1
31 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
32 $(INSTALL_PROG) xentop $(DESTDIR)$(SBINDIR)/xentop
33 $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
34 $(INSTALL_DATA) xentop.1 $(DESTDIR)$(MAN1DIR)/xentop.1
36 endif
38 .PHONY: clean
39 clean:
40 rm -f xentop xentop.o $(DEPS)
42 -include $(DEPS)