mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
For now hardcode /etc w/o a prefix as there are hardcoded config paths in the code which would break otherwise. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
36 lines
861 B
Makefile
36 lines
861 B
Makefile
XEN_ROOT=../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
ROOT = $(XEN_ROOT)/xen/include/public
|
|
|
|
architectures := x86_32 x86_64 ia64
|
|
headers := $(patsubst %, %.h, $(architectures))
|
|
|
|
.PHONY: all clean check-headers
|
|
all: $(headers) check-headers
|
|
|
|
clean:
|
|
rm -f $(headers)
|
|
rm -f checker checker.c
|
|
rm -f *.pyc *.o *~
|
|
|
|
checker: checker.c $(headers)
|
|
$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
|
|
|
|
check-headers: checker
|
|
./checker > tmp.size
|
|
diff -u reference.size tmp.size
|
|
rm tmp.size
|
|
|
|
x86_32.h: mkheader.py $(ROOT)/arch-x86/xen-x86_32.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
|
|
python $< $* $@ $(filter %.h,$^)
|
|
|
|
x86_64.h: mkheader.py $(ROOT)/arch-x86/xen-x86_64.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
|
|
python $< $* $@ $(filter %.h,$^)
|
|
|
|
ia64.h: mkheader.py $(ROOT)/arch-ia64.h $(ROOT)/xen.h
|
|
python $< $* $@ $(filter %.h,$^)
|
|
|
|
checker.c: mkchecker.py
|
|
python $< $@ $(architectures)
|