aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-26 15:26:55 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-26 15:26:55 +0000
commit9b74c5ff1c614b5dc2c6da7dbf0edf44b136beb2 (patch)
tree2913c693e504e61aa65719c30b087805601d9f7c /tools/Makefile
parentedd7911723be7f3d41566639c543af4c9a8b3201 (diff)
downloadxen-9b74c5ff1c614b5dc2c6da7dbf0edf44b136beb2.tar.gz
xen-9b74c5ff1c614b5dc2c6da7dbf0edf44b136beb2.tar.bz2
xen-9b74c5ff1c614b5dc2c6da7dbf0edf44b136beb2.zip
Add ioemu to subdirs.
ioemu is handled different because of the configure setup. Signed-off-by: Bastian Blank <waldi@debian.org>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/tools/Makefile b/tools/Makefile
index d5f49f4da5..e28c976359 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -21,6 +21,7 @@ SUBDIRS-y += libaio
SUBDIRS-y += blktap
SUBDIRS-y += libfsimage
SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
+SUBDIRS-$(CONFIG_IOEMU) += ioemu
# These don't cross-compile
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
@@ -39,14 +40,12 @@ all: check
@set -e; for subdir in $(SUBDIRS-y); do \
$(MAKE) subdir-$@-$$subdir; \
done
- $(MAKE) ioemu
.PHONY: install
install: check
@set -e; for subdir in $(SUBDIRS-y); do \
$(MAKE) subdir-$@-$$subdir; \
done
- $(MAKE) ioemuinstall
$(INSTALL_DIR) $(DESTDIR)/var/xen/dump
$(INSTALL_DIR) $(DESTDIR)/var/log/xen
$(INSTALL_DIR) $(DESTDIR)/var/lib/xen
@@ -56,7 +55,6 @@ clean: check_clean
@set -e; for subdir in $(SUBDIRS-y); do \
$(MAKE) subdir-$@-$$subdir; \
done
- $(MAKE) ioemuclean
.PHONY: distclean
distclean: clean
@@ -78,21 +76,17 @@ check:
check_clean:
$(MAKE) -C check clean
-.PHONY: ioemu ioemuinstall ioemuclean
-ifeq ($(CONFIG_IOEMU),y)
-IOEMU_DIR ?= ioemu
ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
IOEMU_CONFIGURE_CROSS ?= --cross-prefix=$(CROSS_COMPILE) \
--interp-prefix=$(CROSS_SYS_ROOT)
endif
-ioemu ioemuinstall:
- [ -f $(IOEMU_DIR)/config-host.mak ] || \
- ( cd $(IOEMU_DIR) && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure --prefix=/usr \
- $(IOEMU_CONFIGURE_CROSS) )
- $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@)
-ioemuclean:
- $(MAKE) -C $(IOEMU_DIR) distclean
-else
-ioemu ioemuinstall ioemuclean:
-endif
+
+ioemu/config-host.mak:
+ cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure --prefix=/usr \
+ $(IOEMU_CONFIGURE_CROSS)
+
+subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak
+
+subdir-clean-ioemu:
+ $(MAKE) -C ioemu distclean