ia64/xen-unstable

view xen/Makefile @ 1041:7c3b17193b4b

bitkeeper revision 1.680 (40083bb4Kb4q4cb9z5eySYtCRnVh3A)

maw_vd.patch
author kaf24@scramble.cl.cam.ac.uk[kaf24]
date Fri Jan 16 19:29:56 2004 +0000 (2004-01-16)
parents 94cd24f6b95e
children 85909caca7ed
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 = ""
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