win-pvdrivers

annotate common/include/public/foreign/Makefile @ 62:edd4a2ad5b44

Removed old inf files
author James Harper <james.harper@bendigoit.com.au>
date Wed Dec 19 10:22:50 2007 +1100 (2007-12-19)
parents 5712dede5a1b
children
rev   line source
andy@12 1 XEN_ROOT=../../../..
andy@12 2 include $(XEN_ROOT)/Config.mk
andy@12 3
andy@12 4 architectures := x86_32 x86_64 ia64
andy@12 5 headers := $(patsubst %, %.h, $(architectures))
andy@12 6 scripts := $(wildcard *.py)
andy@12 7
andy@12 8 .PHONY: all clean check-headers
andy@12 9 all: $(headers) check-headers
andy@12 10
andy@12 11 clean:
andy@12 12 rm -f $(headers)
andy@12 13 rm -f checker checker.c $(XEN_TARGET_ARCH).size
andy@12 14 rm -f *.pyc *.o *~
andy@12 15
andy@12 16 ifeq ($(CROSS_COMPILE)$(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH))
andy@12 17 check-headers: checker
andy@12 18 ./checker > $(XEN_TARGET_ARCH).size
andy@12 19 diff -u reference.size $(XEN_TARGET_ARCH).size
andy@12 20 checker: checker.c $(headers)
andy@12 21 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
andy@12 22 else
andy@12 23 check-headers:
andy@12 24 @echo "cross build: skipping check"
andy@12 25 endif
andy@12 26
andy@12 27 x86_32.h: ../arch-x86/xen-x86_32.h ../arch-x86/xen.h ../xen.h $(scripts)
andy@12 28 python mkheader.py $* $@ $(filter %.h,$^)
andy@12 29
andy@12 30 x86_64.h: ../arch-x86/xen-x86_64.h ../arch-x86/xen.h ../xen.h $(scripts)
andy@12 31 python mkheader.py $* $@ $(filter %.h,$^)
andy@12 32
andy@12 33 ia64.h: ../arch-ia64.h ../xen.h $(scripts)
andy@12 34 python mkheader.py $* $@ $(filter %.h,$^)
andy@12 35
andy@12 36 checker.c: $(scripts)
andy@12 37 python mkchecker.py $(XEN_TARGET_ARCH) $@ $(architectures)