ia64/xen-unstable

view xen/Makefile @ 652:784f6ddcee8e

bitkeeper revision 1.366.1.1 (3f1bbc10yTVXbX8BeEQcUVKQmXTucQ)

time.c:
Fix reading of CMOS time -- beware the update-in-progress flag.
author kaf24@scramble.cl.cam.ac.uk
date Mon Jul 21 10:10:24 2003 +0000 (2003-07-21)
parents 01249407db23
children 04b2915c1333
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 = "-beta"
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 cp $(TARGET).gz ../../install/boot/
24 clean: delete-links
25 $(MAKE) -C tools clean
26 $(MAKE) -C common clean
27 $(MAKE) -C net clean
28 $(MAKE) -C drivers clean
29 $(MAKE) -C arch/$(ARCH) clean
30 rm -f *.o $(TARGET)* *~ core $(GENERATED_FILES)
32 $(TARGET): delete-unfresh-files make-links $(GENERATED_FILES)
33 $(MAKE) -C tools
34 $(MAKE) -C common
35 $(MAKE) -C net
36 $(MAKE) -C drivers
37 $(MAKE) -C arch/$(ARCH)
39 make-links: delete-links
40 ln -sf xeno include/linux
41 ln -sf asm-$(ARCH) include/asm
43 delete-links:
44 rm -f include/linux include/asm
46 # Blow away kernel.o because build info is stored statically within it.
47 delete-unfresh-files:
48 rm -f $(GENERATED_FILES) common/kernel.o
50 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
51 include/xeno/compile.h:
52 @LANG=C echo /\* Autogenerated by root Makefile. Do not edit. \*/ > $@
53 @LANG=C echo >> $@
54 @LANG=C echo \#define XEN_COMPILE_DATE \"`date`\" >> $@
55 @LANG=C echo \#define XEN_COMPILE_TIME \"`date +%T`\" >> $@
56 @LANG=C echo \#define XEN_COMPILE_BY \"`whoami`\" >> $@
57 @LANG=C echo \#define XEN_COMPILE_DOMAIN \"`([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown])`\" >> $@
58 @LANG=C echo \#define XEN_COMPILE_HOST \"`hostname`\" >> $@
59 @LANG=C echo \#define XEN_COMPILER \"`$(CC) $(CFLAGS) -v 2>&1 | tail -1`\" >> $@
60 @LANG=C echo >> $@
61 @LANG=C echo \#define XEN_VERSION\ \ \ \ \ \ $(XEN_VERSION) >> $@
62 @LANG=C echo \#define XEN_SUBVERSION\ \ \ $(XEN_SUBVERSION) >> $@
63 @LANG=C echo \#define XEN_EXTRAVERSION \"$(XEN_EXTRAVERSION)\" >> $@
64 @LANG=C echo >> $@
65 @LANG=C echo \#define XEN_BANNER \\ >> $@
66 cd tools/figlet && make && ./figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) 1>>../../$@ && cd ../..
67 @LANG=C echo >> $@
69 .PHONY: $(GENERATED_FILES) make-links delete-links default
70 .PHONY: debug install clean delete-unfresh-files
72 SUBDIRS = arch common drivers net
73 TAGS:
74 etags `find include/asm-$(ARCH) -name '*.h'`
75 find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs etags -a
76 find $(SUBDIRS) -name '*.[ch]' | xargs etags -a
77 MAP:
78 nm image | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map