debuggers.hg

view tools/xenmon/Makefile @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents bd78714b8594
children d3de6f484610
line source
1 # Copyright (C) HP Labs, Palo Alto and Fort Collins, 2005
2 # Author: Diwaker Gupta <diwaker.gupta@hp.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 CFLAGS += -Werror
17 CFLAGS += -I $(XEN_XC)
18 CFLAGS += $(CFLAGS_libxenctrl)
19 LDFLAGS += $(LDFLAGS_libxenctrl)
21 BIN = xentrace_setmask xenbaked
22 SCRIPTS = xenmon.py
24 .PHONY: all
25 all: build
27 .PHONY: build
28 build: $(BIN)
30 .PHONY: install
31 install: build
32 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
33 $(INSTALL_PROG) xenbaked $(DESTDIR)$(SBINDIR)/xenbaked
34 $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(SBINDIR)/xentrace_setmask
35 $(INSTALL_PROG) xenmon.py $(DESTDIR)$(SBINDIR)/xenmon.py
36 $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)
37 $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.xenmon
39 .PHONY: clean
40 clean:
41 rm -f $(BIN) $(DEPS)
44 %: %.c Makefile
45 $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
46 xentrace_%: %.c Makefile
47 $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
49 -include $(DEPS)