ia64/xen-unstable

view xen/include/public/foreign/Makefile @ 13833:249e7e32dec8

Fix cross-compile: ia64 build on x86.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kfraser@localhost.localdomain
date Fri Feb 02 15:54:42 2007 +0000 (2007-02-02)
parents 26943e88349f
children 9b9aa9d6603b
line source
1 XEN_ROOT := ../../../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 architectures := x86_32 x86_64 ia64
5 headers := $(patsubst %, %.h, $(architectures))
6 scripts := $(wildcard *.py)
8 .PHONY: all clean check-headers
9 all: $(headers) check-headers
11 clean:
12 rm -f $(headers)
13 rm -f checker checker.c $(XEN_TARGET_ARCH).size
14 rm -f *.pyc *.o *~
16 ifeq ($(CROSS_COMPILE),)
17 check-headers: checker
18 ./checker > $(XEN_TARGET_ARCH).size
19 diff -u reference.size $(XEN_TARGET_ARCH).size
20 checker: checker.c $(headers)
21 $(HOSTCC) $(CFLAGS) -o $@ $<
22 else
23 check-headers:
24 @echo "cross build: skipping check"
25 endif
27 x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts)
28 python mkheader.py $* $@ $(filter %.h,$^)
30 x86_64.h: ../arch-x86/xen-x86_64.h ../arch-x86/xen.h ../xen.h $(scripts)
31 python mkheader.py $* $@ $(filter %.h,$^)
33 ia64.h: ../arch-ia64.h ../xen.h $(scripts)
34 python mkheader.py $* $@ $(filter %.h,$^)
36 checker.c: $(scripts)
37 python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)