direct-io.hg

view Config.mk @ 5518:649cd37aa1ab

bitkeeper revision 1.1720 (42b7bb86ag6KD5OEx2v6YdSnS1BhGQ)

Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author iap10@freefall.cl.cam.ac.uk
date Tue Jun 21 07:02:30 2005 +0000 (2005-06-21)
parents 2d1acc84d984 10e9028c8e3d
children 87cfe3f76045 a83ac0806d6b
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 # Tools to run on system hosting the build
8 HOSTCC = gcc
9 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
11 AS = $(CROSS_COMPILE)as
12 LD = $(CROSS_COMPILE)ld
13 CC = $(CROSS_COMPILE)gcc
14 CPP = $(CROSS_COMPILE)gcc -E
15 AR = $(CROSS_COMPILE)ar
16 NM = $(CROSS_COMPILE)nm
17 STRIP = $(CROSS_COMPILE)strip
18 OBJCOPY = $(CROSS_COMPILE)objcopy
19 OBJDUMP = $(CROSS_COMPILE)objdump
21 ifeq ($(XEN_TARGET_ARCH),x86_64)
22 LIBDIR = lib64
23 else
24 LIBDIR = lib
25 endif
27 ifneq ($(EXTRA_PREFIX),)
28 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
29 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
30 endif
32 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
33 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
35 # Choose the best mirror to download linux kernel
36 KERNEL_REPO = http://www.kernel.org