export XEN_TARGET_ARCH
export DESTDIR
+.PHONY: build-tools-public-headers
+build-tools-public-headers:
+ $(MAKE) -C tools/include
+
# build and install everything into the standard system directories
.PHONY: install
install: $(TARGS_INSTALL)
+ $(MAKE) -C tools/include install
.PHONY: build
build: $(TARGS_BUILD)
$(MAKE) -C xen build
.PHONY: build-tools
-build-tools:
+build-tools: build-tools-public-headers
$(MAKE) -C tools build
.PHONY: build-stubdom
-build-stubdom: mini-os-dir
+build-stubdom: mini-os-dir build-tools-public-headers
$(MAKE) -C stubdom build
ifeq (x86_64,$(XEN_TARGET_ARCH))
XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom pv-grub
.PHONY: dist
dist: DESTDIR=$(DISTDIR)/install
dist: $(TARGS_DIST) dist-misc
+ make -C tools/include dist
dist-misc:
$(INSTALL_DIR) $(DISTDIR)/
$(MAKE) -C tools install
.PHONY: install-stubdom
-install-stubdom: mini-os-dir
+install-stubdom: mini-os-dir build-tools-public-headers
$(MAKE) -C stubdom install
ifeq (x86_64,$(XEN_TARGET_ARCH))
XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub
.PHONY: clean
clean: $(TARGS_CLEAN)
+ $(MAKE) -C tools/include clean
.PHONY: clean-xen
clean-xen:
# clean, but blow away tarballs
.PHONY: distclean
distclean: $(TARGS_DISTCLEAN)
+ $(MAKE) -C tools/include distclean
rm -f config/Toplevel.mk
rm -rf dist
rm -rf config.log config.status config.cache autom4te.cache
LINK_STAMPS := $(foreach dir,$(LINK_DIRS),$(dir)/stamp)
mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET) $(LINK_STAMPS)
- $(MAKE) -C $(XEN_ROOT)/tools/include
mkdir -p include/xen && \
ln -sf $(wildcard $(XEN_ROOT)/xen/include/public/*.h) include/xen && \
ln -sf $(addprefix $(XEN_ROOT)/xen/include/public/,arch-x86 hvm io xsm) include/xen && \
include $(XEN_ROOT)/tools/Rules.mk
SUBDIRS-y :=
-SUBDIRS-y += include
SUBDIRS-y += libs
SUBDIRS-y += libxc
SUBDIRS-y += flask
endif
ifeq ($(CONFIG_RUMP),y)
-SUBDIRS-y := include libxc xenstore
+SUBDIRS-y := libxc xenstore
endif
# For the sake of linking, set the sys-root