ia64/xen-unstable

view Config.mk @ 9231:9c2c55ba22e5

Trivial fix to bind implementation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Sat Mar 11 11:19:11 2006 +0100 (2006-03-11)
parents 85b34394c9a2
children d4e433d615b0
line source
1 # -*- mode: Makefile; -*-
3 # A debug build of Xen and tools?
4 debug ?= n
6 # Currently supported architectures: x86_32, x86_64
7 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
9 XEN_TARGET_X86_PAE ?= n
11 # Tools to run on system hosting the build
12 HOSTCC = gcc
13 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
15 ifneq ($(debug),y)
16 # Optimisation flags are overridable
17 CFLAGS ?= -O3 -fomit-frame-pointer
18 CFLAGS += -DNDEBUG
19 else
20 CFLAGS += -g
21 endif
23 AS = $(CROSS_COMPILE)as
24 LD = $(CROSS_COMPILE)ld
25 CC = $(CROSS_COMPILE)gcc
26 CPP = $(CROSS_COMPILE)gcc -E
27 AR = $(CROSS_COMPILE)ar
28 RANLIB = $(CROSS_COMPILE)ranlib
29 NM = $(CROSS_COMPILE)nm
30 STRIP = $(CROSS_COMPILE)strip
31 OBJCOPY = $(CROSS_COMPILE)objcopy
32 OBJDUMP = $(CROSS_COMPILE)objdump
34 DISTDIR ?= $(XEN_ROOT)/dist
36 INSTALL = install
37 INSTALL_DIR = $(INSTALL) -d -m0755
38 INSTALL_DATA = $(INSTALL) -m0644
39 INSTALL_PROG = $(INSTALL) -m0755
41 ifeq ($(XEN_TARGET_ARCH),x86_64)
42 LIBDIR = lib64
43 else
44 LIBDIR = lib
45 endif
47 ifneq ($(EXTRA_PREFIX),)
48 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
49 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
50 endif
52 test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
54 CFLAGS += -Wall
56 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
57 CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
59 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
60 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
62 # Choose the best mirror to download linux kernel
63 KERNEL_REPO = http://www.kernel.org
65 # If ACM_SECURITY = y, then the access control module is compiled
66 # into Xen and the policy type can be set by the boot policy file
67 # y - Build the Xen ACM framework
68 # n - Do not build the Xen ACM framework
69 ACM_SECURITY ?= n
71 # If ACM_SECURITY = y and no boot policy file is installed,
72 # then the ACM defaults to the security policy set by
73 # ACM_DEFAULT_SECURITY_POLICY
74 # Supported models are:
75 # ACM_NULL_POLICY
76 # ACM_CHINESE_WALL_POLICY
77 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
78 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
79 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
81 # Optional components
82 XENSTAT_XENTOP ?= y
84 VTPM_TOOLS ?= n
86 -include $(XEN_ROOT)/.config