ia64/xen-unstable

view xen/Makefile @ 1196:17430e51466a

bitkeeper revision 1.810 (4059c6e8EQAxVfRpkNjdygO1O6otTQ)

schedule.c, sched_bvt.c, main.py, Makefile, setup.py, Xc.c:
Python tool fixes.
tempfile.py:
new file
author kaf24@scramble.cl.cam.ac.uk
date Thu Mar 18 15:57:28 2004 +0000 (2004-03-18)
parents f4acf782671a
children 9f85adafc1e1
line source
2 # This is the correct place to edit the build version.
3 # All other places this is stored (eg. compile.h) should be autogenerated.
4 export XEN_VERSION = 1
5 export XEN_SUBVERSION = 3
6 export XEN_EXTRAVERSION = "-devel"
8 export BASEDIR := $(shell pwd)
10 include Rules.mk
12 GENERATED_FILES := include/xeno/compile.h
14 default: $(TARGET)
15 gzip -f -9 < $(TARGET) > $(TARGET).gz
17 debug:
18 objdump -D -S $(TARGET) > $(TARGET).s
20 install: $(TARGET)
21 gzip -f -9 < $(TARGET) > $(TARGET).gz
22 mkdir -p $(prefix)/boot
23 install -m0644 $(TARGET).gz $(prefix)/boot
25 clean: delete-links
26 $(MAKE) -C tools clean
27 $(MAKE) -C common clean
28 $(MAKE) -C net clean
29 $(MAKE) -C drivers clean
30 $(MAKE) -C arch/$(TARGET_ARCH) clean
31 rm -f *.o $(TARGET)* *~ core $(GENERATED_FILES)
33 $(TARGET): delete-unfresh-files make-links $(GENERATED_FILES)
34 $(MAKE) -C tools
35 $(MAKE) -C common
36 $(MAKE) -C net
37 $(MAKE) -C drivers
38 $(MAKE) -C arch/$(TARGET_ARCH)
40 make-links: delete-links
41 ln -sf asm-$(TARGET_ARCH) include/asm
42 ln -sf arch-$(TARGET_ARCH) include/hypervisor-ifs/arch
44 delete-links:
45 rm -f include/asm include/hypervisor-ifs/arch
47 # Blow away kernel.o because build info is stored statically within it.
48 delete-unfresh-files:
49 rm -f $(GENERATED_FILES) common/kernel.o
51 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
52 include/xeno/compile.h:
53 @LANG=C echo /\* Autogenerated by root Makefile. Do not edit. \*/ > $@
54 @LANG=C echo >> $@
55 @LANG=C echo \#define XEN_COMPILE_DATE \"`date`\" >> $@
56 @LANG=C echo \#define XEN_COMPILE_TIME \"`date +%T`\" >> $@
57 @LANG=C echo \#define XEN_COMPILE_BY \"`whoami`\" >> $@
58 @LANG=C echo \#define XEN_COMPILE_DOMAIN \"`([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown])`\" >> $@
59 @LANG=C echo \#define XEN_COMPILE_HOST \"`hostname`\" >> $@
60 @LANG=C echo \#define XEN_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -1`\" >> $@
61 @LANG=C echo >> $@
62 @LANG=C echo \#define XEN_VERSION\ \ \ \ \ \ $(XEN_VERSION) >> $@
63 @LANG=C echo \#define XEN_SUBVERSION\ \ \ $(XEN_SUBVERSION) >> $@
64 @LANG=C echo \#define XEN_EXTRAVERSION \"$(XEN_EXTRAVERSION)\" >> $@
65 @LANG=C echo >> $@
66 @LANG=C echo \#define XEN_BANNER \\ >> $@
67 cd tools/figlet && make && ./figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) 1>>../../$@ && cd ../..
68 @LANG=C echo >> $@
70 .PHONY: $(GENERATED_FILES) make-links delete-links default
71 .PHONY: debug install clean delete-unfresh-files
73 SUBDIRS = arch common drivers net
74 TAGS:
75 etags `find include/asm-$(TARGET_ARCH) -name '*.h'`
76 find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs etags -a
77 find $(SUBDIRS) -name '*.[ch]' | xargs etags -a
78 MAP:
79 nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map