ia64/xen-unstable

view xen/Rules.mk @ 9586:806d04252761

Fix checksum-offload problems introduced in c/s 9514, due to
data_validated flag not being properly specified on the
device channel.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Apr 05 10:37:37 2006 +0100 (2006-04-05)
parents 6cb5928fa026
children c1d53788a25e
line source
2 #
3 # If you change any of these configuration options then you must
4 # 'make clean' before rebuilding.
5 #
6 verbose ?= n
7 perfc ?= n
8 perfc_arrays?= n
9 crash_debug ?= n
11 # Hardcoded configuration implications and dependencies.
12 # Do this is a neater way if it becomes unwieldy.
13 ifeq ($(debug),y)
14 verbose := y
15 endif
16 ifeq ($(perfc_arrays),y)
17 perfc := y
18 endif
20 XEN_ROOT=$(BASEDIR)/..
21 include $(XEN_ROOT)/Config.mk
23 # Set ARCH/SUBARCH appropriately.
24 override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH)
25 override TARGET_SUBARCH := $(XEN_TARGET_ARCH)
26 override COMPILE_ARCH := $(patsubst x86%,x86,$(XEN_COMPILE_ARCH))
27 override TARGET_ARCH := $(patsubst x86%,x86,$(XEN_TARGET_ARCH))
29 TARGET := $(BASEDIR)/xen
30 HDRS := $(wildcard $(BASEDIR)/include/xen/*.h)
31 HDRS += $(wildcard $(BASEDIR)/include/public/*.h)
32 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h)
33 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h)
34 # Do not depend on auto-generated header files.
35 HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS))
36 HDRS := $(subst $(BASEDIR)/include/xen/banner.h,,$(HDRS))
37 HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
39 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
41 # Note that link order matters!
42 ALL_OBJS-y += $(BASEDIR)/common/built_in.o
43 ALL_OBJS-y += $(BASEDIR)/drivers/built_in.o
44 ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/acm/built_in.o
45 ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
47 CFLAGS-y += -g -D__XEN__
48 CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY
49 CFLAGS-$(verbose) += -DVERBOSE
50 CFLAGS-$(crash_debug) += -DCRASH_DEBUG
51 CFLAGS-$(perfc) += -DPERF_COUNTERS
52 CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
54 ifneq ($(max_phys_cpus),)
55 CFLAGS-y += -DMAX_PHYS_CPUS=$(max_phys_cpus)
56 endif
58 AFLAGS-y += -D__ASSEMBLY__
60 ALL_OBJS := $(ALL_OBJS-y)
61 CFLAGS := $(strip $(CFLAGS) $(CFLAGS-y))
62 AFLAGS := $(strip $(AFLAGS) $(AFLAGS-y))
64 %.o: %.c $(HDRS) Makefile
65 $(CC) $(CFLAGS) -c $< -o $@
67 %.o: %.S $(HDRS) Makefile
68 $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $@