ia64/xen-unstable

view xen/Makefile @ 3917:86b610094dd0

bitkeeper revision 1.1236.1.16 (421db67dL0mXatHebAtt9KpMqkCIBQ)

More FPU fixes. Extend taskswitch hypercall to allow TS bit to be
cleared as well as set.
author kaf24@scramble.cl.cam.ac.uk
date Thu Feb 24 11:11:57 2005 +0000 (2005-02-24)
parents 8e0ac8ed218b
children a5931595eca4 f715bcbba0b3 a13b9052d91d
line source
1 # Default is to install to local 'dist' directory.
2 DISTDIR ?= ../dist
3 DESTDIR ?= $(DISTDIR)/install
5 INSTALL = install
6 INSTALL_DATA = $(INSTALL) -m0644
7 INSTALL_DIR = $(INSTALL) -d -m0755
9 # This is the correct place to edit the build version.
10 # All other places this is stored (eg. compile.h) should be autogenerated.
11 export XEN_VERSION = 3
12 export XEN_SUBVERSION = 0
13 export XEN_EXTRAVERSION = "-devel"
15 export BASEDIR := $(CURDIR)
17 include Rules.mk
19 default: $(TARGET).gz
20 $(TARGET).gz: $(TARGET)
21 gzip -f -9 < $< > $@.new
22 mv $@.new $@
24 debug:
25 objdump -D -S $(TARGET)-syms > $(TARGET).s
27 dist:
28 $(MAKE) install
30 install: $(TARGET).gz
31 [ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
32 $(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot
33 $(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot
34 [ -d $(DESTDIR)/usr/include/xen/io ] || \
35 $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/io
36 $(INSTALL_DATA) include/public/*.h $(DESTDIR)/usr/include/xen
37 $(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
38 $(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
40 clean: delete-unfresh-files
41 $(MAKE) -C tools clean
42 $(MAKE) -C common clean
43 $(MAKE) -C drivers clean
44 $(MAKE) -C arch/$(TARGET_ARCH) clean
45 rm -f include/asm *.o $(TARGET)* *~ core
46 rm -f include/asm-*/asm-offsets.h
47 rm -f tools/figlet/*.o tools/figlet/figlet
49 $(TARGET): delete-unfresh-files include/xen/compile.h
50 [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm
51 $(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s
52 $(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h
53 $(MAKE) -C common
54 $(MAKE) -C drivers
55 $(MAKE) -C arch/$(TARGET_ARCH)
57 # drivers/char/console.o may contain static banner/compile info. Blow it away.
58 delete-unfresh-files:
59 rm -f include/xen/banner.h include/xen/compile.h drivers/char/console.o
60 $(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files
62 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
63 include/xen/compile.h: LANG=C
64 include/xen/compile.h: include/xen/compile.h.in include/xen/banner.h
65 @sed -e 's/@@date@@/$(shell date)/g' \
66 -e 's/@@time@@/$(shell date +%T)/g' \
67 -e 's/@@whoami@@/$(shell whoami)/g' \
68 -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \
69 -e 's/@@hostname@@/$(shell hostname)/g' \
70 -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)/g' \
71 -e 's/@@version@@/$(XEN_VERSION)/g' \
72 -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
73 -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
74 -e 's!@@changeset@@!$(shell bk changes -nd':D: :T: :REV: :MD5KEY:' -r+ 2>/dev/null || echo information unavailable)!g' \
75 < include/xen/compile.h.in > $@.new
76 @cat include/xen/banner.h >> $@.new
77 @mv -f $@.new $@
79 tools/figlet/figlet: tools/figlet/figlet.o
80 $(HOSTCC) -o $@ $<
81 tools/figlet/figlet.o: tools/figlet/figlet.c
82 $(HOSTCC) -o $@ -c $<
84 include/xen/banner.h: tools/figlet/figlet tools/figlet/xen.flf
85 tools/figlet/figlet -d tools/figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) > $@.new
86 @mv -f $@.new $@
88 include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s
89 @(set -e; \
90 echo "/*"; \
91 echo " * DO NOT MODIFY."; \
92 echo " *"; \
93 echo " * This file was auto-generated from $<"; \
94 echo " *"; \
95 echo " */"; \
96 echo ""; \
97 echo "#ifndef __ASM_OFFSETS_H__"; \
98 echo "#define __ASM_OFFSETS_H__"; \
99 echo ""; \
100 sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
101 echo ""; \
102 echo "#endif") <$< >$@
104 .PHONY: default debug install dist clean delete-unfresh-files TAGS
106 SUBDIRS = arch common drivers
107 TAGS:
108 ( find include/asm-$(TARGET_ARCH) -name '*.h'; \
109 find include -type d \( -name "asm-*" -o -name config \) -prune -o \
110 -name '*.h' -print; \
111 find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | etags -
112 MAP:
113 nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map