ia64/xen-unstable

view xen/arch/x86/Rules.mk @ 2769:7765521a561d

bitkeeper revision 1.1159.140.1 (4181ff24XlmzOzk2yZmMG4lRU9Mr7Q)

Added missing header dependencies.
Added an optimize switch (defaults to "y") to make it easier to
build "-g -O0 -fno-omit-frame-pointer" versions of xen.
author mafetter@fleming.research
date Fri Oct 29 08:28:20 2004 +0000 (2004-10-29)
parents 0c7d6ab95324
children 1b906236acc9
line source
1 ########################################
2 # x86-specific definitions
4 CC := gcc
5 LD := ld
7 CFLAGS := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
8 CFLAGS += -iwithprefix include -Wall -Werror -pipe
9 CFLAGS += -I$(BASEDIR)/include -Wno-pointer-arith -Wredundant-decls
11 ifeq ($(optimize),y)
12 CFLAGS += -O3 -fomit-frame-pointer
13 else
14 x86_32/usercopy.o: CFLAGS += -O1
15 endif
18 # Prevent floating-point variables from creeping into Xen.
19 CFLAGS += -msoft-float
21 ifeq ($(TARGET_SUBARCH),x86_32)
22 CFLAGS += -m32 -march=i686
23 LDFLAGS := --oformat elf32-i386
24 endif
26 ifeq ($(TARGET_SUBARCH),x86_64)
27 CFLAGS += -m64 -mno-red-zone -fpic -fno-reorder-blocks
28 CFLAGS += -fno-asynchronous-unwind-tables
29 LDFLAGS := --oformat elf64-x86-64
30 endif