ia64/xen-unstable

view xen/Rules.mk @ 6728:fbdb56cd611b

Remove dependency between domain db and path/uuid.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Sep 09 16:07:26 2005 +0000 (2005-09-09)
parents b6c98fe62e1a
children b2f4823b6ff0 b35215021b32 9af349b055e5 3233e7ecfa9f
line source
1 #
2 # If you change any of these configuration options then you must
3 # 'make clean' before rebuilding.
4 #
5 verbose ?= y
6 debug ?= n
7 perfc ?= n
8 perfc_arrays?= n
9 trace ?= n
10 domu_debug ?= n
11 crash_debug ?= n
13 include $(BASEDIR)/../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 ifneq ($(ACM_USE_SECURITY_POLICY),ACM_NULL_POLICY)
41 ALL_OBJS += $(BASEDIR)/acm/acm.o
42 endif
43 ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
45 test-gcc-flag = $(shell $(CC) -v --help 2>&1 | grep -q " $(1) " && echo $(1))
47 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
49 ifneq ($(debug),y)
50 CFLAGS += -DNDEBUG
51 ifeq ($(verbose),y)
52 CFLAGS += -DVERBOSE
53 endif
54 else
55 CFLAGS += -g -DVERBOSE
56 endif
58 ifeq ($(domu_debug),y)
59 CFLAGS += -DDOMU_DEBUG
60 endif
62 ifeq ($(crash_debug),y)
63 CFLAGS += -g -DCRASH_DEBUG
64 endif
66 ifeq ($(perfc),y)
67 CFLAGS += -DPERF_COUNTERS
68 ifeq ($(perfc_arrays),y)
69 CFLAGS += -DPERF_ARRAYS
70 endif
71 endif
73 ifeq ($(trace),y)
74 CFLAGS += -DTRACE_BUFFER
75 endif
77 CFLAGS := $(strip $(CFLAGS))
79 %.o: %.c $(HDRS) Makefile
80 $(CC) $(CFLAGS) -c $< -o $@
82 %.o: %.S $(HDRS) Makefile
83 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@