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