net: fix vnet_hdr bustage with slirp
[qemu-kvm/markmc.git] / Makefile.target
blobc6dd9ea3da72cc91b422edd4afd358d1203974a8
1 CFLAGS=
2 LDFLAGS=
4 include config.mak
5 include $(SRC_PATH)/rules.mak
7 LDFLAGS_BASE:=$(LDFLAGS)
9 TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
10 VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
11 CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
12 #CFLAGS+=-Werror
13 LIBS=
15 ifdef CONFIG_USER_ONLY
16 # user emulator name
17 QEMU_PROG=qemu-$(TARGET_ARCH2)
18 else
19 # system emulator name
20 ifeq ($(TARGET_ARCH), i386)
21 QEMU_PROG=qemu$(EXESUF)
22 else
23 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
24 endif
25 endif
27 PROGS=$(QEMU_PROG)
29 HELPER_CFLAGS=
31 ifeq ($(ARCH),i386)
32 HELPER_CFLAGS+=-fomit-frame-pointer
33 endif
35 ifeq ($(subst ppc64,ppc,$(ARCH))$(TARGET_BASE_ARCH),ppcppc)
36 translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-time,)
37 endif
39 ifeq ($(ARCH),sparc)
40   ifneq ($(CONFIG_SOLARIS),y)
41     HELPER_CFLAGS+=-ffixed-i0
42   endif
43 endif
45 ifeq ($(ARCH),alpha)
46 # Ensure there's only a single GP
47 CFLAGS+=-msmall-data
48 endif
50 ifeq ($(ARCH),ia64)
51 CFLAGS+=-mno-sdata
52 endif
54 CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
55 CPPFLAGS+=-U_FORTIFY_SOURCE
56 CPPFLAGS+=-D__user=
57 LIBS+=-lm
58 ifdef CONFIG_WIN32
59 LIBS+=-lwinmm -lws2_32 -liphlpapi
60 endif
61 ifdef CONFIG_SOLARIS
62 LIBS+=-lsocket -lnsl -lresolv
63 ifdef CONFIG_NEEDS_LIBSUNMATH
64 LIBS+=-lsunmath
65 LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
66 CFLAGS+=-I/opt/SUNWspro/prod/include/cc
67 endif
68 endif
70 kvm.o: CFLAGS+=$(KVM_CFLAGS)
71 kvm-all.o: CFLAGS+=$(KVM_CFLAGS)
73 CFLAGS += $(KVM_CFLAGS)
75 all: $(PROGS)
76 # Dummy command so that make thinks it has done something
77         @true
79 #########################################################
80 # cpu emulator library
81 libobj-y = exec.o cpu-exec.o host-utils.o
82 ifeq ($(NO_CPU_EMULATION), 1)
83 libobj-y += fack-exec.o
84 else
85 libobj-y += translate-all.o translate.o 
86 endif
87 libobj-$(CONFIG_KQEMU) += kqemu.o
88 # TCG code generator
89 ifneq ($(NO_CPU_EMULATION), 1)
90 libobj-y += tcg/tcg.o tcg/tcg-runtime.o
91 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
92 endif
93 ifeq ($(ARCH),sparc64)
94 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
95 endif
97 ifdef CONFIG_SOFTFLOAT
98 libobj-y += fpu/softfloat.o
99 else
100 libobj-y += fpu/softfloat-native.o
101 endif
102 CPPFLAGS+=-I$(SRC_PATH)/fpu
103 libobj-y += op_helper.o helper.o
105 ifeq ($(TARGET_BASE_ARCH), i386)
106 libobj-y += helper.o
107 libobj-$(CONFIG_KVM) += kvm-tpr-opt.o
108 libobj-$(CONFIG_KVM) += qemu-kvm-helper.o
109 endif
111 libobj-y += op_helper.o
113 ifneq ($(TARGET_ARCH), ia64)
114 libobj-y += helper.o
115 endif
117 ifeq ($(TARGET_BASE_ARCH), arm)
118 libobj-y += neon_helper.o iwmmxt_helper.o
119 endif
121 ifeq ($(TARGET_BASE_ARCH), alpha)
122 libobj-y += alpha_palcode.o
123 endif
125 ifeq ($(TARGET_BASE_ARCH), ia64)
126 libobj-y += op_helper.o firmware.o
127 libobj-$(CONFIG_KVM) += qemu-kvm-ia64.o
128 endif
130 ifeq ($(TARGET_BASE_ARCH), cris)
131 libobj-y += cris-dis.o
133 ifndef CONFIG_USER_ONLY
134 libobj-y += mmu.o
135 endif
136 endif
139 # NOTE: the disassembler code is only needed for debugging
140 libobj-y += disas.o
141 ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
142 USE_I386_DIS=y
143 endif
144 ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
145 USE_I386_DIS=y
146 endif
147 libobj-$(USE_I386_DIS) += i386-dis.o
148 ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
149 libobj-y += alpha-dis.o
150 endif
151 ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
152 libobj-y += ppc-dis.o
153 endif
154 ifeq ($(findstring microblaze, $(TARGET_BASE_ARCH) $(ARCH)),microblaze)
155 libobj-y += microblaze-dis.o
156 ifndef CONFIG_USER_ONLY
157 libobj-y += mmu.o
158 endif
159 endif
160 ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips)
161 libobj-y += mips-dis.o
162 endif
163 ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
164 libobj-y += sparc-dis.o
165 endif
166 ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
167 libobj-y += arm-dis.o
168 endif
169 ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
170 libobj-y += m68k-dis.o
171 endif
172 ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
173 libobj-y += sh4-dis.o
174 endif
175 ifeq ($(findstring hppa, $(TARGET_BASE_ARCH) $(ARCH)),hppa)
176 libobj-y += hppa-dis.o
177 endif
178 ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390)
179 libobj-y += s390-dis.o
180 endif
182 # libqemu
184 libqemu.a: $(libobj-y)
186 translate.o: translate.c cpu.h
188 translate-all.o: translate-all.c cpu.h
190 tcg/tcg.o: cpu.h
192 # HELPER_CFLAGS is used for all the code compiled with static register
193 # variables
194 op_helper.o: CFLAGS += $(HELPER_CFLAGS)
196 cpu-exec.o: CFLAGS += $(HELPER_CFLAGS)
198 qemu-kvm-helper.o: qemu-kvm-helper.c
199         $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
201 #########################################################
202 # Linux user emulator target
204 ifdef CONFIG_LINUX_USER
206 VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
207 CPPFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
209 # profiling code
210 ifdef TARGET_GPROF
211 LDFLAGS+=-p
212 CFLAGS+=-p
213 endif
215 obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
216       elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
217       ioport-user.o
218 obj-$(TARGET_HAS_BFLT) += flatload.o
220 ifdef TARGET_HAS_ELFLOAD32
221 elfload32.o: elfload.c
222 endif
223 obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
225 ifeq ($(TARGET_ARCH), i386)
226 obj-y += vm86.o
227 endif
229 nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
230 nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
231 obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))
232 obj-arm-y += arm-semi.o
234 obj-m68k-y += m68k-sim.o m68k-semi.o
236 # Note: this is a workaround. The real fix is to avoid compiling
237 # cpu_signal_handler() in cpu-exec.c.
238 signal.o: CFLAGS += $(HELPER_CFLAGS)
240 ARLIBS=../libqemu_user.a libqemu.a
241 endif #CONFIG_LINUX_USER
243 LIBS+= $(PTHREADLIBS)
244 LIBS+= $(CLOCKLIBS)
246 #########################################################
247 # Darwin user emulator target
249 ifdef CONFIG_DARWIN_USER
251 VPATH+=:$(SRC_PATH)/darwin-user
252 CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
254 # Leave some space for the regular program loading zone
255 LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
257 LIBS+=-lmx
259 obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
260         gdbstub.o gdbstub-xml.o ioport-user.o
262 # Note: this is a workaround. The real fix is to avoid compiling
263 # cpu_signal_handler() in cpu-exec.c.
264 signal.o: CFLAGS += $(HELPER_CFLAGS)
266 ARLIBS=libqemu.a
268 endif #CONFIG_DARWIN_USER
270 #########################################################
271 # BSD user emulator target
273 ifdef CONFIG_BSD_USER
275 VPATH+=:$(SRC_PATH)/bsd-user
276 CPPFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
278 obj-y = main.o bsdload.o elfload.o mmap.o path.o signal.o strace.o syscall.o \
279         gdbstub.o gdbstub-xml.o ioport-user.o
280 obj-y += uaccess.o
282 # Note: this is a workaround. The real fix is to avoid compiling
283 # cpu_signal_handler() in cpu-exec.c.
284 signal.o: CFLAGS += $(HELPER_CFLAGS)
286 ARLIBS=libqemu.a ../libqemu_user.a
288 endif #CONFIG_BSD_USER
290 #########################################################
291 # System emulator target
292 ifndef CONFIG_USER_ONLY
294 obj-y = vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o \
295         gdbstub.o gdbstub-xml.o msix.o ioport.o
296 # virtio has to be here due to weird dependency between PCI and virtio-net.
297 # need to fix this properly
298 obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o
299 obj-$(CONFIG_KVM) += kvm.o kvm-all.o
301 LIBS+=-lz
302 ifdef CONFIG_ALSA
303 LIBS += -lasound
304 endif
305 ifdef CONFIG_ESD
306 LIBS += -lesd
307 endif
308 ifdef CONFIG_PA
309 LIBS += -lpulse-simple
310 endif
311 ifdef CONFIG_DSOUND
312 LIBS += -lole32 -ldxguid
313 endif
314 ifdef CONFIG_FMOD
315 LIBS += $(FMOD_LIBS)
316 endif
317 ifdef CONFIG_OSS
318 LIBS += $(OSS_LIBS)
319 endif
321 sound-obj-y =
322 sound-obj-$(CONFIG_SB16) += sb16.o
323 sound-obj-$(CONFIG_ES1370) += es1370.o
324 sound-obj-$(CONFIG_AC97) += ac97.o
325 sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
326 sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
327 sound-obj-$(CONFIG_CS4231A) += cs4231a.o
329 ifdef CONFIG_ADLIB
330 adlib.o fmopl.o: CFLAGS := ${CFLAGS} -DBUILD_Y8950=0
331 endif
333 ifdef CONFIG_VNC_TLS
334 CPPFLAGS += $(VNC_TLS_CFLAGS)
335 LIBS += $(VNC_TLS_LIBS)
336 endif
338 ifdef CONFIG_VNC_SASL
339 CPPFLAGS += $(VNC_SASL_CFLAGS)
340 LIBS += $(VNC_SASL_LIBS)
341 endif
343 ifdef CONFIG_BLUEZ
344 LIBS += $(BLUEZ_LIBS)
345 endif
347 # xen backend driver support
348 obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
349 ifeq ($(CONFIG_XEN), y)
350   LIBS += $(XEN_LIBS)
351 endif
353 # USB layer
354 obj-y += usb-ohci.o
356 # PCI network cards
357 obj-y += eepro100.o
358 obj-y += ne2000.o
359 obj-y += pcnet.o
360 obj-y += rtl8139.o
361 obj-y += e1000.o
363 # Generic watchdog support and some watchdog devices
364 obj-y += wdt_ib700.o wdt_i6300esb.o
366 # Hardware support
367 obj-i386-y = ide.o pckbd.o vga.o $(sound-obj-y) dma.o
368 obj-i386-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
369 obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o
370 obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
371 obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o
372 obj-i386-y += extboot.o
373 ifeq ($(USE_KVM_PIT), 1)
374 obj-i386-y += i8254-kvm.o
375 endif
376 ifeq ($(USE_KVM_DEVICE_ASSIGNMENT), 1)
377 obj-i386-y += device-assignment.o
378 LIBS+=-lpci
379 endif
381 ifeq ($(TARGET_BASE_ARCH), i386)
382 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
383 endif
385 # Hardware support
386 obj-ia64-y += ide.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
387 obj-ia64-y += fdc.o mc146818rtc.o serial.o i8259.o ipf.o
388 obj-ia64-y += cirrus_vga.o parallel.o acpi.o piix_pci.o
389 obj-ia64-y += usb-uhci.o
391 ifeq ($(USE_KVM_DEVICE_ASSIGNMENT), 1)
392 obj-ia64-y += device-assignment.o
393 LIBS+=-lpci
394 endif
396 # shared objects
397 obj-ppc-y = ppc.o ide.o vga.o $(sound-obj-y) dma.o openpic.o
398 obj-ppc-y += cirrus_vga.o
399 # PREP target
400 obj-ppc-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o
401 obj-ppc-y += prep_pci.o ppc_prep.o
402 # Mac shared devices
403 obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
404 # OldWorld PowerMac
405 obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
406 # NewWorld PowerMac
407 obj-ppc-y += unin_pci.o ppc_newworld.o
408 # PowerPC 4xx boards
409 obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
410 obj-ppc-y += ppc440.o ppc440_bamboo.o
411 # PowerPC E500 boards
412 obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o
413 obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
415 ifeq ($(TARGET_BASE_ARCH), ppc)
416 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
417 endif
419 obj-ppc-$(CONFIG_FDT) += device_tree.o
420 LIBS+= $(FDT_LIBS)
422 obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
423 obj-mips-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o
424 obj-mips-y += g364fb.o jazz_led.o dp8393x.o
425 obj-mips-y += ide.o gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
426 obj-mips-y += piix_pci.o parallel.o cirrus_vga.o pcspk.o $(sound-obj-y)
427 obj-mips-y += mipsnet.o
428 obj-mips-y += pflash_cfi01.o
429 obj-mips-y += vmware_vga.o
431 ifeq ($(TARGET_BASE_ARCH), mips)
432 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
433 endif
435 obj-microblaze-y = petalogix_s3adsp1800_mmu.o
437 obj-microblaze-y += microblaze_pic_cpu.o
438 obj-microblaze-y += xilinx_intc.o
439 obj-microblaze-y += xilinx_timer.o
440 obj-microblaze-y += xilinx_uartlite.o
441 obj-microblaze-y += xilinx_ethlite.o
443 obj-microblaze-y += pflash_cfi02.o
445 obj-microblaze-$(CONFIG_FDT) += device_tree.o
446 LIBS+= $(FDT_LIBS)
448 # Boards
449 obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o
451 # IO blocks
452 obj-cris-y += etraxfs_dma.o
453 obj-cris-y += etraxfs_pic.o
454 obj-cris-y += etraxfs_eth.o
455 obj-cris-y += etraxfs_timer.o
456 obj-cris-y += etraxfs_ser.o
458 obj-cris-y += pflash_cfi02.o
460 ifeq ($(TARGET_ARCH), sparc64)
461 obj-sparc-y = sun4u.o ide.o pckbd.o vga.o apb_pci.o
462 obj-sparc-y += fdc.o mc146818rtc.o serial.o
463 obj-sparc-y += cirrus_vga.o parallel.o
464 else
465 obj-sparc-y = sun4m.o tcx.o iommu.o slavio_intctl.o
466 obj-sparc-y += slavio_timer.o slavio_misc.o fdc.o sparc32_dma.o
467 obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
468 endif
470 obj-arm-y = integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o
471 obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
472 obj-arm-y += versatile_pci.o
473 obj-arm-y += realview_gic.o realview.o arm_sysctl.o mpcore.o
474 obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
475 obj-arm-y += pl061.o
476 obj-arm-y += arm-semi.o
477 obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
478 obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
479 obj-arm-y += pflash_cfi01.o gumstix.o
480 obj-arm-y += zaurus.o ide.o serial.o spitz.o tosa.o tc6393xb.o
481 obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
482 obj-arm-y += omap2.o omap_dss.o soc_dma.o
483 obj-arm-y += omap_sx1.o palm.o tsc210x.o
484 obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
485 obj-arm-y += mst_fpga.o mainstone.o
486 obj-arm-y += musicpal.o pflash_cfi02.o
487 obj-arm-y += framebuffer.o
488 obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
489 obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
490 obj-arm-y += syborg_virtio.o
492 ifeq ($(TARGET_BASE_ARCH), arm)
493 CPPFLAGS += -DHAS_AUDIO
494 endif
496 obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
497 obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
498 obj-sh4-y += ide.o
500 obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
501 obj-m68k-y += m68k-semi.o dummy_m68k.o
503 ifdef CONFIG_COCOA
504 COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
505 ifdef CONFIG_COREAUDIO
506 COCOA_LIBS+=-framework CoreAudio
507 endif
508 endif
509 ifdef CONFIG_SLIRP
510 CPPFLAGS+=-I$(SRC_PATH)/slirp
511 endif
513 # specific flags are needed for non soft mmu emulator
514 ifndef CONFIG_DARWIN
515 ifndef CONFIG_WIN32
516 ifndef CONFIG_SOLARIS
517 ifndef CONFIG_AIX
518 LIBS+=-lutil
519 endif
520 endif
521 endif
522 endif
523 ifdef TARGET_GPROF
524 vl.o: CFLAGS+=-p
525 LDFLAGS+=-p
526 endif
528 ifeq ($(ARCH),ia64)
529 LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
530 endif
532 ifdef CONFIG_WIN32
533 SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
534 endif
536 # profiling code
537 ifdef TARGET_GPROF
538 LDFLAGS+=-p
539 main.o: CFLAGS+=-p
540 endif
541 ifeq ($(TARGET_ARCH), ia64)
542 firmware.o: firmware.c
543         $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
544 endif
546 vl.o: CFLAGS+=$(SDL_CFLAGS)
548 vl.o: qemu-options.h
550 monitor.o: qemu-monitor.h
552 LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS)
553 ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
555 $(QEMU_PROG): ARLIBS += $(DEPLIBS)
556 $(QEMU_PROG): $(DEPLIBS)
558 endif # !CONFIG_USER_ONLY
560 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS)
561         $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
564 gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh
565 ifeq ($(TARGET_XML_FILES),)
566         $(call quiet-command,rm -f $@ && echo > $@,"  GEN   $(TARGET_DIR)$@")
567 else
568         $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES),"  GEN   $(TARGET_DIR)$@")
569 endif
571 qemu-options.h: $(SRC_PATH)/qemu-options.hx
572         $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
574 qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx
575         $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
577 clean:
578         rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
579         rm -f *.d */*.d tcg/*.o
580         rm -f qemu-options.h qemu-monitor.h gdbstub-xml.c
582 install: all
583 ifneq ($(PROGS),)
584         $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)"
585 endif
587 # Include automatically generated dependency files
588 -include $(wildcard *.d */*.d)