direct-io.hg

view xen/Makefile @ 975:0cac9d16969a

bitkeeper revision 1.627.1.1 (3fbf4befPIgRjU40eyhadjRuioWcwA)

Many files:
Lib renames and fixes. Only build shared version of libxc, as the static archive version caused too many problems.
xc_vif.c:
Rename: tools/xc/lib/libxc_vif.c -> tools/xc/lib/xc_vif.c
xc_vbd.c:
Rename: tools/xc/lib/libxc_vbd.c -> tools/xc/lib/xc_vbd.c
xc_private.h:
Rename: tools/xc/lib/libxc_private.h -> tools/xc/lib/xc_private.h
xc_private.c:
Rename: tools/xc/lib/libxc_private.c -> tools/xc/lib/xc_private.c
xc_misc.c:
Rename: tools/xc/lib/libxc_misc.c -> tools/xc/lib/xc_misc.c
xc_linux_restore.c:
Rename: tools/xc/lib/libxc_linux_restore.c -> tools/xc/lib/xc_linux_restore.c
xc_linux_save.c:
Rename: tools/xc/lib/libxc_linux_save.c -> tools/xc/lib/xc_linux_save.c
xc_linux_build.c:
Rename: tools/xc/lib/libxc_linux_build.c -> tools/xc/lib/xc_linux_build.c
xc_domain.c:
Rename: tools/xc/lib/libxc_domain.c -> tools/xc/lib/xc_domain.c
xc_bvtsched.c:
Rename: tools/xc/lib/libxc_bvtsched.c -> tools/xc/lib/xc_bvtsched.c
author kaf24@scramble.cl.cam.ac.uk
date Sat Nov 22 11:43:43 2003 +0000 (2003-11-22)
parents 895f1ca085a7
children c83d5dd884ca 9be9350b3317
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 = 2
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 /boot
23 cp -a $(TARGET).gz /boot
25 dist: $(TARGET)
26 gzip -f -9 < $(TARGET) > $(TARGET).gz
27 mkdir -p ../../install/boot
28 cp -a $(TARGET).gz ../../install/boot/
30 clean: delete-links
31 $(MAKE) -C tools clean
32 $(MAKE) -C common clean
33 $(MAKE) -C net clean
34 $(MAKE) -C drivers clean
35 $(MAKE) -C arch/$(ARCH) clean
36 rm -f *.o $(TARGET)* *~ core $(GENERATED_FILES)
38 $(TARGET): delete-unfresh-files make-links $(GENERATED_FILES)
39 $(MAKE) -C tools
40 $(MAKE) -C common
41 $(MAKE) -C net
42 $(MAKE) -C drivers
43 $(MAKE) -C arch/$(ARCH)
45 make-links: delete-links
46 ln -sf xeno include/linux
47 ln -sf asm-$(ARCH) include/asm
49 delete-links:
50 rm -f include/linux include/asm
52 # Blow away kernel.o because build info is stored statically within it.
53 delete-unfresh-files:
54 rm -f $(GENERATED_FILES) common/kernel.o
56 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
57 include/xeno/compile.h:
58 @LANG=C echo /\* Autogenerated by root Makefile. Do not edit. \*/ > $@
59 @LANG=C echo >> $@
60 @LANG=C echo \#define XEN_COMPILE_DATE \"`date`\" >> $@
61 @LANG=C echo \#define XEN_COMPILE_TIME \"`date +%T`\" >> $@
62 @LANG=C echo \#define XEN_COMPILE_BY \"`whoami`\" >> $@
63 @LANG=C echo \#define XEN_COMPILE_DOMAIN \"`([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown])`\" >> $@
64 @LANG=C echo \#define XEN_COMPILE_HOST \"`hostname`\" >> $@
65 @LANG=C echo \#define XEN_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -1`\" >> $@
66 @LANG=C echo >> $@
67 @LANG=C echo \#define XEN_VERSION\ \ \ \ \ \ $(XEN_VERSION) >> $@
68 @LANG=C echo \#define XEN_SUBVERSION\ \ \ $(XEN_SUBVERSION) >> $@
69 @LANG=C echo \#define XEN_EXTRAVERSION \"$(XEN_EXTRAVERSION)\" >> $@
70 @LANG=C echo >> $@
71 @LANG=C echo \#define XEN_BANNER \\ >> $@
72 cd tools/figlet && make && ./figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) 1>>../../$@ && cd ../..
73 @LANG=C echo >> $@
75 .PHONY: $(GENERATED_FILES) make-links delete-links default
76 .PHONY: debug install clean delete-unfresh-files
78 SUBDIRS = arch common drivers net
79 TAGS:
80 etags `find include/asm-$(ARCH) -name '*.h'`
81 find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs etags -a
82 find $(SUBDIRS) -name '*.[ch]' | xargs etags -a
83 MAP:
84 nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map