win-pvdrivers

view common/include/public/foreign/Makefile @ 12:5712dede5a1b

add in xen public includes, so the extra step of copying them over is not needed
author Andy Grover <andy@groveronline.com>
date Wed Nov 28 14:44:10 2007 -0800 (2007-11-28)
parents
children
line source
1 XEN_ROOT=../../../..
2 include $(XEN_ROOT)/Config.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)$(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
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) $(HOSTCFLAGS) -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)