debuggers.hg

view tools/include/xen-foreign/Makefile @ 16957:afa521cf82e6

Move remaining xen/include/public/foreign files to tools/include/xen-foreign
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 27 17:25:56 2008 +0000 (2008-01-27)
parents f605f35bd6ba
children 887337323bd8
line source
1 XEN_ROOT=../../..
2 include $(XEN_ROOT)/Config.mk
4 ROOT = $(XEN_ROOT)/xen/include/public
6 architectures := x86_32 x86_64 ia64
7 headers := $(patsubst %, %.h, $(architectures))
9 .PHONY: all clean check-headers
10 all: $(headers) check-headers
12 clean:
13 rm -f $(headers)
14 rm -f checker checker.c
15 rm -f *.pyc *.o *~
17 checker: checker.c $(headers)
18 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
20 check-headers: checker
21 ./checker > tmp.size
22 diff -u reference.size tmp.size
23 rm tmp.size
25 x86_32.h: mkheader.py $(ROOT)/arch-x86/xen-x86_32.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
26 python $< $* $@ $(filter %.h,$^)
28 x86_64.h: mkheader.py $(ROOT)/arch-x86/xen-x86_64.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
29 python $< $* $@ $(filter %.h,$^)
31 ia64.h: mkheader.py $(ROOT)/arch-ia64.h $(ROOT)/xen.h
32 python $< $* $@ $(filter %.h,$^)
34 checker.c: mkchecker.py
35 python $< $@ $(architectures)