ia64/xen-unstable

changeset 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 cc6370cc3e68
children 7f8159c0f9dc
files xen/Rules.mk xen/arch/x86/Rules.mk
line diff
     1.1 --- a/xen/Rules.mk	Thu Oct 28 16:20:31 2004 +0000
     1.2 +++ b/xen/Rules.mk	Fri Oct 29 08:28:20 2004 +0000
     1.3 @@ -4,6 +4,7 @@ debug       ?= n
     1.4  debugger    ?= n
     1.5  perfc       ?= n
     1.6  trace       ?= n
     1.7 +optimize    ?= y
     1.8  
     1.9  # Currently supported architectures:
    1.10  #  {COMPILE,TARGET}_ARCH    := x86
    1.11 @@ -19,6 +20,7 @@ HDRS    := $(wildcard $(BASEDIR)/include
    1.12  HDRS    += $(wildcard $(BASEDIR)/include/scsi/*.h)
    1.13  HDRS    += $(wildcard $(BASEDIR)/include/hypervisor-ifs/*.h)
    1.14  HDRS    += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h)
    1.15 +HDRS    += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h)
    1.16  # compile.h is always regenerated, but other files shouldn't be rebuilt
    1.17  HDRS    := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
    1.18  
     2.1 --- a/xen/arch/x86/Rules.mk	Thu Oct 28 16:20:31 2004 +0000
     2.2 +++ b/xen/arch/x86/Rules.mk	Fri Oct 29 08:28:20 2004 +0000
     2.3 @@ -4,10 +4,17 @@
     2.4  CC := gcc
     2.5  LD := ld
     2.6  
     2.7 -CFLAGS  := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -O3
     2.8 -CFLAGS  += -iwithprefix include -Wall -Werror -fomit-frame-pointer -pipe
     2.9 +CFLAGS  := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
    2.10 +CFLAGS  += -iwithprefix include -Wall -Werror -pipe
    2.11  CFLAGS  += -I$(BASEDIR)/include -Wno-pointer-arith -Wredundant-decls
    2.12  
    2.13 +ifeq ($(optimize),y)
    2.14 +CFLAGS  += -O3 -fomit-frame-pointer
    2.15 +else
    2.16 +x86_32/usercopy.o: CFLAGS += -O1
    2.17 +endif
    2.18 +
    2.19 +
    2.20  # Prevent floating-point variables from creeping into Xen.
    2.21  CFLAGS  += -msoft-float
    2.22