ia64/xen-unstable

view xen/arch/ia64/Makefile @ 10888:5379548bfc79

[NET] Enable TCPv4 segmentation offload in front/back drivers.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Aug 01 11:54:45 2006 +0100 (2006-08-01)
parents 7c8955f73b18
children 34452b288046
line source
1 subdir-y += xen
2 subdir-y += vmx
3 subdir-y += linux
4 subdir-y += linux-xen
6 $(TARGET)-syms: linux-xen/head.o $(ALL_OBJS) xen.lds.s
7 $(LD) $(LDFLAGS) -T xen.lds.s -N \
8 -Map map.out linux-xen/head.o $(ALL_OBJS) -o $@
9 $(NM) -n $@ | $(BASEDIR)/tools/symbols > $(BASEDIR)/xen-syms.S
10 $(MAKE) -f $(BASEDIR)/Rules.mk $(BASEDIR)/xen-syms.o
11 $(LD) $(LDFLAGS) -T xen.lds.s -N \
12 -Map map.out linux-xen/head.o $(ALL_OBJS) $(BASEDIR)/xen-syms.o -o $@
13 $(NM) -n $@ | $(BASEDIR)/tools/symbols >$(BASEDIR)/xen-syms.S
14 $(MAKE) -f $(BASEDIR)/Rules.mk $(BASEDIR)/xen-syms.o
15 $(LD) $(LDFLAGS) -T xen.lds.s -N \
16 -Map map.out linux-xen/head.o $(ALL_OBJS) $(BASEDIR)/xen-syms.o -o $@
17 rm -f $(BASEDIR)/xen-syms.S $(BASEDIR)/xen-syms.o
19 $(TARGET): $(TARGET)-syms
20 $(OBJCOPY) -R .note -R .comment -S $(TARGET)-syms $@
21 $(NM) -n $(TARGET)-syms | grep -v '\( [aUw] \)\|\(__crc_\)\|\( \$[adt]\)'\
22 > $(BASEDIR)/System.map
24 # Headers do not depend on auto-generated header, but object files do.
25 HDRS := $(subst $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h,,$(HDRS))
26 $(ALL_OBJS): $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h
28 asm-offsets.s: asm-offsets.c $(BASEDIR)/include/asm-ia64/.offsets.h.stamp
29 $(CC) $(CFLAGS) -DGENERATE_ASM_OFFSETS -DIA64_TASK_SIZE=0 -S -o $@ $<
31 asm-xsi-offsets.s: asm-xsi-offsets.c $(HDRS)
32 $(CC) $(CFLAGS) -S -o $@ $<
34 $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h: asm-xsi-offsets.s
35 @(set -e; \
36 echo "/*"; \
37 echo " * DO NOT MODIFY."; \
38 echo " *"; \
39 echo " * This file was auto-generated from $<"; \
40 echo " *"; \
41 echo " */"; \
42 echo ""; \
43 echo "#ifndef __ASM_XSI_OFFSETS_H__"; \
44 echo "#define __ASM_XSI_OFFSETS_H__"; \
45 echo ""; \
46 sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
47 echo ""; \
48 echo "#endif") <$< >$@
50 $(BASEDIR)/include/asm-ia64/.offsets.h.stamp:
51 # Need such symbol link to make linux headers available
52 [ -e $(BASEDIR)/include/linux ] \
53 || ln -sf $(BASEDIR)/include/xen $(BASEDIR)/include/linux
54 [ -e $(BASEDIR)/include/asm-ia64/xen ] \
55 || ln -sf $(BASEDIR)/include/asm-ia64/linux $(BASEDIR)/include/asm-ia64/xen
56 # Link to HVM files in Xen for ia64/vti
57 [ -e $(BASEDIR)/include/asm-ia64/hvm ] \
58 || mkdir $(BASEDIR)/include/asm-ia64/hvm
59 [ -e $(BASEDIR)/include/asm-ia64/hvm/support.h ] \
60 || ln -sf ../../../include/asm-x86/hvm/support.h $(BASEDIR)/include/asm-ia64/hvm/support.h
61 [ -e $(BASEDIR)/include/asm-ia64/hvm/io.h ] \
62 || ln -sf ../../../include/asm-x86/hvm/io.h $(BASEDIR)/include/asm-ia64/hvm/io.h
63 [ -e $(BASEDIR)/include/asm-ia64/hvm/vpic.h ] \
64 || ln -sf ../../../include/asm-x86/hvm/vpic.h $(BASEDIR)/include/asm-ia64/hvm/vpic.h
65 [ -e $(BASEDIR)/include/asm-ia64/hvm/vioapic.h ] \
66 || ln -sf ../../../include/asm-x86/hvm/vioapic.h $(BASEDIR)/include/asm-ia64/hvm/vioapic.h
67 [ -e $(BASEDIR)/arch/ia64/vmx/hvm_vioapic.c ] \
68 || ln -sf ../../../arch/x86/hvm/vioapic.c $(BASEDIR)/arch/ia64/vmx/hvm_vioapic.c
70 # I'm sure a Makefile wizard would know a better way to do this
71 xen.lds.s: xen/xen.lds.S
72 $(CC) -E $(CPPFLAGS) -P -DXEN $(AFLAGS) \
73 -o xen.lds.s xen/xen.lds.S
75 .PHONY: clean
76 clean::
77 rm -f *.o *~ core xen.lds.s $(BASEDIR)/include/asm-ia64/.offsets.h.stamp asm-offsets.s map.out
78 rm -f asm-xsi-offsets.s $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h
79 rm -f $(BASEDIR)/System.map
80 rm -f vmx/hvm_*.c
81 rm -rf $(BASEDIR)/include/asm-ia64/hvm