ia64/xen-unstable

view Config.mk @ 4653:4c9072ada4bf

bitkeeper revision 1.1380 (426cb282h_zj6PQYX7HuwLMZrI68ig)

More gcc4 signed/unsigned char fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Apr 25 09:04:02 2005 +0000 (2005-04-25)
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))