6 LDFLAGS_BASE:=$(LDFLAGS)
7 TARGET_BASE_ARCH:=$(TARGET_ARCH)
8 ifeq ($(TARGET_ARCH), x86_64)
11 ifeq ($(TARGET_ARCH), mipsn32)
12 TARGET_BASE_ARCH:=mips
14 ifeq ($(TARGET_ARCH), mips64)
15 TARGET_BASE_ARCH:=mips
17 ifeq ($(TARGET_ARCH), ppc64)
20 ifeq ($(TARGET_ARCH), ppc64h)
23 ifeq ($(TARGET_ARCH), ppcemb)
26 ifeq ($(TARGET_ARCH), sparc64)
27 TARGET_BASE_ARCH:=sparc
29 ifeq ($(TARGET_ARCH), ia64)
30 TARGET_BASE_ARCH:=ia64
32 TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
33 VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
34 CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MP -DNEED_CPU_H
35 ifdef CONFIG_DARWIN_USER
36 VPATH+=:$(SRC_PATH)/darwin-user
37 CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
39 ifdef CONFIG_LINUX_USER
40 VPATH+=:$(SRC_PATH)/linux-user
42 TARGET_ABI_DIR=$(TARGET_ARCH)
44 CPPFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
50 HELPER_CFLAGS=$(CFLAGS)
51 DYNGEN=../dyngen$(EXESUF)
53 TARGET_ARCH2=$(TARGET_ARCH)
54 ifeq ($(TARGET_ARCH),arm)
55 ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
59 ifeq ($(TARGET_ARCH),sh4)
60 ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
64 ifeq ($(TARGET_ARCH),mips)
65 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
69 ifeq ($(TARGET_ARCH),mipsn32)
70 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
71 TARGET_ARCH2=mipsn32el
74 ifeq ($(TARGET_ARCH),mips64)
75 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
79 ifeq ($(TARGET_ARCH),sparc64)
80 ifeq ($(TARGET_ABI_DIR),sparc)
81 TARGET_ARCH2=sparc32plus
84 QEMU_USER=qemu-$(TARGET_ARCH2)
85 # system emulator name
87 ifeq ($(TARGET_ARCH), i386)
88 QEMU_SYSTEM=qemu$(EXESUF)
90 QEMU_SYSTEM=qemu-system-$(TARGET_ARCH2)$(EXESUF)
96 ifdef CONFIG_USER_ONLY
100 ifndef CONFIG_SOFTMMU
103 endif # !CONFIG_USER_ONLY
106 BASE_LDFLAGS+=-static
109 # We require -O2 to avoid the stack setup prologue in EXIT_TB
110 OP_CFLAGS := -Wall -O2 -g -fno-strict-aliasing
113 # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
115 cc-option = $(shell if $(CC) $(OP_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
116 > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
118 OP_CFLAGS+=$(call cc-option, -fno-reorder-blocks, "")
119 OP_CFLAGS+=$(call cc-option, -fno-gcse, "")
120 OP_CFLAGS+=$(call cc-option, -fno-tree-ch, "")
121 OP_CFLAGS+=$(call cc-option, -fno-optimize-sibling-calls, "")
122 OP_CFLAGS+=$(call cc-option, -fno-crossjumping, "")
123 OP_CFLAGS+=$(call cc-option, -fno-align-labels, "")
124 OP_CFLAGS+=$(call cc-option, -fno-align-jumps, "")
125 OP_CFLAGS+=$(call cc-option, -fno-align-functions, $(call cc-option, -malign-functions=0, ""))
126 OP_CFLAGS+=$(call cc-option, -fno-section-anchors, "")
129 HELPER_CFLAGS+=-fomit-frame-pointer
130 OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer
138 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
140 ifdef CONFIG_LINUX_USER
141 # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
142 # that the kernel ELF loader considers as an executable. I think this
143 # is the simplest way to make it self virtualizable!
144 BASE_LDFLAGS+=-Wl,-shared
149 ifeq ($(ARCH),x86_64)
150 ifneq ($(CONFIG_SOLARIS),yes)
151 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
156 CPPFLAGS+= -D__powerpc__
157 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
161 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
165 BASE_CFLAGS+=-ffixed-g2 -ffixed-g3
166 OP_CFLAGS+=-fno-delayed-branch -ffixed-i0
167 ifeq ($(CONFIG_SOLARIS),yes)
168 OP_CFLAGS+=-fno-omit-frame-pointer
170 BASE_CFLAGS+=-ffixed-g1 -ffixed-g6
171 HELPER_CFLAGS=$(CFLAGS) -ffixed-i0
172 # -static is used to avoid g1/g3 usage by the dynamic linker
173 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
177 ifeq ($(ARCH),sparc64)
178 BASE_CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
179 OP_CFLAGS+=-mcpu=ultrasparc -m64 -fno-delayed-branch -ffixed-i0
180 ifneq ($(CONFIG_SOLARIS),yes)
181 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
182 OP_CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
187 # -msmall-data is not used for OP_CFLAGS because we want two-instruction
188 # relocations for the constant constructions
189 # Ensure there's only a single GP
190 BASE_CFLAGS+=-msmall-data
191 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
195 BASE_CFLAGS+=-mno-sdata
196 OP_CFLAGS+=-mno-sdata
197 BASE_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
201 OP_CFLAGS+=-mno-sched-prolog -fno-omit-frame-pointer
202 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
206 OP_CFLAGS+=-fomit-frame-pointer
207 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
211 OP_CFLAGS+=-mabi=32 -G0 -fno-PIC -mno-abicalls -fomit-frame-pointer -fno-delayed-branch -Wa,-O0
212 ifeq ($(WORDS_BIGENDIAN),yes)
213 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
215 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
219 ifeq ($(ARCH),mips64)
220 OP_CFLAGS+=-mabi=n32 -G0 -fno-PIC -mno-abicalls -fomit-frame-pointer -fno-delayed-branch -Wa,-O0
221 ifeq ($(WORDS_BIGENDIAN),yes)
222 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
224 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
228 ifeq ($(CONFIG_DARWIN),yes)
232 ifdef CONFIG_DARWIN_USER
233 # Leave some space for the regular program loading zone
234 BASE_LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
237 BASE_CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
238 BASE_LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
239 OP_CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
240 OP_LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
242 #########################################################
244 CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__user=
246 ifndef CONFIG_USER_ONLY
250 LIBS+=-lwinmm -lws2_32 -liphlpapi
253 LIBS+=-lsocket -lnsl -lresolv
254 ifdef NEEDS_LIBSUNMATH
256 LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
257 OP_CFLAGS+=-I/opt/SUNWspro/prod/include/cc
258 BASE_CFLAGS+=-I/opt/SUNWspro/prod/include/cc
265 main.o: BASE_CFLAGS+=-p
268 ifdef CONFIG_LINUX_USER
269 OBJS= main.o syscall.o strace.o mmap.o signal.o path.o osdep.o thunk.o \
270 elfload.o linuxload.o uaccess.o
272 ifdef TARGET_HAS_BFLT
275 ifdef TARGET_HAS_ELFLOAD32
277 elfload32.o: elfload.c
280 ifeq ($(TARGET_ARCH), i386)
283 ifeq ($(TARGET_ARCH), arm)
284 OBJS+=nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \
285 nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \
286 nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o
288 ifeq ($(TARGET_ARCH), m68k)
289 OBJS+= m68k-sim.o m68k-semi.o
291 endif #CONFIG_LINUX_USER
293 ifdef CONFIG_DARWIN_USER
294 OBJS= main.o commpage.o machload.o mmap.o osdep.o signal.o syscall.o thunk.o
300 # cpu emulator library
301 LIBOBJS=exec.o kqemu.o qemu-kvm.o translate-op.o translate-all.o cpu-exec.o\
302 translate.o op.o host-utils.o qemu-kvm-helper.o kvm-tpr-opt.o
303 ifdef CONFIG_SOFTFLOAT
304 LIBOBJS+=fpu/softfloat.o
306 LIBOBJS+=fpu/softfloat-native.o
308 CPPFLAGS+=-I$(SRC_PATH)/fpu
310 ifeq ($(TARGET_ARCH), i386)
311 LIBOBJS+=helper.o helper2.o
312 LIBOBJS+=qemu-kvm-x86.o
315 ifeq ($(TARGET_ARCH), x86_64)
316 LIBOBJS+=helper.o helper2.o
317 LIBOBJS+=qemu-kvm-x86.o
320 ifeq ($(TARGET_BASE_ARCH), ppc)
321 LIBOBJS+= op_helper.o helper.o
324 ifeq ($(TARGET_BASE_ARCH), mips)
325 LIBOBJS+= op_helper.o helper.o
328 ifeq ($(TARGET_BASE_ARCH), sparc)
329 LIBOBJS+= op_helper.o helper.o
332 ifeq ($(TARGET_BASE_ARCH), arm)
333 LIBOBJS+= op_helper.o helper.o
336 ifeq ($(TARGET_BASE_ARCH), sh4)
337 LIBOBJS+= op_helper.o helper.o
340 ifeq ($(TARGET_BASE_ARCH), m68k)
341 LIBOBJS+= op_helper.o helper.o
344 ifeq ($(TARGET_BASE_ARCH), alpha)
345 LIBOBJS+= op_helper.o helper.o alpha_palcode.o
348 ifeq ($(TARGET_BASE_ARCH), ia64)
349 LIBOBJS+=op_helper.o firmware.o
350 LIBOBJS+=qemu-kvm-ia64.o
353 ifeq ($(TARGET_BASE_ARCH), cris)
354 LIBOBJS+= op_helper.o helper.o
357 ifndef CONFIG_USER_ONLY
363 # NOTE: the disassembler code is only needed for debugging
365 ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
368 ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
374 ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
377 ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
380 ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips)
383 ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
386 ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
389 ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
392 ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
395 ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390)
405 $(QEMU_USER): $(OBJS)
406 $(CC) $(LDFLAGS) $(BASE_LDFLAGS) -o $@ $^ $(LIBS)
408 # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
409 # the address space (31 bit so sign extending doesn't matter)
410 echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
413 # must use static linking to avoid leaving stuff in virtual address space
414 VL_OBJS=vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o migration.o
415 # XXX: suppress QEMU_TOOL tests
417 VL_OBJS+=block-raw-win32.o
419 VL_OBJS+=block-raw-posix.o
426 LIBS += -lole32 -ldxguid
429 LIBS += $(CONFIG_FMOD_LIB)
432 SOUND_HW = sb16.o es1370.o
434 SOUND_HW += fmopl.o adlib.o
437 ifdef CONFIG_KVM_KERNEL_INC
438 CFLAGS += -I $(CONFIG_KVM_KERNEL_INC)
440 DEPLIBS += ../libkvm/libkvm.a
444 CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
445 LIBS += $(CONFIG_VNC_TLS_LIBS)
449 VL_OBJS+= lsi53c895a.o
455 VL_OBJS += eeprom93xx.o
458 VL_OBJS += eepro100.o
464 VL_OBJS+= hypercall.o
467 VL_OBJS += virtio.o virtio-net.o virtio-blk.o
469 ifeq ($(TARGET_BASE_ARCH), i386)
471 VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o
472 VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
473 VL_OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
474 VL_OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o
475 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
477 ifeq ($(TARGET_BASE_ARCH), ia64)
479 VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
480 VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o ipf.o
481 VL_OBJS+= cirrus_vga.o parallel.o acpi.o piix_pci.o
482 VL_OBJS+= usb-uhci.o smbus_eeprom.o
483 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
485 ifeq ($(TARGET_BASE_ARCH), ppc)
486 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
488 VL_OBJS+= ppc.o ide.o vga.o $(SOUND_HW) dma.o openpic.o
490 VL_OBJS+= pckbd.o ps2.o serial.o i8259.o i8254.o fdc.o m48t59.o mc146818rtc.o
491 VL_OBJS+= prep_pci.o ppc_prep.o
493 VL_OBJS+= macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
495 VL_OBJS+= heathrow_pic.o grackle_pci.o ppc_oldworld.o
497 VL_OBJS+= unin_pci.o ppc_chrp.o
499 VL_OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc405_uc.o ppc405_boards.o
501 ifeq ($(TARGET_BASE_ARCH), mips)
502 VL_OBJS+= mips_r4k.o mips_malta.o mips_pica61.o mips_mipssim.o
503 VL_OBJS+= mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o
505 VL_OBJS+= ide.o gt64xxx.o pckbd.o ps2.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
506 VL_OBJS+= piix_pci.o parallel.o cirrus_vga.o $(SOUND_HW)
508 CPPFLAGS += -DHAS_AUDIO
510 ifeq ($(TARGET_BASE_ARCH), cris)
513 VL_OBJS+= etraxfs_timer.o
514 VL_OBJS+= etraxfs_ser.o
516 ifeq ($(TARGET_BASE_ARCH), sparc)
517 ifeq ($(TARGET_ARCH), sparc64)
518 VL_OBJS+= sun4u.o ide.o pckbd.o ps2.o vga.o apb_pci.o
519 VL_OBJS+= fdc.o mc146818rtc.o serial.o m48t59.o
520 VL_OBJS+= cirrus_vga.o parallel.o ptimer.o
522 VL_OBJS+= sun4m.o tcx.o pcnet.o iommu.o m48t59.o slavio_intctl.o
523 VL_OBJS+= slavio_timer.o slavio_serial.o slavio_misc.o fdc.o esp.o sparc32_dma.o
524 VL_OBJS+= cs4231.o ptimer.o eccmemctl.o
527 ifeq ($(TARGET_BASE_ARCH), arm)
528 VL_OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o
529 VL_OBJS+= arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
530 VL_OBJS+= versatile_pci.o ptimer.o
531 VL_OBJS+= realview_gic.o realview.o arm_sysctl.o mpcore.o
532 VL_OBJS+= armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
535 VL_OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
536 VL_OBJS+= pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
537 VL_OBJS+= pflash_cfi01.o gumstix.o
538 VL_OBJS+= spitz.o ide.o serial.o nand.o ecc.o
539 VL_OBJS+= omap.o omap_lcdc.o omap1_clk.o omap_mmc.o omap_i2c.o
540 VL_OBJS+= palm.o tsc210x.o
541 VL_OBJS+= mst_fpga.o mainstone.o
542 CPPFLAGS += -DHAS_AUDIO
544 ifeq ($(TARGET_BASE_ARCH), sh4)
545 VL_OBJS+= shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
546 VL_OBJS+= sh_timer.o ptimer.o sh_serial.o sh_intc.o
548 ifeq ($(TARGET_BASE_ARCH), m68k)
549 VL_OBJS+= an5206.o mcf5206.o ptimer.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
550 VL_OBJS+= m68k-semi.o dummy_m68k.o
556 COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
557 ifdef CONFIG_COREAUDIO
558 COCOA_LIBS+=-framework CoreAudio
562 CPPFLAGS+=-I$(SRC_PATH)/slirp
565 VL_LDFLAGS=$(VL_OS_LDFLAGS)
567 # specific flags are needed for non soft mmu emulator
571 ifndef CONFIG_SOFTMMU
572 VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld
576 ifndef CONFIG_SOLARIS
582 vl.o: BASE_CFLAGS+=-p
587 VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
590 ifeq ($(ARCH),sparc64)
592 ifneq ($(CONFIG_SOLARIS),yes)
593 VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
597 ifeq ($(ARCH),x86_64)
599 ifneq ($(CONFIG_SOLARIS),yes)
600 VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
605 SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
608 $(QEMU_SYSTEM): $(VL_OBJS) ../libqemu_common.a libqemu.a $(DEPLIBS)
609 $(CC) $(VL_LDFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)
612 $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $^ 1>.depend
614 vldepend: $(VL_OBJS:.o=.c)
615 $(CC) -MM $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $^ 1>.depend
619 libqemu.a: $(LIBOBJS)
621 $(AR) rcs $@ $(LIBOBJS)
623 translate.o: translate.c gen-op.h opc.h cpu.h
625 translate-all.o: translate-all.c opc.h cpu.h
627 translate-op.o: translate-all.c op.h opc.h cpu.h
632 opc.h: op.o $(DYNGEN)
633 $(DYNGEN) -c -o $@ $<
635 gen-op.h: op.o $(DYNGEN)
636 $(DYNGEN) -g -o $@ $<
639 $(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
641 # HELPER_CFLAGS is used for all the code compiled with static register
643 ifeq ($(TARGET_BASE_ARCH), i386)
644 # XXX: rename helper.c to op_helper.c
645 qemu-kvm-x86.o: qemu-kvm-x86.c qemu-kvm.h
648 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
650 op_helper.o: op_helper.c
651 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
653 ifeq ($(TARGET_ARCH), ia64)
654 qemu-kvm-ia64.o: qemu-kvm-ia64.c qemu-kvm.h
655 firmware.o: firmware.c
656 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
659 cpu-exec.o: cpu-exec.c
660 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
662 qemu-kvm.o: qemu-kvm.c qemu-kvm.h
663 ifeq ($(TARGET_BASE_ARCH), i386)
664 qemu-kvm-helper.o: qemu-kvm-helper.c
667 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
669 # Note: this is a workaround. The real fix is to avoid compiling
670 # cpu_signal_handler() in cpu-exec.c.
672 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
675 $(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
678 $(CC) $(CPPFLAGS) -c -o $@ $<
681 rm -f *.o *.a *~ $(PROGS) gen-op.h opc.h op.h nwfpe/*.o fpu/*.o
686 $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
689 ifneq ($(wildcard .depend),)
694 audio.o sdlaudio.o dsoundaudio.o ossaudio.o wavaudio.o noaudio.o \
695 fmodaudio.o alsaaudio.o mixeng.o sb16.o es1370.o gus.o adlib.o: \
696 CFLAGS := $(CFLAGS) -Wall -Werror -W -Wsign-compare
699 # Include automatically generated dependency files
700 -include $(wildcard *.d */*.d)