ia64/xen-unstable

view xen/Rules.mk @ 9027:b567eb77399f

Add 'console=xxx' to the Xen serial console section to make it obvious
that one might need to specify 'console=xxx' and not just 'comX=xxx'
if one isn't using the default com1,vga.

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
author kaf24@firebug.cl.cam.ac.uk
date Sun Feb 26 10:50:15 2006 +0100 (2006-02-26)
parents 2687e3fc5dd4
children c369d960f96b
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 debug ?= n
8 perfc ?= n
9 perfc_arrays?= n
10 crash_debug ?= n
12 XEN_ROOT=$(BASEDIR)/..
13 include $(XEN_ROOT)/Config.mk
15 # Set ARCH/SUBARCH appropriately.
16 override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH)
17 override TARGET_SUBARCH := $(XEN_TARGET_ARCH)
18 override COMPILE_ARCH := $(patsubst x86%,x86,$(XEN_COMPILE_ARCH))
19 override TARGET_ARCH := $(patsubst x86%,x86,$(XEN_TARGET_ARCH))
21 TARGET := $(BASEDIR)/xen
22 HDRS := $(wildcard $(BASEDIR)/include/xen/*.h)
23 HDRS += $(wildcard $(BASEDIR)/include/public/*.h)
24 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h)
25 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h)
26 # Do not depend on auto-generated header files.
27 HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS))
28 HDRS := $(subst $(BASEDIR)/include/xen/banner.h,,$(HDRS))
29 HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
31 C_SRCS := $(wildcard *.c)
32 S_SRCS := $(wildcard *.S)
33 OBJS := $(patsubst %.S,%.o,$(S_SRCS))
34 OBJS += $(patsubst %.c,%.o,$(C_SRCS))
36 # Note that link order matters!
37 ALL_OBJS := $(BASEDIR)/common/common.o
38 ALL_OBJS += $(BASEDIR)/drivers/char/driver.o
39 ALL_OBJS += $(BASEDIR)/drivers/acpi/driver.o
40 ifeq ($(ACM_SECURITY),y)
41 ALL_OBJS += $(BASEDIR)/acm/acm.o
42 CFLAGS += -DACM_SECURITY
43 endif
44 ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
46 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
48 CFLAGS += -g
50 ifneq ($(debug),y)
51 CFLAGS += -DNDEBUG
52 ifeq ($(verbose),y)
53 CFLAGS += -DVERBOSE
54 endif
55 else
56 CFLAGS += -DVERBOSE
57 endif
59 ifeq ($(crash_debug),y)
60 CFLAGS += -DCRASH_DEBUG
61 endif
63 ifeq ($(perfc),y)
64 CFLAGS += -DPERF_COUNTERS
65 ifeq ($(perfc_arrays),y)
66 CFLAGS += -DPERF_ARRAYS
67 endif
68 endif
70 CFLAGS := $(strip $(CFLAGS))
72 %.o: %.c $(HDRS) Makefile
73 $(CC) $(CFLAGS) -c $< -o $@
75 %.o: %.S $(HDRS) Makefile
76 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@