ia64/xen-unstable

view Config.mk @ 4518:5e994310f44f

bitkeeper revision 1.1293 (425cf706gdIucn9n9UpmnZgk5ZwITQ)

Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into arcadians.cl.cam.ac.uk:/local/scratch-2/vh249/xen-unstable.bk
author vh249@arcadians.cl.cam.ac.uk
date Wed Apr 13 10:40:06 2005 +0000 (2005-04-13)
parents 445b12a7221a
children 3dac50183187
line source
1 # -*- mode: Makefile; -*-
3 # Currently supported architectures: x86_32, x86_64
4 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
5 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
7 # Set ARCH/SUBARCH appropriately.
8 override COMPILE_SUBARCH := $(XEN_COMPILE_ARCH)
9 override TARGET_SUBARCH := $(XEN_TARGET_ARCH)
10 override COMPILE_ARCH := $(patsubst x86%,x86,$(XEN_COMPILE_ARCH))
11 override TARGET_ARCH := $(patsubst x86%,x86,$(XEN_TARGET_ARCH))
13 # Tools to run on system hosting the build
14 HOSTCC = gcc
15 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
17 AS = $(CROSS_COMPILE)as
18 LD = $(CROSS_COMPILE)ld
19 CC = $(CROSS_COMPILE)gcc
20 CPP = $(CROSS_COMPILE)gcc -E
21 AR = $(CROSS_COMPILE)ar
22 NM = $(CROSS_COMPILE)nm
23 STRIP = $(CROSS_COMPILE)strip
24 OBJCOPY = $(CROSS_COMPILE)objcopy
25 OBJDUMP = $(CROSS_COMPILE)objdump
27 ifneq ($(EXTRA_PREFIX),)
28 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
29 EXTRA_LIB += $(EXTRA_PREFIX)/lib
30 endif
32 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
33 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))