ia64/xen-unstable

changeset 8102:82e48750542c

Move mk-symlinks target into tools/Rules.mk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Nov 28 18:07:22 2005 +0100 (2005-11-28)
parents a90691f5207c
children 243265ade404
files tools/Rules.mk tools/blktap/Makefile tools/libxc/Makefile tools/security/Makefile
line diff
     1.1 --- a/tools/Rules.mk	Mon Nov 28 17:37:15 2005 +0100
     1.2 +++ b/tools/Rules.mk	Mon Nov 28 18:07:22 2005 +0100
     1.3 @@ -1,5 +1,8 @@
     1.4  #  -*- mode: Makefile; -*-
     1.5  
     1.6 +# `all' is the default target
     1.7 +all:
     1.8 +
     1.9  include $(XEN_ROOT)/Config.mk
    1.10  
    1.11  XEN_XC             = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
    1.12 @@ -27,3 +30,13 @@ X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
    1.13  
    1.14  %.o: %.cc
    1.15  	$(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
    1.16 +
    1.17 +mk-symlinks: LINUX_ROOT=$(XEN_ROOT)/linux-2.6-xen-sparse
    1.18 +mk-symlinks:
    1.19 +	mkdir -p xen
    1.20 +	( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
    1.21 +	mkdir -p xen/io
    1.22 +	( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
    1.23 +	mkdir -p xen/linux
    1.24 +	( cd xen/linux && \
    1.25 +	  ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )
     2.1 --- a/tools/blktap/Makefile	Mon Nov 28 17:37:15 2005 +0100
     2.2 +++ b/tools/blktap/Makefile	Mon Nov 28 18:07:22 2005 +0100
     2.3 @@ -47,17 +47,6 @@ all: mk-symlinks libblktap.so #blkdump
     2.4  		$(MAKE) -C $$subdir $@;       \
     2.5  	done
     2.6  
     2.7 -LINUX_ROOT := $(wildcard $(XEN_ROOT)/linux-2.6.*-xen-sparse)
     2.8 -mk-symlinks:
     2.9 -	[ -e xen/linux ] || mkdir -p xen/linux
    2.10 -	[ -e xen/io ]    || mkdir -p xen/io
    2.11 -	( cd xen >/dev/null ; \
    2.12 -	  ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
    2.13 -	( cd xen/io >/dev/null ; \
    2.14 -	   ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
    2.15 -	( cd xen/linux >/dev/null ; \
    2.16 -	  ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )
    2.17 -
    2.18  install: all
    2.19  	$(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
    2.20  	$(INSTALL_DIR) -p $(DESTDIR)/usr/include
     3.1 --- a/tools/libxc/Makefile	Mon Nov 28 17:37:15 2005 +0100
     3.2 +++ b/tools/libxc/Makefile	Mon Nov 28 18:07:22 2005 +0100
     3.3 @@ -83,17 +83,6 @@ check-for-zlib:
     3.4  	false; \
     3.5  	fi
     3.6  
     3.7 -LINUX_ROOT := $(XEN_ROOT)/linux-2.6-xen-sparse
     3.8 -mk-symlinks:
     3.9 -	[ -e xen/linux ] || mkdir -p xen/linux
    3.10 -	[ -e xen/io ]    || mkdir -p xen/io
    3.11 -	( cd xen >/dev/null ; \
    3.12 -	  ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
    3.13 -	( cd xen/io >/dev/null ; \
    3.14 -	   ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
    3.15 -	( cd xen/linux >/dev/null ; \
    3.16 -	  ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )
    3.17 -
    3.18  install: build
    3.19  	[ -d $(DESTDIR)/usr/$(LIBDIR) ] || $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)
    3.20  	[ -d $(DESTDIR)/usr/include ] || $(INSTALL_DIR) $(DESTDIR)/usr/include
     4.1 --- a/tools/security/Makefile	Mon Nov 28 17:37:15 2005 +0100
     4.2 +++ b/tools/security/Makefile	Mon Nov 28 18:07:22 2005 +0100
     4.3 @@ -69,14 +69,3 @@ mrproper: clean policy_clean
     4.4  boot_install: $(POLICYFILE)
     4.5  	@cp $(POLICYFILE) /boot
     4.6  	@./updategrub.sh $(POLICY) $(PWD)/$(XEN_ROOT)
     4.7 -
     4.8 -LINUX_ROOT := $(XEN_ROOT)/linux-2.6-xen-sparse
     4.9 -mk-symlinks:
    4.10 -	[ -e xen/linux ] || mkdir -p xen/linux
    4.11 -	[ -e xen/io ]    || mkdir -p xen/io
    4.12 -	( cd xen >/dev/null ; \
    4.13 -	  ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . )
    4.14 -	( cd xen/io >/dev/null ; \
    4.15 -	  ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . )
    4.16 -	( cd xen/linux >/dev/null ; \
    4.17 -	  ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )