ia64/xen-unstable
changeset 4672:5b4ab00d85d1
bitkeeper revision 1.1387 (426fc402cahZ53Mlz7Pca5KY50Y6tA)
include/xen/banner.h will be only change if there's differences with the new one.
add correct dependencies, so that console.c is now rebuild when necessary now.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
include/xen/banner.h will be only change if there's differences with the new one.
add correct dependencies, so that console.c is now rebuild when necessary now.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author | vh249@arcadians.cl.cam.ac.uk |
---|---|
date | Wed Apr 27 16:55:30 2005 +0000 (2005-04-27) |
parents | fe711d5cee02 |
children | 98d5be103415 |
files | xen/Makefile xen/arch/x86/Makefile xen/drivers/char/Makefile |
line diff
1.1 --- a/xen/Makefile Tue Apr 26 13:37:38 2005 +0000 1.2 +++ b/xen/Makefile Wed Apr 27 16:55:30 2005 +0000 1.3 @@ -47,8 +47,7 @@ clean: delete-unfresh-files 1.4 rm -f include/asm-*/asm-offsets.h 1.5 rm -f tools/figlet/*.o tools/figlet/figlet 1.6 1.7 -$(TARGET): delete-unfresh-files 1.8 - $(MAKE) include/xen/compile.h 1.9 +$(TARGET): delete-unfresh-files include/xen/compile.h 1.10 [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm 1.11 $(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s 1.12 $(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h 1.13 @@ -56,9 +55,8 @@ clean: delete-unfresh-files 1.14 $(MAKE) -C drivers 1.15 $(MAKE) -C arch/$(TARGET_ARCH) 1.16 1.17 -# drivers/char/console.o may contain static banner/compile info. Blow it away. 1.18 delete-unfresh-files: 1.19 - rm -f include/xen/banner.h include/xen/compile.h drivers/char/console.o 1.20 + rm -f include/xen/compile.h 1.21 $(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files 1.22 1.23 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation. 1.24 @@ -83,9 +81,10 @@ tools/figlet/figlet: tools/figlet/figlet 1.25 tools/figlet/figlet.o: tools/figlet/figlet.c 1.26 $(HOSTCC) -o $@ -c $< 1.27 1.28 +.PHONY: include/xen/banner.h 1.29 include/xen/banner.h: tools/figlet/figlet tools/figlet/xen.flf 1.30 tools/figlet/figlet -d tools/figlet Xen $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) > $@.new 1.31 - @mv -f $@.new $@ 1.32 + @cmp $@.new $@ && rm -f $@.new || mv -f $@.new $@ 1.33 1.34 include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s 1.35 @(set -e; \
2.1 --- a/xen/arch/x86/Makefile Tue Apr 26 13:37:38 2005 +0000 2.2 +++ b/xen/arch/x86/Makefile Wed Apr 27 16:55:30 2005 +0000 2.3 @@ -13,7 +13,7 @@ endif 2.4 2.5 default: $(TARGET) 2.6 2.7 -$(TARGET): $(TARGET)-syms boot/mkelf32 2.8 +$(TARGET): $(TARGET)-syms boot/mkelf32 ../../include/xen/compile.h 2.9 ./boot/mkelf32 $(TARGET)-syms $(TARGET) 0x100000 2.10 2.11 $(CURDIR)/arch.o: $(OBJS)
3.1 --- a/xen/drivers/char/Makefile Tue Apr 26 13:37:38 2005 +0000 3.2 +++ b/xen/drivers/char/Makefile Wed Apr 27 16:55:30 2005 +0000 3.3 @@ -5,5 +5,7 @@ default: driver.o 3.4 driver.o: $(OBJS) 3.5 $(LD) $(LDFLAGS) -r -o driver.o $(OBJS) 3.6 3.7 +console.o: ../../include/xen/banner.h 3.8 + 3.9 clean: 3.10 rm -f *.o *~ core