ia64/xen-unstable

view xen/include/public/foreign/Makefile @ 13747:26943e88349f

Fix cross-compile (ia64-built-on-x86) failure.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kaf24@localhost.localdomain
date Tue Jan 30 13:59:01 2007 +0000 (2007-01-30)
parents 583441e296a1
children 249e7e32dec8
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 check-headers: checker
17 ./checker > $(XEN_TARGET_ARCH).size
18 diff -u reference.size $(XEN_TARGET_ARCH).size
20 x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts)
21 python mkheader.py $* $@ $(filter %.h,$^)
23 x86_64.h: ../arch-x86/xen-x86_64.h ../arch-x86/xen.h ../xen.h $(scripts)
24 python mkheader.py $* $@ $(filter %.h,$^)
26 ia64.h: ../arch-ia64.h ../xen.h $(scripts)
27 python mkheader.py $* $@ $(filter %.h,$^)
29 checker: checker.c $(headers)
30 $(HOSTCC) $(CFLAGS) -o $@ $<
32 checker.c: $(scripts)
33 python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)