direct-io.hg

annotate Config.mk @ 5517:10e9028c8e3d

bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)

Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
author iap10@spot.cl.cam.ac.uk
date Tue Jun 21 06:20:10 2005 +0000 (2005-06-21)
parents 2d1acc84d984 f2c023b9a070
children 649cd37aa1ab
rev   line source
kaf24@4252 1 # -*- mode: Makefile; -*-
cl349@4443 2
kaf24@4252 3 # Currently supported architectures: x86_32, x86_64
kaf24@4252 4 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
kaf24@4252 5 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
kaf24@4252 6
kaf24@4444 7 # Tools to run on system hosting the build
kaf24@4252 8 HOSTCC = gcc
kaf24@4252 9 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
kaf24@4252 10
kaf24@4252 11 AS = $(CROSS_COMPILE)as
kaf24@4252 12 LD = $(CROSS_COMPILE)ld
kaf24@4252 13 CC = $(CROSS_COMPILE)gcc
kaf24@4252 14 CPP = $(CROSS_COMPILE)gcc -E
kaf24@4252 15 AR = $(CROSS_COMPILE)ar
kaf24@4252 16 NM = $(CROSS_COMPILE)nm
kaf24@4252 17 STRIP = $(CROSS_COMPILE)strip
kaf24@4252 18 OBJCOPY = $(CROSS_COMPILE)objcopy
kaf24@4252 19 OBJDUMP = $(CROSS_COMPILE)objdump
kaf24@4252 20
katzj@4544 21 ifeq ($(XEN_TARGET_ARCH),x86_64)
katzj@4544 22 LIBDIR = lib64
katzj@4544 23 else
katzj@4544 24 LIBDIR = lib
katzj@4544 25 endif
katzj@4544 26
kaf24@4252 27 ifneq ($(EXTRA_PREFIX),)
kaf24@4252 28 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
katzj@4544 29 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
kaf24@4252 30 endif
kaf24@4252 31
kaf24@4252 32 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
kaf24@4252 33 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
iap10@5507 34
iap10@5507 35 # Choose the best mirror to download linux kernel
iap10@5507 36 KERNEL_REPO = http://www.kernel.org