ia64/xen-unstable

changeset 16901:b8ec663b0f6b

Use real source files for xen/foreign build.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 14:43:47 2008 +0000 (2008-01-26)
parents 69b8816b5c8c
children cc04dd2d51d2
files tools/include/xen-foreign/Makefile
line diff
     1.1 --- a/tools/include/xen-foreign/Makefile	Sat Jan 26 14:42:55 2008 +0000
     1.2 +++ b/tools/include/xen-foreign/Makefile	Sat Jan 26 14:43:47 2008 +0000
     1.3 @@ -1,14 +1,14 @@
     1.4  XEN_ROOT=../../..
     1.5  include $(XEN_ROOT)/Config.mk
     1.6  
     1.7 -ROOT = $(XEN_ROOT)/xen/include/public/foreign
     1.8 -HOSTCFLAGS += -I$(ROOT)
     1.9 +ROOT = $(XEN_ROOT)/xen/include/public
    1.10 +HOSTCFLAGS += -I$(ROOT)/foreign
    1.11  
    1.12 -MKHEADER_PY = $(ROOT)/mkheader.py
    1.13 +MKCHECKER_PY = $(ROOT)/foreign/mkchecker.py
    1.14 +MKHEADER_PY = $(ROOT)/foreign/mkheader.py
    1.15  
    1.16  architectures := x86_32 x86_64 ia64
    1.17  headers := $(patsubst %, %.h, $(architectures))
    1.18 -scripts := $(wildcard *.py)
    1.19  
    1.20  .PHONY: all clean check-headers
    1.21  all: $(headers) check-headers
    1.22 @@ -24,21 +24,21 @@ checker: checker.c $(headers)
    1.23  
    1.24  check-headers: checker
    1.25  	./checker > tmp.size
    1.26 -	diff -u $(ROOT)/reference.size tmp.size
    1.27 +	diff -u $(ROOT)/foreign/reference.size tmp.size
    1.28  	rm tmp.size
    1.29  else
    1.30  check-headers:
    1.31  	@echo "cross build: skipping check"
    1.32  endif
    1.33  
    1.34 -x86_32.h: $(ROOT)/mkheader.py ../xen/arch-x86/xen-x86_32.h ../xen/arch-x86/xen.h ../xen/xen.h
    1.35 +x86_32.h: $(MKHEADER_PY) $(ROOT)/arch-x86/xen-x86_32.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
    1.36  	python $< $* $@ $(filter %.h,$^)
    1.37  
    1.38 -x86_64.h: $(ROOT)/mkheader.py ../xen/arch-x86/xen-x86_64.h ../xen/arch-x86/xen.h ../xen/xen.h
    1.39 +x86_64.h: $(MKHEADER_PY) $(ROOT)/arch-x86/xen-x86_64.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
    1.40  	python $< $* $@ $(filter %.h,$^)
    1.41  
    1.42 -ia64.h: $(ROOT)/mkheader.py ../xen/arch-ia64.h ../xen/xen.h
    1.43 +ia64.h: $(MKHEADER_PY) $(ROOT)/arch-ia64.h $(ROOT)/xen.h
    1.44  	python $< $* $@ $(filter %.h,$^)
    1.45  
    1.46 -checker.c: $(ROOT)/mkchecker.py
    1.47 +checker.c: $(MKCHECKER_PY)
    1.48  	python $< $(XEN_TARGET_ARCH) $@ $(architectures)