debuggers.hg

annotate tools/xenmon/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 d3de6f484610
children
rev   line source
kaf24@7840 1 # Copyright (C) HP Labs, Palo Alto and Fort Collins, 2005
kaf24@7840 2 # Author: Diwaker Gupta <diwaker.gupta@hp.com>
kaf24@7840 3 #
kaf24@7840 4 # This program is free software; you can redistribute it and/or modify
kaf24@7840 5 # it under the terms of the GNU General Public License as published by
kaf24@7840 6 # the Free Software Foundation; under version 2 of the License.
kaf24@7840 7 #
kaf24@7840 8 # This program is distributed in the hope that it will be useful,
kaf24@7840 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
kaf24@7840 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kaf24@7840 11 # GNU General Public License for more details.
kaf24@7840 12
kfraser@11802 13 XEN_ROOT=../..
kfraser@11802 14 include $(XEN_ROOT)/tools/Rules.mk
kaf24@7840 15
kfraser@12090 16 CFLAGS += -Werror
kaf24@7840 17 CFLAGS += -I $(XEN_XC)
keir@16948 18 CFLAGS += $(CFLAGS_libxenctrl)
sstabellini@22018 19 LDLIBS += $(LDLIBS_libxenctrl)
kaf24@7840 20
kfraser@11178 21 BIN = xentrace_setmask xenbaked
kaf24@7840 22 SCRIPTS = xenmon.py
kaf24@7840 23
kaf24@9645 24 .PHONY: all
kaf24@7840 25 all: build
kaf24@7840 26
kaf24@9645 27 .PHONY: build
kaf24@7840 28 build: $(BIN)
kaf24@7840 29
kaf24@9645 30 .PHONY: install
kfraser@11178 31 install: build
keir@16828 32 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
keir@16828 33 $(INSTALL_PROG) xenbaked $(DESTDIR)$(SBINDIR)/xenbaked
keir@16828 34 $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(SBINDIR)/xentrace_setmask
keir@16828 35 $(INSTALL_PROG) xenmon.py $(DESTDIR)$(SBINDIR)/xenmon.py
keir@18282 36 $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)
keir@18282 37 $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.xenmon
kaf24@7840 38
kaf24@9645 39 .PHONY: clean
kaf24@7840 40 clean:
keir@19063 41 rm -f $(BIN) $(DEPS)
kaf24@7840 42
kaf24@7840 43
kaf24@7840 44 %: %.c Makefile
sstabellini@22018 45 $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
kfraser@11178 46 xentrace_%: %.c Makefile
sstabellini@22018 47 $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
keir@19063 48
keir@19063 49 -include $(DEPS)