]> git.proxmox.com Git - qemu.git/blame - Makefile.objs
msi: Guard msi/msix_write_config with msi_present
[qemu.git] / Makefile.objs
CommitLineData
ce008c1f
AF
1#######################################################################
2# Target-independent parts used in system and user emulation
3universal-obj-y =
4
0e8c9214
AF
5#######################################################################
6# QObject
7qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
8qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
4ab328d6 9qobject-obj-y += qerror.o error.o qemu-error.o
0e8c9214 10
ce008c1f
AF
11universal-obj-y += $(qobject-obj-y)
12
13#######################################################################
14# QOM
15include $(SRC_PATH)/qom/Makefile
16qom-obj-y = $(addprefix qom/, $(qom-y))
dd83b06a 17qom-obj-twice-y = $(addprefix qom/, $(qom-twice-y))
ce008c1f
AF
18
19universal-obj-y += $(qom-obj-y)
20
c1b0b93b
JS
21#######################################################################
22# oslib-obj-y is code depending on the OS (win32 vs posix)
23oslib-obj-y = osdep.o
6774e44a
PB
24oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
25oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o
c1b0b93b 26
00dccaf1
KW
27#######################################################################
28# coroutines
8c5135f9 29coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
7e624667 30coroutine-obj-y += qemu-coroutine-sleep.o
d0e2fce5 31ifeq ($(CONFIG_UCONTEXT_COROUTINE),y)
00dccaf1 32coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o
d0e2fce5 33else
fe91bfa8
AB
34ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y)
35coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o
36else
d0e2fce5
AK
37coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
38endif
fe91bfa8 39endif
00dccaf1
KW
40coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
41
0e8c9214
AF
42#######################################################################
43# block-obj-y is code used by both qemu system emulation and qemu-img
44
41a74826 45block-obj-y = cutils.o cache-utils.o qemu-option.o module.o async.o
c12504ce 46block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
4ab328d6 47block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
0e8c9214
AF
48block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
49block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
50
84a12e66 51block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
49381094 52block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
298800ca 53block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
eabba580 54block-nested-y += qed-check.o
d9d33417 55block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o
4f1043b4 56block-nested-y += stream.o
0e8c9214
AF
57block-nested-$(CONFIG_WIN32) += raw-win32.o
58block-nested-$(CONFIG_POSIX) += raw-posix.o
c589b249 59block-nested-$(CONFIG_LIBISCSI) += iscsi.o
0e8c9214 60block-nested-$(CONFIG_CURL) += curl.o
f27aaf4b 61block-nested-$(CONFIG_RBD) += rbd.o
0e8c9214
AF
62
63block-obj-y += $(addprefix block/, $(block-nested-y))
64
65net-obj-y = net.o
66net-nested-y = queue.o checksum.o util.o
67net-nested-y += socket.o
68net-nested-y += dump.o
69net-nested-$(CONFIG_POSIX) += tap.o
70net-nested-$(CONFIG_LINUX) += tap-linux.o
71net-nested-$(CONFIG_WIN32) += tap-win32.o
72net-nested-$(CONFIG_BSD) += tap-bsd.o
73net-nested-$(CONFIG_SOLARIS) += tap-solaris.o
74net-nested-$(CONFIG_AIX) += tap-aix.o
3ee66dfa 75net-nested-$(CONFIG_HAIKU) += tap-haiku.o
0e8c9214
AF
76net-nested-$(CONFIG_SLIRP) += slirp.o
77net-nested-$(CONFIG_VDE) += vde.o
78net-obj-y += $(addprefix net/, $(net-nested-y))
79
9fe1ebeb 80ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
01af7daf
PB
81# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
82# only pull in the actual virtio-9p device if we also enabled virtio.
83CONFIG_REALLY_VIRTFS=y
10925bf0 84fsdev-nested-y = qemu-fsdev.o virtio-9p-marshal.o
1c88c715
AK
85else
86fsdev-nested-y = qemu-fsdev-dummy.o
01af7daf 87endif
758e8e38 88fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y))
74db920c 89
0e8c9214 90######################################################################
050d9940
CWR
91# Target independent part of system emulation. The long term path is to
92# suppress *all* target specific code in case of system emulation, i.e. a
93# single QEMU executable should support all CPUs and machines.
0e8c9214 94
ef749d07 95common-obj-y = $(block-obj-y) blockdev.o
0e8c9214 96common-obj-y += $(net-obj-y)
dd83b06a 97common-obj-y += $(qom-obj-twice-y)
74db920c 98common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
4ab328d6 99common-obj-y += readline.o console.o cursor.o
c1b0b93b 100common-obj-y += $(oslib-obj-y)
b0cb640a
BS
101common-obj-$(CONFIG_WIN32) += os-win32.o
102common-obj-$(CONFIG_POSIX) += os-posix.o
254e5950 103
d3b12f5d 104common-obj-y += tcg-runtime.o host-utils.o main-loop.o
6bf9fd43 105common-obj-y += irq.o input.o
0e8c9214
AF
106common-obj-$(CONFIG_PTIMER) += ptimer.o
107common-obj-$(CONFIG_MAX7310) += max7310.o
108common-obj-$(CONFIG_WM8750) += wm8750.o
109common-obj-$(CONFIG_TWL92230) += twl92230.o
110common-obj-$(CONFIG_TSC2005) += tsc2005.o
111common-obj-$(CONFIG_LM832X) += lm832x.o
112common-obj-$(CONFIG_TMP105) += tmp105.o
113common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
114common-obj-$(CONFIG_SSD0303) += ssd0303.o
115common-obj-$(CONFIG_SSD0323) += ssd0323.o
116common-obj-$(CONFIG_ADS7846) += ads7846.o
117common-obj-$(CONFIG_MAX111X) += max111x.o
118common-obj-$(CONFIG_DS1338) += ds1338.o
119common-obj-y += i2c.o smbus.o smbus_eeprom.o
120common-obj-y += eeprom93xx.o
121common-obj-y += scsi-disk.o cdrom.o
122common-obj-y += scsi-generic.o scsi-bus.o
dcfda673 123common-obj-y += hid.o
f1ae32a1
GH
124common-obj-y += usb/core.o usb/bus.o usb/desc.o usb/dev-hub.o
125common-obj-y += usb/host-$(HOST_USB).o
126common-obj-y += usb/dev-hid.o usb/dev-storage.o usb/dev-wacom.o
127common-obj-y += usb/dev-serial.o usb/dev-network.o usb/dev-audio.o
0e8c9214
AF
128common-obj-$(CONFIG_SSI) += ssi.o
129common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
130common-obj-$(CONFIG_SD) += sd.o
f1ae32a1
GH
131common-obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
132common-obj-y += bt-hci-csr.o usb/dev-bluetooth.o
c12504ce 133common-obj-y += buffered_file.o migration.o migration-tcp.o
c5705a77 134common-obj-y += qemu-char.o #aio.o
0e8c9214 135common-obj-y += msmouse.o ps2.o
ee46d8a5 136common-obj-y += qdev.o qdev-properties.o qdev-monitor.o
02981419 137common-obj-y += block-migration.o iohandler.o
d6d94fc3 138common-obj-y += pflib.o
e0e53b2f 139common-obj-y += bitmap.o bitops.o
0e8c9214
AF
140
141common-obj-$(CONFIG_BRLAPI) += baum.o
142common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
9fe6de94 143common-obj-$(CONFIG_WIN32) += version.o
0e8c9214 144
cbcc6336 145common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o
29b0040b 146
0e8c9214
AF
147audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
148audio-obj-$(CONFIG_SDL) += sdlaudio.o
149audio-obj-$(CONFIG_OSS) += ossaudio.o
3e313753 150audio-obj-$(CONFIG_SPICE) += spiceaudio.o
0e8c9214
AF
151audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
152audio-obj-$(CONFIG_ALSA) += alsaaudio.o
153audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
154audio-obj-$(CONFIG_FMOD) += fmodaudio.o
155audio-obj-$(CONFIG_ESD) += esdaudio.o
156audio-obj-$(CONFIG_PA) += paaudio.o
157audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
158audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
159audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
160audio-obj-y += wavcapture.o
161common-obj-y += $(addprefix audio/, $(audio-obj-y))
162
3e230dd2
CC
163ui-obj-y += keymaps.o
164ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
e949467b 165ui-obj-$(CONFIG_COCOA) += cocoa.o
3e230dd2 166ui-obj-$(CONFIG_CURSES) += curses.o
821601ea
JS
167vnc-obj-y += vnc.o d3des.o
168vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
169vnc-obj-y += vnc-enc-tight.o vnc-palette.o
170vnc-obj-y += vnc-enc-zrle.o
171vnc-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
172vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
bd023f95 173ifdef CONFIG_VNC_THREAD
821601ea 174vnc-obj-y += vnc-jobs-async.o
bd023f95 175else
821601ea 176vnc-obj-y += vnc-jobs-sync.o
bd023f95 177endif
3e230dd2 178common-obj-y += $(addprefix ui/, $(ui-obj-y))
821601ea 179common-obj-$(CONFIG_VNC) += $(addprefix ui/, $(vnc-obj-y))
3e230dd2
CC
180
181common-obj-y += iov.o acl.o
6774e44a 182common-obj-$(CONFIG_POSIX) += compatfd.o
d3538b45 183common-obj-y += notify.o event_notifier.o
c57c846a 184common-obj-y += qemu-timer.o qemu-timer-common.o
0e8c9214
AF
185
186slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
187slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
1a0ca1e1 188slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o arp_table.o
0e8c9214
AF
189common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
190
191# xen backend driver support
6dbd588a
JK
192common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
193common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
0e8c9214
AF
194
195######################################################################
196# libuser
197
198user-obj-y =
199user-obj-y += envlist.o path.o
200user-obj-y += tcg-runtime.o host-utils.o
201user-obj-y += cutils.o cache-utils.o
ce008c1f
AF
202user-obj-y += module.o
203user-obj-y += qemu-user.o
937b1258 204user-obj-y += $(trace-obj-y)
dd83b06a 205user-obj-y += $(qom-obj-twice-y)
0e8c9214
AF
206
207######################################################################
208# libhw
209
210hw-obj-y =
04c9a0cb 211hw-obj-y += vl.o loader.o
21673cde 212hw-obj-$(CONFIG_VIRTIO) += virtio-console.o
f1ae32a1 213hw-obj-y += usb/libhw.o
7665385a 214hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
bd9141bb 215hw-obj-y += fw_cfg.o
4eb812f7 216hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o pci_bridge_dev.o
624c716c 217hw-obj-$(CONFIG_PCI) += msix.o msi.o
1dc324d2 218hw-obj-$(CONFIG_PCI) += shpc.o
762833b3 219hw-obj-$(CONFIG_PCI) += slotid_cap.o
f8f5cfba
PB
220hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
221hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
0e8c9214 222hw-obj-y += watchdog.o
84108e12 223hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
0e8c9214
AF
224hw-obj-$(CONFIG_ECC) += ecc.o
225hw-obj-$(CONFIG_NAND) += nand.o
3d08ff69 226hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
5f9fc5ad 227hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
0e8c9214
AF
228
229hw-obj-$(CONFIG_M48T59) += m48t59.o
230hw-obj-$(CONFIG_ESCC) += escc.o
676d9b9b 231hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
0e8c9214 232
2d48377a 233hw-obj-$(CONFIG_SERIAL) += serial.o
b9945046 234hw-obj-$(CONFIG_PARALLEL) += parallel.o
d11e859e 235hw-obj-$(CONFIG_I8254) += i8254_common.o i8254.o
71093711 236hw-obj-$(CONFIG_PCSPK) += pcspk.o
956a3e6b 237hw-obj-$(CONFIG_PCKBD) += pckbd.o
f1ae32a1
GH
238hw-obj-$(CONFIG_USB_UHCI) += usb/hcd-uhci.o
239hw-obj-$(CONFIG_USB_OHCI) += usb/hcd-ohci.o
240hw-obj-$(CONFIG_USB_EHCI) += usb/hcd-ehci.o
241hw-obj-$(CONFIG_USB_XHCI) += usb/hcd-xhci.o
35da37e1 242hw-obj-$(CONFIG_FDC) += fdc.o
c69ea0df
BS
243hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o
244hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o
4556bd8b 245hw-obj-$(CONFIG_DMA) += dma.o
23b96cdb 246hw-obj-$(CONFIG_I82374) += i82374.o
dd703b99 247hw-obj-$(CONFIG_HPET) += hpet.o
1c9c5fcd 248hw-obj-$(CONFIG_APPLESMC) += applesmc.o
f1ae32a1 249hw-obj-$(CONFIG_SMARTCARD) += usb/dev-smartcard-reader.o ccid-card-passthru.o
585738a6 250hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
f1ae32a1 251hw-obj-$(CONFIG_USB_REDIR) += usb/redirect.o
512709f5 252hw-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
add85a76
BS
253
254# PPC devices
add85a76 255hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o
a04ff940 256hw-obj-$(CONFIG_I82378) += i82378.o
2b5eb371
BS
257# Mac shared devices
258hw-obj-$(CONFIG_MACIO) += macio.o
259hw-obj-$(CONFIG_CUDA) += cuda.o
260hw-obj-$(CONFIG_ADB) += adb.o
261hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
262hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
263# OldWorld PowerMac
264hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
265hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
266# NewWorld PowerMac
267hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
268hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o
269# PowerPC E500 boards
270hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
b9945046 271
08af49da
BS
272# MIPS devices
273hw-obj-$(CONFIG_PIIX4) += piix4.o
1213406b 274hw-obj-$(CONFIG_G364FB) += g364fb.o
78207d80 275hw-obj-$(CONFIG_JAZZ_LED) += jazz_led.o
08af49da 276
0e8c9214 277# PCI watchdog devices
f8f5cfba 278hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o
0e8c9214 279
c924f36a 280hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
0e8c9214
AF
281
282# PCI network cards
f8f5cfba
PB
283hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o
284hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
a4c75a21
PB
285hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
286hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
32600a30 287hw-obj-$(CONFIG_E1000_PCI) += e1000.o
5cf7a3ca 288hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
0e8c9214
AF
289
290hw-obj-$(CONFIG_SMC91C111) += smc91c111.o
291hw-obj-$(CONFIG_LAN9118) += lan9118.o
d3ffc7a6 292hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
342407fd 293hw-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
0e8c9214 294
9953b2fc 295# IDE
33231e0e 296hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o
9953b2fc
BS
297hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
298hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
299hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
300hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o
301hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o
02c7c992 302hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o
016512f3 303hw-obj-$(CONFIG_IDE_VIA) += ide/via.o
f6ad2e32 304hw-obj-$(CONFIG_AHCI) += ide/ahci.o
03c7a6a8 305hw-obj-$(CONFIG_AHCI) += ide/ich.o
9953b2fc 306
0e8c9214 307# SCSI layer
f8f5cfba 308hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
0e8c9214
AF
309hw-obj-$(CONFIG_ESP) += esp.o
310
311hw-obj-y += dma-helpers.o sysbus.o isa-bus.o
8b45d447 312hw-obj-y += qdev-addr.o
4d904533 313
1afdfddc
BS
314# VGA
315hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
7f55c7ce 316hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
b970ea8f 317hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
57448a97 318hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
86d86414 319hw-obj-$(CONFIG_VMMOUSE) += vmmouse.o
33163643 320hw-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
b970ea8f
BS
321
322hw-obj-$(CONFIG_RC4030) += rc4030.o
323hw-obj-$(CONFIG_DP8393X) += dp8393x.o
324hw-obj-$(CONFIG_DS1225Y) += ds1225y.o
325hw-obj-$(CONFIG_MIPSNET) += mipsnet.o
1afdfddc 326
c7f0f3b1
AL
327hw-obj-y += qtest.o
328
70615c38
BS
329# Sound
330sound-obj-y =
331sound-obj-$(CONFIG_SB16) += sb16.o
332sound-obj-$(CONFIG_ES1370) += es1370.o
333sound-obj-$(CONFIG_AC97) += ac97.o
334sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
335sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
336sound-obj-$(CONFIG_CS4231A) += cs4231a.o
d61a4ce8 337sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
70615c38
BS
338
339adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
340hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
341
46604b39 3429pfs-nested-$(CONFIG_VIRTFS) = virtio-9p.o
5f542225
AK
3439pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-local.o virtio-9p-xattr.o
3449pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
172198d4 3459pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-coth.o cofs.o codir.o cofile.o
77eec1b3
AK
3469pfs-nested-$(CONFIG_VIRTFS) += coxattr.o virtio-9p-synth.o
3479pfs-nested-$(CONFIG_OPEN_BY_HANDLE) += virtio-9p-handle.o
4c793dda 3489pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-proxy.o
353ac78d 349
1c88c715 350hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
d08555c1 351
4d904533
BS
352######################################################################
353# libdis
354# NOTE: the disassembler code is only needed for debugging
355
356libdis-y =
357libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
358libdis-$(CONFIG_ARM_DIS) += arm-dis.o
359libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
360libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
361libdis-$(CONFIG_I386_DIS) += i386-dis.o
903ec55c 362libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
4d904533
BS
363libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
364libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
365libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
366libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
367libdis-$(CONFIG_S390_DIS) += s390-dis.o
368libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
369libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
79368f49 370libdis-$(CONFIG_LM32_DIS) += lm32-dis.o
ad96090a 371
94a420b1
SH
372######################################################################
373# trace
374
f20600f2 375ifeq ($(TRACE_BACKEND),dtrace)
c0424934 376TRACE_H_EXTRA_DEPS=trace-dtrace.h
f20600f2 377endif
c0424934 378trace.h: trace.h-timestamp $(TRACE_H_EXTRA_DEPS)
937b1258 379trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
c0424934
LV
380 $(call quiet-command,$(TRACETOOL) \
381 --format=h \
382 --backend=$(TRACE_BACKEND) \
383 < $< > $@," GEN trace.h")
f20600f2
AL
384 @cmp -s $@ trace.h || cp $@ trace.h
385
386trace.c: trace.c-timestamp
937b1258 387trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
c0424934
LV
388 $(call quiet-command,$(TRACETOOL) \
389 --format=c \
390 --backend=$(TRACE_BACKEND) \
391 < $< > $@," GEN trace.c")
f20600f2
AL
392 @cmp -s $@ trace.c || cp $@ trace.c
393
394trace.o: trace.c $(GENERATED_HEADERS)
395
396trace-dtrace.h: trace-dtrace.dtrace
397 $(call quiet-command,dtrace -o $@ -h -s $<, " GEN trace-dtrace.h")
398
399# Normal practice is to name DTrace probe file with a '.d' extension
cbae0863 400# but that gets picked up by QEMU's Makefile as an external dependency
f20600f2
AL
401# rule file. So we use '.dtrace' instead
402trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
937b1258 403trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
c0424934
LV
404 $(call quiet-command,$(TRACETOOL) \
405 --format=d \
406 --backend=$(TRACE_BACKEND) \
407 < $< > $@," GEN trace-dtrace.dtrace")
f20600f2
AL
408 @cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace
409
410trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
c0424934 411 $(call quiet-command,dtrace -o $@ -G -s $<, " GEN trace-dtrace.o")
f20600f2 412
44dc0ca3
AL
413ifeq ($(LIBTOOL),)
414trace-dtrace.lo: trace-dtrace.dtrace
415 @echo "missing libtool. please install and rerun configure."; exit 1
416else
417trace-dtrace.lo: trace-dtrace.dtrace
3f534581 418 $(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, " lt GEN trace-dtrace.o")
44dc0ca3
AL
419endif
420
edb47ec4 421trace/simple.o: trace/simple.c $(GENERATED_HEADERS)
f20600f2 422
09001ee7
L
423trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o
424ifneq ($(TRACE_BACKEND),dtrace)
94a420b1 425trace-obj-y = trace.o
b3d08c02 426endif
94a420b1 427
e4858974
L
428trace-nested-$(CONFIG_TRACE_DEFAULT) += default.o
429
edb47ec4 430trace-nested-$(CONFIG_TRACE_SIMPLE) += simple.o
09001ee7 431trace-obj-$(CONFIG_TRACE_SIMPLE) += qemu-timer-common.o
9a82b6a5
L
432
433trace-nested-$(CONFIG_TRACE_STDERR) += stderr.o
09001ee7 434
23d15e86
L
435trace-nested-y += control.o
436
edb47ec4
L
437trace-obj-y += $(addprefix trace/, $(trace-nested-y))
438
5689dc65
MR
439$(trace-obj-y): $(GENERATED_HEADERS)
440
111a38b0
RR
441######################################################################
442# smartcard
443
444libcacard-y = cac.o event.o vcard.o vreader.o vcard_emul_nss.o vcard_emul_type.o card_7816.o
445
2345c77c
MR
446######################################################################
447# qapi
448
a020f980
PB
449qapi-nested-y = qapi-visit-core.o qapi-dealloc-visitor.o qmp-input-visitor.o
450qapi-nested-y += qmp-output-visitor.o qmp-registry.o qmp-dispatch.o
451qapi-nested-y += string-input-visitor.o string-output-visitor.o
2345c77c
MR
452qapi-obj-y = $(addprefix qapi/, $(qapi-nested-y))
453
ce008c1f 454common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o
48a32bed 455common-obj-y += qmp.o hmp.o
e3193601 456
ce008c1f
AF
457universal-obj-y += $(qapi-obj-y)
458
957f1f99
MR
459######################################################################
460# guest agent
461
d8ca685a
MR
462qga-nested-y = commands.o guest-agent-command-state.o
463qga-nested-$(CONFIG_POSIX) += commands-posix.o channel-posix.o
bc62fa03 464qga-nested-$(CONFIG_WIN32) += commands-win32.o channel-win32.o service-win32.o
957f1f99 465qga-obj-y = $(addprefix qga/, $(qga-nested-y))
d8ca685a 466qga-obj-y += qemu-ga.o module.o
957f1f99 467qga-obj-$(CONFIG_WIN32) += oslib-win32.o
d8ca685a 468qga-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-sockets.o qemu-option.o
957f1f99 469
ad96090a
BS
470vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
471
472vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
473
14015304
AL
474QEMU_CFLAGS+=$(GLIB_CFLAGS)
475