aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Makefile
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-26 10:38:44 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-26 10:38:44 +0000
commitbe5fbf9a7fecc31c192ca0c547a1f6b864d7aa05 (patch)
tree9e7ea5294656ebe1b5e31904644a4cf5560c68f4 /xen/Makefile
parentbc4a5b7bf50bf466cfc63f20a3907d904d5f0cdf (diff)
downloadxen-be5fbf9a7fecc31c192ca0c547a1f6b864d7aa05.tar.gz
xen-be5fbf9a7fecc31c192ca0c547a1f6b864d7aa05.tar.bz2
xen-be5fbf9a7fecc31c192ca0c547a1f6b864d7aa05.zip
Move generation of public header hierarchy into the tools.
This patch merges the two versions of public header generation currently used in the build into one. Signed-off-by: Bastian Blank <waldi@debian.org>
Diffstat (limited to 'xen/Makefile')
-rw-r--r--xen/Makefile27
1 files changed, 2 insertions, 25 deletions
diff --git a/xen/Makefile b/xen/Makefile
index 60b578c051..f2d2c7aa3c 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -22,30 +22,13 @@ build install debug clean distclean cscope TAGS tags MAP::
_build: $(TARGET).gz
.PHONY: _install
-_install: $(TARGET).gz build-headers
+_install: $(TARGET).gz
[ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
$(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz
ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz
ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz
ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz
$(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot/$(notdir $(TARGET))-syms-$(XEN_FULLVERSION)
- [ -d $(DESTDIR)/usr/include/xen/arch-x86 ] || \
- $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/arch-x86
- [ -d $(DESTDIR)/usr/include/xen/hvm ] || \
- $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/hvm
- [ -d $(DESTDIR)/usr/include/xen/io ] || \
- $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/io
- [ -d $(DESTDIR)/usr/include/xen/xsm ] || \
- $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/xsm
- [ -d $(DESTDIR)/usr/include/xen/foreign ] || \
- $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/foreign
- $(INSTALL_DATA) include/public/*.h $(DESTDIR)/usr/include/xen
- $(INSTALL_DATA) include/public/arch-x86/*.h $(DESTDIR)/usr/include/xen/arch-x86
- $(INSTALL_DATA) include/public/hvm/*.h $(DESTDIR)/usr/include/xen/hvm
- $(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
- $(INSTALL_DATA) include/public/xsm/*.h $(DESTDIR)/usr/include/xen/xsm
- $(INSTALL_DATA) include/public/foreign/*.h $(DESTDIR)/usr/include/xen/foreign
- $(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
.PHONY: _debug
_debug:
@@ -54,7 +37,6 @@ _debug:
.PHONY: _clean
_clean: delete-unfresh-files
$(MAKE) -C tools clean
- $(MAKE) -C include/public/foreign clean
$(MAKE) -f $(BASEDIR)/Rules.mk -C include clean
$(MAKE) -f $(BASEDIR)/Rules.mk -C common clean
$(MAKE) -f $(BASEDIR)/Rules.mk -C drivers clean
@@ -71,7 +53,7 @@ $(TARGET).gz: $(TARGET)
gzip -f -9 < $< > $@.new
mv $@.new $@
-$(TARGET): delete-unfresh-files build-headers
+$(TARGET): delete-unfresh-files
$(MAKE) -C tools
$(MAKE) -f $(BASEDIR)/Rules.mk include/xen/compile.h
[ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm
@@ -120,11 +102,6 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s
echo ""; \
echo "#endif") <$< >$@
-# generate header files
-.PHONY: build-headers
-build-headers:
- $(MAKE) -C include/public/foreign
-
SUBDIRS = xsm arch/$(TARGET_ARCH) common drivers
define all_sources
( find include/asm-$(TARGET_ARCH) -name '*.h' -print; \