ia64/xen-unstable

view Config.mk @ 4958:cc1c80ec8139

bitkeeper revision 1.1432 (428a0372Dg_Q9mIOPOkDIc7D3T4aww)

Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
author cl349@firebug.cl.cam.ac.uk
date Tue May 17 14:45:06 2005 +0000 (2005-05-17)
parents 3dac50183187
children 2d1acc84d984
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 ifeq ($(XEN_TARGET_ARCH),x86_64)
28 LIBDIR = lib64
29 else
30 LIBDIR = lib
31 endif
33 ifneq ($(EXTRA_PREFIX),)
34 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
35 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
36 endif
38 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
39 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))