debuggers.hg

view tools/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 3c78729b6f06
children
line source
1 XEN_ROOT = ..
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS-y :=
5 SUBDIRS-y += check
6 SUBDIRS-y += include
7 SUBDIRS-y += libxc
8 SUBDIRS-y += flask
9 SUBDIRS-y += xenstore
10 SUBDIRS-y += misc
11 SUBDIRS-y += examples
12 SUBDIRS-y += hotplug
13 SUBDIRS-y += xentrace
14 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
15 SUBDIRS-$(CONFIG_X86) += firmware
16 SUBDIRS-$(ACM_SECURITY) += security
17 SUBDIRS-y += console
18 SUBDIRS-y += xenmon
19 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
20 SUBDIRS-$(VTPM_TOOLS) += vtpm
21 SUBDIRS-y += xenstat
22 SUBDIRS-$(CONFIG_Linux) += libaio
23 SUBDIRS-$(CONFIG_Linux) += memshr
24 SUBDIRS-$(CONFIG_Linux) += blktap
25 SUBDIRS-$(CONFIG_Linux) += blktap2
26 SUBDIRS-$(CONFIG_NetBSD) += libaio
27 SUBDIRS-$(CONFIG_NetBSD) += blktap2
28 SUBDIRS-$(CONFIG_NetBSD) += xenbackendd
29 SUBDIRS-y += libfsimage
30 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
32 # do not recurse in to a dir we are about to delete
33 ifneq "$(MAKECMDGOALS)" "distclean"
34 SUBDIRS-$(CONFIG_IOEMU) += ioemu-dir
35 endif
37 SUBDIRS-y += xenpmd
38 SUBDIRS-y += libxl
39 SUBDIRS-y += remus
40 SUBDIRS-$(CONFIG_X86) += xenpaging
41 SUBDIRS-$(CONFIG_X86) += debugger/gdbsx
42 SUBDIRS-$(CONFIG_X86) += debugger/kdd
44 # These don't cross-compile
45 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
46 SUBDIRS-$(PYTHON_TOOLS) += python
47 SUBDIRS-$(PYTHON_TOOLS) += pygrub
48 SUBDIRS-$(OCAML_TOOLS) += ocaml
49 endif
51 # For the sake of linking, set the sys-root
52 ifneq ($(CROSS_COMPILE),)
53 CROSS_BIN_PATH ?= /usr/$(CROSS_COMPILE:-=)/bin
54 CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
55 export CROSS_SYS_ROOT # exported for check/funcs.sh
56 export CROSS_BIN_PATH # exported for cross-install.sh
57 endif
59 .PHONY: all
60 all: subdirs-all
62 .PHONY: install
63 install: subdirs-install
64 $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
65 $(INSTALL_DIR) $(DESTDIR)/var/log/xen
66 $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
67 $(INSTALL_DIR) $(DESTDIR)/var/lock/subsys
69 .PHONY: clean
70 clean: subdirs-clean
72 .PHONY: distclean
73 distclean: subdirs-distclean
74 rm -rf ioemu-dir ioemu-remote
76 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
77 IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
78 --cross-prefix=$(CROSS_COMPILE) \
79 --interp-prefix=$(CROSS_SYS_ROOT)
80 endif
82 QEMU_ROOT := $(shell if [ -d "$(CONFIG_QEMU)" ]; then echo "$(CONFIG_QEMU)"; else echo .; fi)
83 ifneq ($(QEMU_ROOT),.)
84 export QEMU_ROOT
85 endif
87 ioemu-dir-find:
88 set -ex; \
89 if test -d $(CONFIG_QEMU); then \
90 mkdir -p ioemu-dir; \
91 else \
92 if [ ! -d ioemu-remote ]; then \
93 rm -rf ioemu-remote ioemu-remote.tmp; \
94 mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
95 $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
96 if [ "$(QEMU_TAG)" ]; then \
97 cd ioemu-remote.tmp; \
98 $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
99 $(GIT) checkout -b dummy $(QEMU_TAG); \
100 cd ..; \
101 fi; \
102 mv ioemu-remote.tmp ioemu-remote; \
103 fi; \
104 rm -f ioemu-dir; \
105 ln -sf ioemu-remote ioemu-dir; \
106 fi
107 set -e; \
108 $(absolutify_xen_root); \
109 $(buildmakevars2shellvars); \
110 cd ioemu-dir; \
111 $(QEMU_ROOT)/xen-setup $(IOEMU_CONFIGURE_CROSS)
113 .PHONY: ioemu-dir-force-update
114 ioemu-dir-force-update:
115 set -ex; \
116 if [ "$(QEMU_TAG)" ]; then \
117 cd ioemu-remote; \
118 $(GIT) fetch origin; \
119 $(GIT) reset --hard $(QEMU_TAG); \
120 fi
122 subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find
124 subdir-clean-ioemu-dir:
125 set -e; if test -d ioemu-dir/.; then \
126 $(absolutify_xen_root); \
127 $(buildmakevars2shellvars); \
128 $(MAKE) -C ioemu-dir clean; \
129 fi
131 subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony
132 $(MAKE) -C debugger/gdbsx clean
134 subdir-install-debugger/gdbsx: .phony
135 $(MAKE) -C debugger/gdbsx install
137 subdir-all-debugger/gdbsx: .phony
138 $(MAKE) -C debugger/gdbsx all
141 subdir-clean-debugger/kdd subdir-distclean-debugger/kdd: .phony
142 $(MAKE) -C debugger/kdd clean
144 subdir-install-debugger/kdd: .phony
145 $(MAKE) -C debugger/kdd install
147 subdir-all-debugger/kdd: .phony
148 $(MAKE) -C debugger/kdd all
150 subdir-distclean-firmware: .phony
151 $(MAKE) -C firmware distclean