ia64/xen-unstable

view xen/Rules.mk @ 9357:156505f40a8a

Add a.out files to mercurial ignore list.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Mar 21 11:40:41 2006 +0100 (2006-03-21)
parents 768936b2800a
children d7cbcf5d7cd6
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 ALL_OBJS := $(ALL_OBJS-y)
55 CFLAGS := $(strip $(CFLAGS) $(CFLAGS-y))
57 %.o: %.c $(HDRS) Makefile
58 $(CC) $(CFLAGS) -c $< -o $@
60 %.o: %.S $(HDRS) Makefile
61 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@