ia64/xen-unstable

view tools/Makefile @ 17022:fbbc0523779e

ioemu stubdom: make daemonize optional
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 11 10:03:48 2008 +0000 (2008-02-11)
parents 5d11d526a820
children 5b4dad214f91
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 += xentrace
13 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
14 SUBDIRS-$(CONFIG_X86) += firmware
15 SUBDIRS-$(ACM_SECURITY) += security
16 SUBDIRS-y += console
17 SUBDIRS-y += xenmon
18 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
19 SUBDIRS-$(VTPM_TOOLS) += vtpm
20 SUBDIRS-y += xenstat
21 SUBDIRS-y += libaio
22 SUBDIRS-y += blktap
23 SUBDIRS-y += libfsimage
24 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
25 SUBDIRS-$(CONFIG_IOEMU) += ioemu
27 # These don't cross-compile
28 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
29 SUBDIRS-$(PYTHON_TOOLS) += python
30 SUBDIRS-$(PYTHON_TOOLS) += pygrub
31 endif
33 # For the sake of linking, set the sys-root
34 ifneq ($(CROSS_COMPILE),)
35 CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
36 export CROSS_SYS_ROOT
37 endif
39 .PHONY: all
40 all:
41 @set -e; for subdir in $(SUBDIRS-y); do \
42 $(MAKE) subdir-$@-$$subdir; \
43 done
45 .PHONY: install
46 install:
47 @set -e; for subdir in $(SUBDIRS-y); do \
48 $(MAKE) subdir-$@-$$subdir; \
49 done
50 $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
51 $(INSTALL_DIR) $(DESTDIR)/var/log/xen
52 $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
54 .PHONY: clean distclean
55 clean distclean:
56 @set -e; for subdir in $(SUBDIRS-y); do \
57 $(MAKE) subdir-clean-$$subdir; \
58 done
60 subdir-all-%:
61 $(MAKE) -C $* all
63 subdir-clean-%:
64 $(MAKE) -C $* clean
66 subdir-install-%:
67 $(MAKE) -C $* install
69 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
70 IOEMU_CONFIGURE_CROSS ?= --cross-prefix=$(CROSS_COMPILE) \
71 --interp-prefix=$(CROSS_SYS_ROOT)
72 endif
74 ioemu/config-host.mak:
75 cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure --prefix=/usr \
76 $(IOEMU_CONFIGURE_CROSS)
78 subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak
80 subdir-clean-ioemu:
81 $(MAKE) -C ioemu distclean