From 57ddfbf7f93a888501097878a8c3b58444a947d8 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 3 Aug 2009 14:46:51 +0200 Subject: [PATCH] Generate more conmmon CFLAGS Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori Message-Id: --- Makefile.target | 7 ------- configure | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile.target b/Makefile.target index 45c9305643..ce7473f919 100644 --- a/Makefile.target +++ b/Makefile.target @@ -43,14 +43,7 @@ all: $(PROGS) # cpu emulator library libobj-y = exec.o translate-all.o cpu-exec.o translate.o host-utils.o libobj-$(CONFIG_KQEMU) += kqemu.o -# TCG code generator libobj-y += tcg/tcg.o tcg/tcg-runtime.o -QEMU_CFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH) -ifeq ($(ARCH),sparc64) -QEMU_CFLAGS+=-I$(SRC_PATH)/tcg/sparc -endif -QEMU_CFLAGS+=-I$(SRC_PATH)/fpu - libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o libobj-y += op_helper.o helper.o diff --git a/configure b/configure index 3dc9fffdaa..a252dff85e 100755 --- a/configure +++ b/configure @@ -2070,6 +2070,14 @@ fi cflags="" ldflags="" +if test "$ARCH" = "sparc64" ; then + cflags="-I\$(SRC_PATH)/tcg/sparc $cflags" +else + cflags="-I\$(SRC_PATH)/tcg/\$(ARCH) $cflags" +fi +cflags="-I\$(SRC_PATH)/tcg $cflags" +cflags="-I\$(SRC_PATH)/fpu $cflags" + case "$ARCH" in alpha) # Ensure there's only a single GP