Diff for /qemu/Makefile.target between versions 1.1.1.4 and 1.1.1.8

version 1.1.1.4, 2018/04/24 16:42:53 version 1.1.1.8, 2018/04/24 17:21:05
Line 1 Line 1
 include config.mak  include config.mak
   include $(SRC_PATH)/rules.mak
   
 TARGET_BASE_ARCH:=$(TARGET_ARCH)  
 ifeq ($(TARGET_ARCH), x86_64)  
 TARGET_BASE_ARCH:=i386  
 endif  
 ifeq ($(TARGET_ARCH), ppc64)  
 TARGET_BASE_ARCH:=ppc  
 endif  
 ifeq ($(TARGET_ARCH), sparc64)  
 TARGET_BASE_ARCH:=sparc  
 endif  
 TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)  TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
 VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/audio  VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
 DEFINES=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH)  CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
 ifdef CONFIG_USER_ONLY  
 VPATH+=:$(SRC_PATH)/linux-user  
 DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)  
 endif  
 CFLAGS=-Wall -O2 -g -fno-strict-aliasing  
 #CFLAGS+=-Werror  #CFLAGS+=-Werror
 LDFLAGS=-g  
 LIBS=  LIBS=
 HELPER_CFLAGS=$(CFLAGS)  
 DYNGEN=../dyngen$(EXESUF)  ifdef CONFIG_USER_ONLY
 # user emulator name  # user emulator name
 TARGET_ARCH2=$(TARGET_ARCH)  QEMU_PROG=qemu-$(TARGET_ARCH2)
 ifeq ($(TARGET_ARCH),arm)  else
   ifeq ($(TARGET_WORDS_BIGENDIAN),yes)  # system emulator name
     TARGET_ARCH2=armeb  ifeq ($(TARGET_ARCH), i386)
   endif  QEMU_PROG=qemu$(EXESUF)
   else
   QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
 endif  endif
 ifeq ($(TARGET_ARCH),sh4)  
   ifeq ($(TARGET_WORDS_BIGENDIAN),yes)  
     TARGET_ARCH2=sh4eb  
   endif  
 endif  endif
 ifeq ($(TARGET_ARCH),mips)  
   ifneq ($(TARGET_WORDS_BIGENDIAN),yes)  PROGS=$(QEMU_PROG)
     TARGET_ARCH2=mipsel  
   # cc-option
   # Usage: CFLAGS+=$(call cc-option, $(CFLAGS), -falign-functions=0, -malign-functions=0)
   
   cc-option = $(shell if $(CC) $(1) $(2) -S -o /dev/null -xc /dev/null \
                 > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi ;)
   
   HELPER_CFLAGS=
   
   ifeq ($(ARCH),i386)
   HELPER_CFLAGS+=-fomit-frame-pointer
   endif
   
   ifeq ($(subst ppc64,ppc,$(ARCH))$(TARGET_BASE_ARCH),ppcppc)
   translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-time,)
   endif
   
   ifeq ($(ARCH),sparc)
     ifneq ($(CONFIG_SOLARIS),y)
       HELPER_CFLAGS+=-ffixed-i0
   endif    endif
 endif  endif
 QEMU_USER=qemu-$(TARGET_ARCH2)  
 # system emulator name  ifeq ($(ARCH),alpha)
 ifdef CONFIG_SOFTMMU  # Ensure there's only a single GP
 ifeq ($(TARGET_ARCH), i386)  CFLAGS+=-msmall-data
 QEMU_SYSTEM=qemu$(EXESUF)  
 else  
 QEMU_SYSTEM=qemu-system-$(TARGET_ARCH2)$(EXESUF)  
 endif  endif
 else  
 QEMU_SYSTEM=qemu-fast  ifeq ($(ARCH),ia64)
   CFLAGS+=-mno-sdata
 endif  endif
   
 ifdef CONFIG_USER_ONLY  CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 PROGS=$(QEMU_USER)  CPPFLAGS+=-U_FORTIFY_SOURCE
   LIBS+=-lm
   ifdef CONFIG_WIN32
   LIBS+=-lwinmm -lws2_32 -liphlpapi
   endif
   ifdef CONFIG_SOLARIS
   LIBS+=-lsocket -lnsl -lresolv
   ifdef NEEDS_LIBSUNMATH
   LIBS+=-lsunmath
   LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
   CFLAGS+=-I/opt/SUNWspro/prod/include/cc
   endif
   endif
   
   kvm.o: CFLAGS+=$(KVM_CFLAGS)
   kvm-all.o: CFLAGS+=$(KVM_CFLAGS)
   
   all: $(PROGS)
   # Dummy command so that make thinks it has done something
           @true
   
   #########################################################
   # 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
   CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
   ifeq ($(ARCH),sparc64)
   CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
   endif
   ifdef CONFIG_SOFTFLOAT
   libobj-y += fpu/softfloat.o
 else  else
 PROGS+=$(QEMU_SYSTEM)  libobj-y += fpu/softfloat-native.o
 ifndef CONFIG_SOFTMMU  
 CONFIG_STATIC=y  
 endif  endif
 endif # !CONFIG_USER_ONLY  CPPFLAGS+=-I$(SRC_PATH)/fpu
   libobj-y += op_helper.o helper.o
   
   ifeq ($(TARGET_BASE_ARCH), arm)
   libobj-y += neon_helper.o iwmmxt_helper.o
   endif
   
   ifeq ($(TARGET_BASE_ARCH), alpha)
   libobj-y += alpha_palcode.o
   endif
   
   ifeq ($(TARGET_BASE_ARCH), cris)
   libobj-y += cris-dis.o
   
   ifndef CONFIG_USER_ONLY
   libobj-y += mmu.o
   endif
   endif
   
   # NOTE: the disassembler code is only needed for debugging
   libobj-y += disas.o
   ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
   USE_I386_DIS=y
   endif
   ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
   USE_I386_DIS=y
   endif
   libobj-$(USE_I386_DIS) += i386-dis.o
   ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
   libobj-y += alpha-dis.o
   endif
   ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
   libobj-y += ppc-dis.o
   endif
   ifeq ($(findstring microblaze, $(TARGET_BASE_ARCH) $(ARCH)),microblaze)
   libobj-y += microblaze-dis.o
   ifndef CONFIG_USER_ONLY
   libobj-y += mmu.o
   endif
   endif
   ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips)
   libobj-y += mips-dis.o
   endif
   ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
   libobj-y += sparc-dis.o
   endif
   ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
   libobj-y += arm-dis.o
   endif
   ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
   libobj-y += m68k-dis.o
   endif
   ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
   libobj-y += sh4-dis.o
   endif
   ifeq ($(findstring hppa, $(TARGET_BASE_ARCH) $(ARCH)),hppa)
   libobj-y += hppa-dis.o
   endif
   ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390)
   libobj-y += s390-dis.o
   endif
   
   # libqemu
   
   libqemu.a: $(libobj-y)
   
   translate.o: translate.c cpu.h
   
   translate-all.o: translate-all.c cpu.h
   
   tcg/tcg.o: cpu.h
   
   # HELPER_CFLAGS is used for all the code compiled with static register
   # variables
   op_helper.o: CFLAGS += $(HELPER_CFLAGS)
   
   cpu-exec.o: CFLAGS += $(HELPER_CFLAGS)
   
   #########################################################
   # Linux user emulator target
   
   ifdef CONFIG_LINUX_USER
   
   VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
   CPPFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
   
 ifdef CONFIG_STATIC  ifdef CONFIG_STATIC
 LDFLAGS+=-static  LDFLAGS+=-static
 endif  endif
   
 ifeq ($(ARCH),i386)  ifeq ($(ARCH),i386)
 CFLAGS+=-fomit-frame-pointer  
 OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2  
 ifeq ($(HAVE_GCC3_OPTIONS),yes)  
 OP_CFLAGS+= -falign-functions=0 -fno-gcse  
 else  
 OP_CFLAGS+= -malign-functions=0  
 endif  
   
 ifdef TARGET_GPROF  ifdef TARGET_GPROF
 USE_I386_LD=y  USE_I386_LD=y
 endif  endif
