debuggers.hg

annotate tools/misc/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
mjw@1661 1 XEN_ROOT=../..
kaf24@3587 2 include $(XEN_ROOT)/tools/Rules.mk
kaf24@1220 3
kaf24@9227 4 CFLAGS += -Werror
mjw@1661 5
mjw@1661 6 INCLUDES += -I $(XEN_XC)
mjw@1661 7 INCLUDES += -I $(XEN_LIBXC)
keir@16932 8 INCLUDES += -I $(XEN_INCLUDE)
kaf24@3269 9 CFLAGS += $(INCLUDES)
iap10@809 10
iap10@809 11 HDRS = $(wildcard *.h)
iap10@809 12
keir@21591 13 TARGETS-y := xenperf xenpm xen-tmem-list-parse gtraceview gtracestat xenlockprof xenwatchdogd
paul@21939 14 TARGETS-$(CONFIG_X86) += xen-detect xen-hvmctx xen-hvmcrash
keir@21591 15 TARGETS-$(CONFIG_MIGRATE) += xen-hptool
kfraser@13932 16 TARGETS := $(TARGETS-y)
iap10@809 17
keir@16780 18 SUBDIRS-$(CONFIG_LOMOUNT) += lomount
keir@16780 19 SUBDIRS-$(CONFIG_MINITERM) += miniterm
keir@16780 20 SUBDIRS := $(SUBDIRS-y)
keir@16780 21
keir@18581 22 INSTALL_BIN-y := xencons
keir@18581 23 INSTALL_BIN-$(CONFIG_X86) += xen-detect
keir@18581 24 INSTALL_BIN := $(INSTALL_BIN-y)
keir@18581 25
keir@21591 26 INSTALL_SBIN-y := xm xen-bugtool xen-python-path xend xenperf xsview xenpm xen-tmem-list-parse gtraceview gtracestat xenlockprof xenwatchdogd
paul@21939 27 INSTALL_SBIN-$(CONFIG_X86) += xen-hvmctx xen-hvmcrash
keir@21591 28 INSTALL_SBIN-$(CONFIG_MIGRATE) += xen-hptool
keir@18581 29 INSTALL_SBIN := $(INSTALL_SBIN-y)
iap10@809 30
kaf24@9645 31 .PHONY: all
doogie@4147 32 all: build
kaf24@9645 33
kaf24@9645 34 .PHONY: build
doogie@4147 35 build: $(TARGETS)
keir@16780 36 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d; done
iap10@809 37
kaf24@9645 38 .PHONY: install
doogie@4147 39 install: build
keir@16826 40 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
keir@16828 41 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
keir@17862 42 $(INSTALL_PYTHON_PROG) $(INSTALL_BIN) $(DESTDIR)$(BINDIR)
keir@17862 43 $(INSTALL_PYTHON_PROG) $(INSTALL_SBIN) $(DESTDIR)$(SBINDIR)
keir@16780 44 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d install-recurse; done
kaf24@1010 45
kaf24@9645 46 .PHONY: clean
iap10@809 47 clean:
keir@19063 48 $(RM) *.o $(TARGETS) *~ $(DEPS)
keir@16780 49 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
iap10@809 50
iap10@3695 51 %.o: %.c $(HDRS) Makefile
iap10@3695 52 $(CC) -c $(CFLAGS) -o $@ $<
iap10@3695 53
paul@21939 54 xen-hvmctx xen-hvmcrash xenperf xenpm gtracestat xenlockprof xen-hptool xenwatchdogd: %: %.o Makefile
sstabellini@22018 55 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenstore)
keir@19063 56
keir@19906 57 gtraceview: %: %.o Makefile
keir@19922 58 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CURSES_LIBS)
keir@19906 59
keir@19063 60 -include $(DEPS)