debuggers.hg

view tools/include/xen-foreign/Makefile @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 813e362f333b
children
line source
1 XEN_ROOT=../../..
2 include $(XEN_ROOT)/tools/Rules.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 structs.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 structs.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 structs.py $(ROOT)/arch-ia64.h $(ROOT)/xen.h
32 $(PYTHON) $< $* $@ $(filter %.h,$^)
34 checker.c: mkchecker.py structs.py
35 $(PYTHON) $< $@ $(architectures)