ia64/xen-unstable

view tools/Makefile @ 16486:6fd17d0dcbcd

minios: Revert 16206:7b5b65fbaf61 (xenbus wait fixup)
Already fixed by 14432:f40079acf646.
author Keir Fraser <keir.fraser@citrix.com>
date Tue Nov 27 12:49:16 2007 +0000 (2007-11-27)
parents 1ed990bc8da9
children 5b9b3b41fe89
line source
1 XEN_ROOT = ../
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS-y :=
5 SUBDIRS-y += libxc
6 SUBDIRS-y += flask
7 SUBDIRS-y += xenstore
8 SUBDIRS-y += misc
9 SUBDIRS-y += examples
10 SUBDIRS-y += xentrace
11 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
12 SUBDIRS-$(CONFIG_X86) += firmware
13 SUBDIRS-$(ACM_SECURITY) += security
14 SUBDIRS-y += console
15 SUBDIRS-y += xenmon
16 SUBDIRS-y += guest-headers
17 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
18 SUBDIRS-$(VTPM_TOOLS) += vtpm
19 SUBDIRS-y += xenstat
20 SUBDIRS-y += libaio
21 SUBDIRS-y += blktap
22 SUBDIRS-y += libfsimage
23 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
25 # These don't cross-compile
26 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
27 SUBDIRS-$(PYTHON_TOOLS) += python
28 SUBDIRS-$(PYTHON_TOOLS) += pygrub
29 endif
31 .PHONY: all
32 all: check
33 @set -e; for subdir in $(SUBDIRS-y); do \
34 $(MAKE) -C $$subdir $@; \
35 done
36 $(MAKE) ioemu
38 .PHONY: install
39 install: check
40 @set -e; for subdir in $(SUBDIRS-y); do \
41 $(MAKE) -C $$subdir $@; \
42 done
43 $(MAKE) ioemuinstall
44 $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
45 $(INSTALL_DIR) $(DESTDIR)/var/log/xen
46 $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
48 .PHONY: clean
49 clean: check_clean
50 @set -e; for subdir in $(SUBDIRS-y); do \
51 $(MAKE) -C $$subdir $@; \
52 done
53 $(MAKE) ioemuclean
55 .PHONY: distclean
56 distclean: clean
58 .PHONY: check
59 check:
60 $(MAKE) -C check
62 .PHONY: check_clean
63 check_clean:
64 $(MAKE) -C check clean
66 .PHONY: ioemu ioemuinstall ioemuclean
67 ifeq ($(CONFIG_IOEMU),y)
68 export IOEMU_DIR ?= ioemu
69 ioemu ioemuinstall:
70 [ -f $(IOEMU_DIR)/config-host.mak ] || \
71 (cd $(IOEMU_DIR) && sh configure --prefix=/usr)
72 $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@)
73 ioemuclean:
74 $(MAKE) -C $(IOEMU_DIR) distclean
75 else
76 ioemu ioemuinstall ioemuclean:
77 endif