direct-io.hg

view xen/Makefile @ 775:9cdb7ea6e922

bitkeeper revision 1.470.1.1 (3f783cec2WipJHPjRa8BMX27L9ph6A)

1.0rc1 -> 1.0
author iap10@labyrinth.cl.cam.ac.uk
date Mon Sep 29 14:08:44 2003 +0000 (2003-09-29)
parents 5c88e89672e8
children 2025cb2d599a
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 = 0
6 export XEN_EXTRAVERSION = ""
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 image >image.s
20 install: $(TARGET)
21 gzip -f -9 < $(TARGET) > $(TARGET).gz
22 mkdir -p ../../install/boot
23 cp -a $(TARGET).gz ../../install/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/$(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/$(ARCH)
40 make-links: delete-links
41 ln -sf xeno include/linux
42 ln -sf asm-$(ARCH) include/asm
44 delete-links:
45 rm -f include/linux include/asm
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-$(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 image | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map