ia64/xen-unstable

view tools/Makefile @ 12637:9493864f7a3c

Add libxen to overall xen build via a config option in Config.mk.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author jfehlig@jfehlig2.provo.novell.com
date Wed Nov 22 14:25:07 2006 -0700 (2006-11-22)
parents f54e29a3be1f
children 260426e3924f
line source
1 XEN_ROOT = ../
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS-y :=
5 SUBDIRS-y += libxc
6 SUBDIRS-y += xenstore
7 SUBDIRS-y += misc
8 SUBDIRS-y += examples
9 SUBDIRS-y += xentrace
10 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
11 SUBDIRS-$(CONFIG_X86) += firmware
12 SUBDIRS-y += security
13 SUBDIRS-y += console
14 SUBDIRS-y += xenmon
15 SUBDIRS-y += guest-headers
16 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
17 SUBDIRS-$(VTPM_TOOLS) += vtpm
18 SUBDIRS-y += xenstat
19 SUBDIRS-y += libaio
20 SUBDIRS-y += blktap
21 SUBDIRS-y += libfsimage
22 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
24 # These don't cross-compile
25 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
26 SUBDIRS-y += python
27 SUBDIRS-y += pygrub
28 endif
30 .PHONY: all
31 all: check
32 @set -e; for subdir in $(SUBDIRS-y); do \
33 $(MAKE) -C $$subdir $@; \
34 done
35 $(MAKE) ioemu
37 .PHONY: install
38 install: check
39 @set -e; for subdir in $(SUBDIRS-y); do \
40 $(MAKE) -C $$subdir $@; \
41 done
42 $(MAKE) ioemuinstall
43 $(INSTALL_DIR) -p $(DESTDIR)/var/xen/dump
44 $(INSTALL_DIR) -p $(DESTDIR)/var/log/xen
46 .PHONY: clean
47 clean: check_clean
48 @set -e; for subdir in $(SUBDIRS-y); do \
49 $(MAKE) -C $$subdir $@; \
50 done
51 $(MAKE) ioemuclean
53 .PHONY: distclean
54 distclean: clean
56 .PHONY: check
57 check:
58 $(MAKE) -C check
60 .PHONY: check_clean
61 check_clean:
62 $(MAKE) -C check clean
64 .PHONY: ioemu ioemuinstall ioemuclean
65 ifeq ($(CONFIG_IOEMU),y)
66 export IOEMU_DIR ?= ioemu
67 ioemu ioemuinstall:
68 [ -f $(IOEMU_DIR)/config-host.mak ] || \
69 (cd $(IOEMU_DIR) && sh configure --prefix=/usr)
70 $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@)
71 ioemuclean:
72 $(MAKE) -C $(IOEMU_DIR) distclean
73 else
74 ioemu ioemuinstall ioemuclean:
75 endif