ia64/xen-unstable

view Config.mk @ 9507:67b24fc635ae

[IA64] warning fix

Fixed some compilation warnings

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild.aw
date Tue Apr 11 13:54:58 2006 -0600 (2006-04-11)
parents d4e433d615b0
children baa1742637b7
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 AS = $(CROSS_COMPILE)as
16 LD = $(CROSS_COMPILE)ld
17 CC = $(CROSS_COMPILE)gcc
18 CPP = $(CROSS_COMPILE)gcc -E
19 AR = $(CROSS_COMPILE)ar
20 RANLIB = $(CROSS_COMPILE)ranlib
21 NM = $(CROSS_COMPILE)nm
22 STRIP = $(CROSS_COMPILE)strip
23 OBJCOPY = $(CROSS_COMPILE)objcopy
24 OBJDUMP = $(CROSS_COMPILE)objdump
26 DISTDIR ?= $(XEN_ROOT)/dist
28 INSTALL = install
29 INSTALL_DIR = $(INSTALL) -d -m0755
30 INSTALL_DATA = $(INSTALL) -m0644
31 INSTALL_PROG = $(INSTALL) -m0755
33 ifneq ($(debug),y)
34 # Optimisation flags are overridable
35 CFLAGS ?= -O2 -fomit-frame-pointer
36 CFLAGS += -DNDEBUG
37 else
38 CFLAGS += -g
39 endif
41 ifeq ($(XEN_TARGET_ARCH),x86_32)
42 CFLAGS += -m32 -march=i686
43 endif
45 ifeq ($(XEN_TARGET_ARCH),x86_64)
46 CFLAGS += -m64
47 endif
49 ifeq ($(XEN_TARGET_ARCH),x86_64)
50 LIBDIR = lib64
51 else
52 LIBDIR = lib
53 endif
55 ifneq ($(EXTRA_PREFIX),)
56 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
57 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
58 endif
60 test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
62 CFLAGS += -Wall -Wstrict-prototypes
64 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
65 CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
67 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
68 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
70 # Choose the best mirror to download linux kernel
71 KERNEL_REPO = http://www.kernel.org
73 # If ACM_SECURITY = y, then the access control module is compiled
74 # into Xen and the policy type can be set by the boot policy file
75 # y - Build the Xen ACM framework
76 # n - Do not build the Xen ACM framework
77 ACM_SECURITY ?= n
79 # If ACM_SECURITY = y and no boot policy file is installed,
80 # then the ACM defaults to the security policy set by
81 # ACM_DEFAULT_SECURITY_POLICY
82 # Supported models are:
83 # ACM_NULL_POLICY
84 # ACM_CHINESE_WALL_POLICY
85 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
86 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
87 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
89 # Optional components
90 XENSTAT_XENTOP ?= y
92 VTPM_TOOLS ?= n
94 -include $(XEN_ROOT)/.config