Line 81  ifdef CONFIG_STATIC Line 187  ifdef CONFIG_STATIC
 USE_I386_LD=y  USE_I386_LD=y
 endif  endif
 ifdef USE_I386_LD  ifdef USE_I386_LD
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386.ld  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 else  else
 # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object  # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
 # that the kernel ELF loader considers as an executable. I think this  # that the kernel ELF loader considers as an executable. I think this
Line 91  endif Line 197  endif
 endif  endif
   
 ifeq ($(ARCH),x86_64)  ifeq ($(ARCH),x86_64)
 OP_CFLAGS=$(CFLAGS) -falign-functions=0  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/x86_64.ld  
 endif  endif
   
 ifeq ($(ARCH),ppc)  ifeq ($(ARCH),ppc)
 CFLAGS+= -D__powerpc__  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 OP_CFLAGS=$(CFLAGS)  endif
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/ppc.ld  
   ifeq ($(ARCH),ppc64)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
   
 ifeq ($(ARCH),s390)  ifeq ($(ARCH),s390)
 OP_CFLAGS=$(CFLAGS)  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/s390.ld  
 endif  endif
   
 ifeq ($(ARCH),sparc)  ifeq ($(ARCH),sparc)
 ifeq ($(CONFIG_SOLARIS),yes)  # -static is used to avoid g1/g3 usage by the dynamic linker    
 CFLAGS+=-mcpu=ultrasparc -m32 -ffixed-g2 -ffixed-g3  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
 LDFLAGS+=-m32  
 OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -fno-omit-frame-pointer -ffixed-i0  
 else  
 CFLAGS+=-mcpu=ultrasparc -m32 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6  
 LDFLAGS+=-m32  
 OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0  
 HELPER_CFLAGS=$(CFLAGS) -ffixed-i0 -mflat  
 # -static is used to avoid g1/g3 usage by the dynamic linker  
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc.ld -static  
 endif  
 endif  endif
   
 ifeq ($(ARCH),sparc64)  ifeq ($(ARCH),sparc64)
 CFLAGS+=-mcpu=ultrasparc -m64 -ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 LDFLAGS+=-m64  
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc64.ld  
 OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0  
 endif  endif
   
 ifeq ($(ARCH),alpha)  ifeq ($(ARCH),alpha)
 # -msmall-data is not used because we want two-instruction relocations  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 # for the constant constructions  
 OP_CFLAGS=-Wall -O2 -g  
 # Ensure there's only a single GP  
 CFLAGS += -msmall-data  
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/alpha.ld  
 endif  endif
   
 ifeq ($(ARCH),ia64)  ifeq ($(ARCH),ia64)
 CFLAGS += -mno-sdata  LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
 OP_CFLAGS=$(CFLAGS)  
 LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld  
 endif  endif
   
 ifeq ($(ARCH),arm)  ifeq ($(ARCH),arm)
 OP_CFLAGS=$(CFLAGS) -mno-sched-prolog -fno-omit-frame-pointer  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 LDFLAGS+=-Wl,-T,$(SRC_PATH)/arm.ld  
 endif  endif
   
 ifeq ($(ARCH),m68k)  ifeq ($(ARCH),m68k)
 OP_CFLAGS=$(CFLAGS) -fomit-frame-pointer  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 LDFLAGS+=-Wl,-T,m68k.ld  
 endif  endif
   
 ifeq ($(HAVE_GCC3_OPTIONS),yes)  ifeq ($(ARCH),mips)
 # very important to generate a return at the end of every operation  ifeq ($(WORDS_BIGENDIAN),yes)
 OP_CFLAGS+=-fno-reorder-blocks -fno-optimize-sibling-calls  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
   else
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
 endif  endif
   
 ifeq ($(CONFIG_DARWIN),yes)  
 OP_CFLAGS+= -mdynamic-no-pic  
 LIBS+=-lmx  
 endif  endif
   
 #########################################################  ifeq ($(ARCH),mips64)
   ifeq ($(WORDS_BIGENDIAN),yes)
 DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 LIBS+=-lm  else
 ifndef CONFIG_USER_ONLY  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
 LIBS+=-lz  
 endif  endif
 ifdef CONFIG_WIN32  
 LIBS+=-lwinmm -lws2_32 -liphlpapi  
 endif  
 ifdef CONFIG_SOLARIS  
 LIBS+=-lsocket -lnsl -lresolv  
 endif  endif
   
 # profiling code  # profiling code
 ifdef TARGET_GPROF  ifdef TARGET_GPROF
 LDFLAGS+=-p  LDFLAGS+=-p
 main.o: CFLAGS+=-p  CFLAGS+=-p
 endif  endif
   
 OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \  obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
       elfload.o linuxload.o        elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
 ifdef TARGET_HAS_BFLT        ioport-user.o
 OBJS+= flatload.o  obj-$(TARGET_HAS_BFLT) += flatload.o
   
   ifdef TARGET_HAS_ELFLOAD32
   elfload32.o: elfload.c
 endif  endif
   obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
   
 ifeq ($(TARGET_ARCH), i386)  ifeq ($(TARGET_ARCH), i386)
 OBJS+= vm86.o  obj-y += vm86.o
 endif  endif
 ifeq ($(TARGET_ARCH), arm)  
 OBJS+=nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \  
 nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \  
  nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o  
 endif  
 SRCS:= $(OBJS:.o=.c)  
 OBJS+= libqemu.a  
   
 # cpu emulator library  nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
 LIBOBJS=exec.o kqemu.o translate-op.o translate-all.o cpu-exec.o\  nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
         translate.o op.o   obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))
 ifdef CONFIG_SOFTFLOAT  obj-arm-y += arm-semi.o
 LIBOBJS+=fpu/softfloat.o  
 else  
 LIBOBJS+=fpu/softfloat-native.o  
 endif  
 DEFINES+=-I$(SRC_PATH)/fpu  
   
 ifeq ($(TARGET_ARCH), i386)  obj-m68k-y += m68k-sim.o m68k-semi.o
 LIBOBJS+=helper.o helper2.o  
 ifeq ($(ARCH), i386)  
 LIBOBJS+=translate-copy.o  
 endif  
 endif  
   
 ifeq ($(TARGET_ARCH), x86_64)  # Note: this is a workaround. The real fix is to avoid compiling
 LIBOBJS+=helper.o helper2.o  # cpu_signal_handler() in cpu-exec.c.
 endif  signal.o: CFLAGS += $(HELPER_CFLAGS)
   
 ifeq ($(TARGET_BASE_ARCH), ppc)  ARLIBS=../libqemu_user.a libqemu.a
 LIBOBJS+= op_helper.o helper.o  endif #CONFIG_LINUX_USER
 endif  
   
 ifeq ($(TARGET_ARCH), mips)  LIBS+= $(PTHREADLIBS)
 LIBOBJS+= op_helper.o helper.o  LIBS+= $(CLOCKLIBS)
 endif  
   
 ifeq ($(TARGET_BASE_ARCH), sparc)  #########################################################
 LIBOBJS+= op_helper.o helper.o  # Darwin user emulator target
 endif  
   
 ifeq ($(TARGET_BASE_ARCH), arm)  ifdef CONFIG_DARWIN_USER
 LIBOBJS+= op_helper.o helper.o  
 endif  VPATH+=:$(SRC_PATH)/darwin-user
   CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
   
   # Leave some space for the regular program loading zone
   LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
   
   LIBS+=-lmx
   
   obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
           gdbstub.o gdbstub-xml.o ioport-user.o
   
   # Note: this is a workaround. The real fix is to avoid compiling
   # cpu_signal_handler() in cpu-exec.c.
   signal.o: CFLAGS += $(HELPER_CFLAGS)
   
   ARLIBS=libqemu.a
   
   endif #CONFIG_DARWIN_USER
   
 ifeq ($(TARGET_BASE_ARCH), sh4)  #########################################################
 LIBOBJS+= op_helper.o helper.o  # BSD user emulator target
   
   ifdef CONFIG_BSD_USER
   
   VPATH+=:$(SRC_PATH)/bsd-user
   CPPFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
   
   ifdef CONFIG_STATIC
   LDFLAGS+=-static
 endif  endif
   
 # NOTE: the disassembler code is only needed for debugging  ifeq ($(ARCH),i386)
 LIBOBJS+=disas.o   ifdef TARGET_GPROF
 ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)  USE_I386_LD=y
 USE_I386_DIS=y  
 endif  endif
 ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)  ifdef CONFIG_STATIC
 USE_I386_DIS=y  USE_I386_LD=y
 endif  endif
 ifdef USE_I386_DIS  ifdef USE_I386_LD
 LIBOBJS+=i386-dis.o  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
   else
   # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
   # that the kernel ELF loader considers as an executable. I think this
   # is the simplest way to make it self virtualizable!
   LDFLAGS+=-Wl,-shared
 endif  endif
 ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)  
 LIBOBJS+=alpha-dis.o  
 endif  endif
 ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)  
 LIBOBJS+=ppc-dis.o  ifeq ($(ARCH),x86_64)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
 ifeq ($(findstring mips, $(TARGET_ARCH) $(ARCH)),mips)  
 LIBOBJS+=mips-dis.o  ifeq ($(ARCH),ppc)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
 ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)  
 LIBOBJS+=sparc-dis.o  ifeq ($(ARCH),ppc64)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
 ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)  
 LIBOBJS+=arm-dis.o  ifeq ($(ARCH),s390)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
 ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)  
 LIBOBJS+=m68k-dis.o  ifeq ($(ARCH),sparc)
   # -static is used to avoid g1/g3 usage by the dynamic linker
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
 endif  endif
 ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)  
 LIBOBJS+=sh4-dis.o  ifeq ($(ARCH),sparc64)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
   
 ifdef CONFIG_GDBSTUB  ifeq ($(ARCH),alpha)
 OBJS+=gdbstub.o  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 endif  endif
   
 all: $(PROGS)  ifeq ($(ARCH),ia64)
   LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
   endif
   
 $(QEMU_USER): $(OBJS)  ifeq ($(ARCH),arm)
         $(CC) $(LDFLAGS) -o $@ $^  $(LIBS)  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 ifeq ($(ARCH),alpha)  
 # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of  
 # the address space (31 bit so sign extending doesn't matter)  
         echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc  
 endif  endif
   
 # must use static linking to avoid leaving stuff in virtual address space  ifeq ($(ARCH),m68k)
 VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.o loader.o  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o  
 ifdef CONFIG_WIN32  
 VL_OBJS+=tap-win32.o  
 endif  endif
   
 SOUND_HW = sb16.o es1370.o  ifeq ($(ARCH),mips)
 AUDIODRV = audio.o noaudio.o wavaudio.o  ifeq ($(WORDS_BIGENDIAN),yes)
 ifdef CONFIG_SDL  LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
 AUDIODRV += sdlaudio.o  else
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
 endif  endif
 ifdef CONFIG_OSS  
 AUDIODRV += ossaudio.o  
 endif  endif
 ifdef CONFIG_COREAUDIO  
 AUDIODRV += coreaudio.o  ifeq ($(ARCH),mips64)
   ifeq ($(WORDS_BIGENDIAN),yes)
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
   else
   LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
   endif
 endif  endif
   
   obj-y = main.o bsdload.o elfload.o mmap.o path.o signal.o strace.o syscall.o \
           gdbstub.o gdbstub-xml.o ioport-user.o
   obj-y += uaccess.o
   
   # Note: this is a workaround. The real fix is to avoid compiling
   # cpu_signal_handler() in cpu-exec.c.
   signal.o: CFLAGS += $(HELPER_CFLAGS)
   
   ARLIBS=libqemu.a ../libqemu_user.a
   
   endif #CONFIG_BSD_USER
   
   #########################################################
   # System emulator target
   ifndef CONFIG_USER_ONLY
   
   obj-y = vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o \
           gdbstub.o gdbstub-xml.o msix.o ioport.o
   # virtio has to be here due to weird dependency between PCI and virtio-net.
   # need to fix this properly
   obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o
   obj-$(CONFIG_KVM) += kvm.o kvm-all.o
   
   LIBS+=-lz
 ifdef CONFIG_ALSA  ifdef CONFIG_ALSA
 AUDIODRV += alsaaudio.o  
 LIBS += -lasound  LIBS += -lasound
 endif  endif
   ifdef CONFIG_ESD
   LIBS += -lesd
   endif
   ifdef CONFIG_PA
   LIBS += -lpulse-simple
   endif
 ifdef CONFIG_DSOUND  ifdef CONFIG_DSOUND
 AUDIODRV += dsoundaudio.o  
 LIBS += -lole32 -ldxguid  LIBS += -lole32 -ldxguid
 endif  endif
 ifdef CONFIG_FMOD  ifdef CONFIG_FMOD
 AUDIODRV += fmodaudio.o  
 audio.o fmodaudio.o: DEFINES := -I$(CONFIG_FMOD_INC) $(DEFINES)  
 LIBS += $(CONFIG_FMOD_LIB)  LIBS += $(CONFIG_FMOD_LIB)
 endif  endif
   ifdef CONFIG_OSS
   LIBS += $(CONFIG_OSS_LIB)
   endif
   
   sound-obj-y =
   sound-obj-$(CONFIG_SB16) += sb16.o
   sound-obj-$(CONFIG_ES1370) += es1370.o
   sound-obj-$(CONFIG_AC97) += ac97.o
   sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
   sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
   sound-obj-$(CONFIG_CS4231A) += cs4231a.o
   
 ifdef CONFIG_ADLIB  ifdef CONFIG_ADLIB
 SOUND_HW += fmopl.o adlib.o  adlib.o fmopl.o: CFLAGS := ${CFLAGS} -DBUILD_Y8950=0
   endif
   
   ifdef CONFIG_VNC_TLS
   CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
   LIBS += $(CONFIG_VNC_TLS_LIBS)
   endif
   
   ifdef CONFIG_VNC_SASL
   CPPFLAGS += $(CONFIG_VNC_SASL_CFLAGS)
   LIBS += $(CONFIG_VNC_SASL_LIBS)
 endif  endif
 AUDIODRV+= wavcapture.o  
   
 # SCSI layer  ifdef CONFIG_BLUEZ
 VL_OBJS+= scsi-disk.o cdrom.o lsi53c895a.o  LIBS += $(CONFIG_BLUEZ_LIBS)
   endif
   
   # xen backend driver support
   obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
   ifeq ($(CONFIG_XEN), y)
     LIBS += $(XEN_LIBS)
   endif
   
 # USB layer  # USB layer
 VL_OBJS+= usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o  obj-y += usb-ohci.o
   
 # PCI network cards  # PCI network cards
 VL_OBJS+= ne2000.o rtl8139.o pcnet.o  obj-y += eepro100.o
   obj-y += ne2000.o
   obj-y += pcnet.o
   obj-y += rtl8139.o
   obj-y += e1000.o
   
   # Generic watchdog support and some watchdog devices
   obj-y += wdt_ib700.o wdt_i6300esb.o
   
 ifeq ($(TARGET_BASE_ARCH), i386)  
 # Hardware support  # Hardware support
 VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)  obj-i386-y = ide.o pckbd.o vga.o $(sound-obj-y) dma.o
 VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o  obj-i386-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
 VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o acpi.o piix_pci.o  obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o
 VL_OBJS+= usb-uhci.o  obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
 DEFINES += -DHAS_AUDIO  obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o
   
   ifeq ($(TARGET_BASE_ARCH), i386)
   CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
 endif  endif
   
   # shared objects
   obj-ppc-y = ppc.o ide.o vga.o $(sound-obj-y) dma.o openpic.o
   # PREP target
   obj-ppc-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o
   obj-ppc-y += prep_pci.o ppc_prep.o
   # Mac shared devices
   obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
   # OldWorld PowerMac
   obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
   # NewWorld PowerMac
   obj-ppc-y += unin_pci.o ppc_newworld.o
   # PowerPC 4xx boards
   obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
   obj-ppc-y += ppc440.o ppc440_bamboo.o
   # PowerPC E500 boards
   obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o
   obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
   
 ifeq ($(TARGET_BASE_ARCH), ppc)  ifeq ($(TARGET_BASE_ARCH), ppc)
 VL_OBJS+= ppc.o ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)  CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
 VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o  
 VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o  
 VL_OBJS+= grackle_pci.o prep_pci.o unin_pci.o  
 DEFINES += -DHAS_AUDIO  
 endif  
 ifeq ($(TARGET_ARCH), mips)  
 VL_OBJS+= mips_r4k.o dma.o vga.o serial.o i8254.o i8259.o  
 #VL_OBJS+= #ide.o pckbd.o fdc.o m48t59.o  
 endif  endif
 ifeq ($(TARGET_BASE_ARCH), sparc)  
 ifeq ($(TARGET_ARCH), sparc64)  ifdef FDT_LIBS
 VL_OBJS+= sun4u.o ide.o pckbd.o ps2.o vga.o apb_pci.o  obj-ppc-y += device_tree.o
 VL_OBJS+= fdc.o mc146818rtc.o serial.o m48t59.o  LIBS+= $(FDT_LIBS)
 VL_OBJS+= cirrus_vga.o parallel.o  
 else  
 VL_OBJS+= sun4m.o tcx.o lance.o iommu.o m48t59.o slavio_intctl.o  
 VL_OBJS+= slavio_timer.o slavio_serial.o slavio_misc.o fdc.o esp.o  
 endif  
 endif  
 ifeq ($(TARGET_BASE_ARCH), arm)  
 VL_OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o  
 VL_OBJS+= arm_boot.o pl011.o pl050.o pl080.o pl110.o pl190.o  
 VL_OBJS+= versatile_pci.o  
 endif  endif
 ifeq ($(TARGET_BASE_ARCH), sh4)  
 VL_OBJS+= shix.o sh7750.o sh7750_regnames.o tc58128.o  obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
   obj-mips-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o
   obj-mips-y += g364fb.o jazz_led.o dp8393x.o
   obj-mips-y += ide.o gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
   obj-mips-y += piix_pci.o parallel.o cirrus_vga.o pcspk.o $(sound-obj-y)
   obj-mips-y += mipsnet.o
   obj-mips-y += pflash_cfi01.o
   obj-mips-y += vmware_vga.o
   
   ifeq ($(TARGET_BASE_ARCH), mips)
   CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
 endif  endif
 ifdef CONFIG_GDBSTUB  
 VL_OBJS+=gdbstub.o   obj-microblaze-y = petalogix_s3adsp1800_mmu.o
   
   obj-microblaze-y += microblaze_pic_cpu.o
   obj-microblaze-y += xilinx_intc.o
   obj-microblaze-y += xilinx_timer.o
   obj-microblaze-y += xilinx_uartlite.o
   obj-microblaze-y += xilinx_ethlite.o
   
   obj-microblaze-y += pflash_cfi02.o
   
   ifdef FDT_LIBS
   obj-microblaze-y += device_tree.o
   LIBS+= $(FDT_LIBS)
 endif  endif
 ifdef CONFIG_SDL  
 VL_OBJS+=sdl.o  # Boards
   obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o
   
   # IO blocks
   obj-cris-y += etraxfs_dma.o
   obj-cris-y += etraxfs_pic.o
   obj-cris-y += etraxfs_eth.o
   obj-cris-y += etraxfs_timer.o
   obj-cris-y += etraxfs_ser.o
   
   obj-cris-y += pflash_cfi02.o
   
   ifeq ($(TARGET_ARCH), sparc64)
   obj-sparc-y = sun4u.o ide.o pckbd.o vga.o apb_pci.o
   obj-sparc-y += fdc.o mc146818rtc.o serial.o
   obj-sparc-y += cirrus_vga.o parallel.o
   else
   obj-sparc-y = sun4m.o tcx.o iommu.o slavio_intctl.o
   obj-sparc-y += slavio_timer.o slavio_misc.o fdc.o sparc32_dma.o
   obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
   endif
   
   obj-arm-y = integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o
   obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
   obj-arm-y += versatile_pci.o
   obj-arm-y += realview_gic.o realview.o arm_sysctl.o mpcore.o
   obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
   obj-arm-y += pl061.o
   obj-arm-y += arm-semi.o
   obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
   obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
   obj-arm-y += pflash_cfi01.o gumstix.o
   obj-arm-y += zaurus.o ide.o serial.o spitz.o tosa.o tc6393xb.o
   obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
   obj-arm-y += omap2.o omap_dss.o soc_dma.o
   obj-arm-y += omap_sx1.o palm.o tsc210x.o
   obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
   obj-arm-y += mst_fpga.o mainstone.o
   obj-arm-y += musicpal.o pflash_cfi02.o
   obj-arm-y += framebuffer.o
   obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
   obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
   obj-arm-y += syborg_virtio.o
   
   ifeq ($(TARGET_BASE_ARCH), arm)
   CPPFLAGS += -DHAS_AUDIO
 endif  endif
 VL_OBJS+=vnc.o  
   obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
   obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
   obj-sh4-y += ide.o
   
   obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
   obj-m68k-y += m68k-semi.o dummy_m68k.o
   
 ifdef CONFIG_COCOA  ifdef CONFIG_COCOA
 VL_OBJS+=cocoa.o  
 COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit  COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
 ifdef CONFIG_COREAUDIO  ifdef CONFIG_COREAUDIO
 COCOA_LIBS+=-framework CoreAudio  COCOA_LIBS+=-framework CoreAudio
 endif  endif
 endif  endif
 ifdef CONFIG_SLIRP  ifdef CONFIG_SLIRP
 DEFINES+=-I$(SRC_PATH)/slirp  CPPFLAGS+=-I$(SRC_PATH)/slirp
 SLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \  
 slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \  
 tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o  
 VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS))  
 endif  endif
   
 VL_LDFLAGS=  
 # specific flags are needed for non soft mmu emulator  # specific flags are needed for non soft mmu emulator
 ifdef CONFIG_STATIC  ifdef CONFIG_STATIC
 VL_LDFLAGS+=-static  LDFLAGS+=-static
 endif  
 ifndef CONFIG_SOFTMMU  
 VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld   
 endif  endif
 ifndef CONFIG_DARWIN  ifndef CONFIG_DARWIN
 ifndef CONFIG_WIN32  ifndef CONFIG_WIN32
 ifndef CONFIG_SOLARIS  ifndef CONFIG_SOLARIS
 VL_LIBS=-lutil -lrt  ifndef CONFIG_AIX
   LIBS+=-lutil
   endif
 endif  endif
 endif  endif
 endif  endif
 ifdef TARGET_GPROF  ifdef TARGET_GPROF
 vl.o: CFLAGS+=-p  vl.o: CFLAGS+=-p
 VL_LDFLAGS+=-p  LDFLAGS+=-p
 endif  endif
   
 ifeq ($(ARCH),ia64)  ifeq ($(ARCH),ia64)
 VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld  LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
 endif  
   
 ifeq ($(ARCH),sparc64)  
 VL_LDFLAGS+=-m64  
 VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc64.ld  
 endif  endif
   
 ifdef CONFIG_WIN32  ifdef CONFIG_WIN32
 SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole  SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
 endif  endif
   
 $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a  # profiling code
         $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)  ifdef TARGET_GPROF
   LDFLAGS+=-p
 cocoa.o: cocoa.m  main.o: CFLAGS+=-p
         $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<  
   
 sdl.o: sdl.c keymaps.c sdl_keysym.h  
         $(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $<  
   
 vnc.o: vnc.c keymaps.c sdl_keysym.h vnchextile.h  
         $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<  
   
 sdlaudio.o: sdlaudio.c  
         $(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $<  
   
 depend: $(SRCS)  
         $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend  
   
 vldepend: $(VL_OBJS:.o=.c)  
         $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend  
   
 # libqemu   
   
 libqemu.a: $(LIBOBJS)  
         rm -f $@  
         $(AR) rcs $@ $(LIBOBJS)  
   
 translate.o: translate.c gen-op.h opc.h cpu.h  
   
 translate-all.o: translate-all.c opc.h cpu.h  
   
 translate-op.o: translate-all.c op.h opc.h cpu.h  
   
 op.h: op.o $(DYNGEN)  
         $(DYNGEN) -o $@ $<  
   
 opc.h: op.o $(DYNGEN)  
         $(DYNGEN) -c -o $@ $<  
   
 gen-op.h: op.o $(DYNGEN)  
         $(DYNGEN) -g -o $@ $<  
   
 op.o: op.c  
         $(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $<  
   
 helper.o: helper.c  
         $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<  
   
 ifeq ($(TARGET_BASE_ARCH), i386)  
 op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h  
 endif  endif
   
 ifeq ($(TARGET_ARCH), arm)  vl.o: CFLAGS+=$(SDL_CFLAGS)
 op.o: op.c op_template.h  
 pl110.o: pl110_template.h  
 endif  
   
 ifeq ($(TARGET_BASE_ARCH), sparc)  vl.o: qemu-options.h
 op.o: op.c op_template.h op_mem.h fop_template.h fbranch_template.h  
 magic_load.o: elf_op.h  
 endif  
   
 ifeq ($(TARGET_BASE_ARCH), ppc)  monitor.o: qemu-monitor.h
 op.o: op.c op_template.h op_mem.h  
 op_helper.o: op_helper_mem.h  
 translate.o: translate.c translate_init.c  
 endif  
   
 ifeq ($(TARGET_ARCH), mips)  LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS)
 op.o: op.c op_template.c op_mem.c  ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
 op_helper.o: op_helper_mem.c  
 endif  
   
 loader.o: loader.c elf_ops.h  endif # !CONFIG_USER_ONLY
   
 acpi.o: acpi.c acpi-dsdt.hex  $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS)
           $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
   
 ifdef BUILD_ACPI_TABLES  
 $(SRC_PATH)/hw/acpi-dsdt.hex: acpi-dsdt.dsl  
         iasl -tc -p $@ $<  
 endif  
   
 ifeq ($(TARGET_ARCH), sh4)  gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh
 op.o: op.c op_mem.c cpu.h  ifeq ($(TARGET_XML_FILES),)
 op_helper.o: op_helper.c exec.h cpu.h          $(call quiet-command,rm -f $@ && echo > $@,"  GEN   $(TARGET_DIR)$@")
 helper.o: helper.c exec.h cpu.h  else
 sh7750.o: sh7750.c sh7750_regs.h sh7750_regnames.h cpu.h          $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES),"  GEN   $(TARGET_DIR)$@")
 shix.o: shix.c sh7750_regs.h sh7750_regnames.h  
 sh7750_regnames.o: sh7750_regnames.c sh7750_regnames.h sh7750_regs.h  
 tc58128.o: tc58128.c  
 endif  endif
   
 $(OBJS) $(LIBOBJS) $(VL_OBJS): config.h ../config-host.h  qemu-options.h: $(SRC_PATH)/qemu-options.hx
           $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
   
 %.o: %.c  qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx
         $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<          $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
   
 %.o: %.S  
         $(CC) $(DEFINES) -c -o $@ $<  
   
 clean:  clean:
         rm -f *.o  *.a *~ $(PROGS) gen-op.h opc.h op.h nwfpe/*.o slirp/*.o fpu/*.o          rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
           rm -f *.d */*.d tcg/*.o
           rm -f qemu-options.h qemu-monitor.h gdbstub-xml.c
   
 install: all   install: all
 ifneq ($(PROGS),)  ifneq ($(PROGS),)
         $(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"          $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)"
 endif  
   
 ifneq ($(wildcard .depend),)  
 include .depend  
 endif  endif
   
 ifeq (1, 0)  # Include automatically generated dependency files
 audio.o sdlaudio.o dsoundaudio.o ossaudio.o wavaudio.o noaudio.o \  -include $(wildcard *.d */*.d)
 fmodaudio.o alsaaudio.o mixeng.o sb16.o es1370.o gus.o adlib.o: \  
 CFLAGS := $(CFLAGS) -Wall -Werror -W -Wsign-compare  
 endif  

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.8


unix.superglobalmegacorp.com