ia64/xen-unstable

view Config.mk @ 4591:6375127fdf23

bitkeeper revision 1.1311.1.1 (426641eeBv97w6sl983zxeR4Dc3Utg)

Cleanup page table handling. Add macros to access page table
entries, fixup plenty of places in the code to use the page
table types instead of "unsigned long".

Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: michael.fetterman@cl.cam.ac.uk
author mafetter@fleming.research
date Wed Apr 20 11:50:06 2005 +0000 (2005-04-20)
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))