Makefile.objs 15.7 KB
Newer Older
1 2 3 4
#######################################################################
# QObject
qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
5
qobject-obj-y += qerror.o error.o qemu-error.o
6

7 8 9
#######################################################################
# oslib-obj-y is code depending on the OS (win32 vs posix)
oslib-obj-y = osdep.o
10 11
oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o
12

Kevin Wolf's avatar
Kevin Wolf committed
13 14
#######################################################################
# coroutines
15
coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
16
coroutine-obj-y += qemu-coroutine-sleep.o
17
ifeq ($(CONFIG_UCONTEXT_COROUTINE),y)
Kevin Wolf's avatar
Kevin Wolf committed
18
coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o
19 20 21
else
coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
endif
Kevin Wolf's avatar
Kevin Wolf committed
22 23
coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o

24 25 26
#######################################################################
# block-obj-y is code used by both qemu system emulation and qemu-img

Anthony Liguori's avatar
Anthony Liguori committed
27
block-obj-y = cutils.o cache-utils.o qemu-option.o module.o async.o
28
block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
29
block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
30 31 32
block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o

33
block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
Kevin Wolf's avatar
Kevin Wolf committed
34
block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
35
block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
Stefan Hajnoczi's avatar
Stefan Hajnoczi committed
36
block-nested-y += qed-check.o
37
block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o
38
block-nested-y += stream.o
39 40
block-nested-$(CONFIG_WIN32) += raw-win32.o
block-nested-$(CONFIG_POSIX) += raw-posix.o
Ronnie Sahlberg's avatar
Ronnie Sahlberg committed
41
block-nested-$(CONFIG_LIBISCSI) += iscsi.o
42
block-nested-$(CONFIG_CURL) += curl.o
43
block-nested-$(CONFIG_RBD) += rbd.o
44 45 46 47 48 49 50 51 52 53 54 55 56

block-obj-y +=  $(addprefix block/, $(block-nested-y))

net-obj-y = net.o
net-nested-y = queue.o checksum.o util.o
net-nested-y += socket.o
net-nested-y += dump.o
net-nested-$(CONFIG_POSIX) += tap.o
net-nested-$(CONFIG_LINUX) += tap-linux.o
net-nested-$(CONFIG_WIN32) += tap-win32.o
net-nested-$(CONFIG_BSD) += tap-bsd.o
net-nested-$(CONFIG_SOLARIS) += tap-solaris.o
net-nested-$(CONFIG_AIX) += tap-aix.o
Andreas Färber's avatar
Andreas Färber committed
57
net-nested-$(CONFIG_HAIKU) += tap-haiku.o
58 59 60 61
net-nested-$(CONFIG_SLIRP) += slirp.o
net-nested-$(CONFIG_VDE) += vde.o
net-obj-y += $(addprefix net/, $(net-nested-y))

62
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
Paul Brook's avatar
Paul Brook committed
63 64 65
# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
# only pull in the actual virtio-9p device if we also enabled virtio.
CONFIG_REALLY_VIRTFS=y
66
fsdev-nested-y = qemu-fsdev.o virtio-9p-marshal.o
67 68
else
fsdev-nested-y = qemu-fsdev-dummy.o
Paul Brook's avatar
Paul Brook committed
69
endif
70
fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y))
71

72
######################################################################
73 74 75
# Target independent part of system emulation. The long term path is to
# suppress *all* target specific code in case of system emulation, i.e. a
# single QEMU executable should support all CPUs and machines.
76

77
common-obj-y = $(block-obj-y) blockdev.o
78 79
common-obj-y += $(net-obj-y)
common-obj-y += $(qobject-obj-y)
80
common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
81
common-obj-y += readline.o console.o cursor.o
82
common-obj-y += $(oslib-obj-y)
83 84
common-obj-$(CONFIG_WIN32) += os-win32.o
common-obj-$(CONFIG_POSIX) += os-posix.o
Gerd Hoffmann's avatar
Gerd Hoffmann committed
85

Paolo Bonzini's avatar
Paolo Bonzini committed
86
common-obj-y += tcg-runtime.o host-utils.o main-loop.o
Avi Kivity's avatar
Avi Kivity committed
87
common-obj-y += irq.o input.o
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
common-obj-$(CONFIG_PTIMER) += ptimer.o
common-obj-$(CONFIG_MAX7310) += max7310.o
common-obj-$(CONFIG_WM8750) += wm8750.o
common-obj-$(CONFIG_TWL92230) += twl92230.o
common-obj-$(CONFIG_TSC2005) += tsc2005.o
common-obj-$(CONFIG_LM832X) += lm832x.o
common-obj-$(CONFIG_TMP105) += tmp105.o
common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
common-obj-$(CONFIG_SSD0303) += ssd0303.o
common-obj-$(CONFIG_SSD0323) += ssd0323.o
common-obj-$(CONFIG_ADS7846) += ads7846.o
common-obj-$(CONFIG_MAX111X) += max111x.o
common-obj-$(CONFIG_DS1338) += ds1338.o
common-obj-y += i2c.o smbus.o smbus_eeprom.o
common-obj-y += eeprom93xx.o
common-obj-y += scsi-disk.o cdrom.o
common-obj-y += scsi-generic.o scsi-bus.o
105
common-obj-y += hid.o
106
common-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
H. Peter Anvin's avatar
H. Peter Anvin committed
107
common-obj-y += usb-serial.o usb-net.o usb-bus.o usb-desc.o usb-audio.o
108 109 110 111 112
common-obj-$(CONFIG_SSI) += ssi.o
common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
common-obj-$(CONFIG_SD) += sd.o
common-obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
common-obj-y += bt-hci-csr.o
113
common-obj-y += buffered_file.o migration.o migration-tcp.o
114
common-obj-y += qemu-char.o #aio.o
115
common-obj-y += msmouse.o ps2.o
116
common-obj-y += qdev.o qdev-properties.o qdev-monitor.o
117
common-obj-y += block-migration.o iohandler.o
118
common-obj-y += pflib.o
119
common-obj-y += bitmap.o bitops.o
120 121 122

common-obj-$(CONFIG_BRLAPI) += baum.o
common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
123
common-obj-$(CONFIG_WIN32) += version.o
124

Alon Levy's avatar
Alon Levy committed
125
common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o
Gerd Hoffmann's avatar
Gerd Hoffmann committed
126

127 128 129
include $(SRC_PATH)/qom/Makefile
common-obj-y += $(addprefix qom/, $(qom-y))

130 131 132
audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
audio-obj-$(CONFIG_SDL) += sdlaudio.o
audio-obj-$(CONFIG_OSS) += ossaudio.o
Gerd Hoffmann's avatar
Gerd Hoffmann committed
133
audio-obj-$(CONFIG_SPICE) += spiceaudio.o
134 135 136 137 138 139 140 141 142 143 144 145
audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
audio-obj-$(CONFIG_ALSA) += alsaaudio.o
audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
audio-obj-$(CONFIG_FMOD) += fmodaudio.o
audio-obj-$(CONFIG_ESD) += esdaudio.o
audio-obj-$(CONFIG_PA) += paaudio.o
audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
audio-obj-y += wavcapture.o
common-obj-y += $(addprefix audio/, $(audio-obj-y))

146 147
ui-obj-y += keymaps.o
ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
148
ui-obj-$(CONFIG_COCOA) += cocoa.o
149
ui-obj-$(CONFIG_CURSES) += curses.o
Jes Sorensen's avatar
Jes Sorensen committed
150 151 152 153 154 155
vnc-obj-y += vnc.o d3des.o
vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
vnc-obj-y += vnc-enc-tight.o vnc-palette.o
vnc-obj-y += vnc-enc-zrle.o
vnc-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
Corentin Chary's avatar
Corentin Chary committed
156
ifdef CONFIG_VNC_THREAD
Jes Sorensen's avatar
Jes Sorensen committed
157
vnc-obj-y += vnc-jobs-async.o
Corentin Chary's avatar
Corentin Chary committed
158
else
Jes Sorensen's avatar
Jes Sorensen committed
159
vnc-obj-y += vnc-jobs-sync.o
Corentin Chary's avatar
Corentin Chary committed
160
endif
161
common-obj-y += $(addprefix ui/, $(ui-obj-y))
Jes Sorensen's avatar
Jes Sorensen committed
162
common-obj-$(CONFIG_VNC) += $(addprefix ui/, $(vnc-obj-y))
163 164

common-obj-y += iov.o acl.o
165
common-obj-$(CONFIG_POSIX) += compatfd.o
Blue Swirl's avatar
Blue Swirl committed
166
common-obj-y += notify.o event_notifier.o
167
common-obj-y += qemu-timer.o qemu-timer-common.o
168 169 170

slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
Fabien Chouteau's avatar
Fabien Chouteau committed
171
slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o arp_table.o
172 173 174
common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))

# xen backend driver support
Jan Kiszka's avatar
Jan Kiszka committed
175 176
common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
177 178 179 180 181 182 183 184

######################################################################
# libuser

user-obj-y =
user-obj-y += envlist.o path.o
user-obj-y += tcg-runtime.o host-utils.o
user-obj-y += cutils.o cache-utils.o
185
user-obj-y += $(trace-obj-y)
186 187 188 189 190

######################################################################
# libhw

hw-obj-y =
Blue Swirl's avatar
Blue Swirl committed
191
hw-obj-y += vl.o loader.o
192
hw-obj-$(CONFIG_VIRTIO) += virtio-console.o
Gerd Hoffmann's avatar
Gerd Hoffmann committed
193
hw-obj-y += usb-libhw.o
194
hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
195
hw-obj-y += fw_cfg.o
196
hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
197
hw-obj-$(CONFIG_PCI) += msix.o msi.o
Paul Brook's avatar
Paul Brook committed
198 199
hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
200
hw-obj-y += watchdog.o
Blue Swirl's avatar
Blue Swirl committed
201
hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
202 203
hw-obj-$(CONFIG_ECC) += ecc.o
hw-obj-$(CONFIG_NAND) += nand.o
Blue Swirl's avatar
Blue Swirl committed
204
hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
Blue Swirl's avatar
Blue Swirl committed
205
hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
206 207 208

hw-obj-$(CONFIG_M48T59) += m48t59.o
hw-obj-$(CONFIG_ESCC) += escc.o
209
hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
210

Blue Swirl's avatar
Blue Swirl committed
211
hw-obj-$(CONFIG_SERIAL) += serial.o
Blue Swirl's avatar
Blue Swirl committed
212
hw-obj-$(CONFIG_PARALLEL) += parallel.o
Blue Swirl's avatar
Blue Swirl committed
213
hw-obj-$(CONFIG_I8254) += i8254.o
Blue Swirl's avatar
Blue Swirl committed
214
hw-obj-$(CONFIG_PCSPK) += pcspk.o
Blue Swirl's avatar
Blue Swirl committed
215
hw-obj-$(CONFIG_PCKBD) += pckbd.o
Blue Swirl's avatar
Blue Swirl committed
216
hw-obj-$(CONFIG_USB_UHCI) += usb-uhci.o
217
hw-obj-$(CONFIG_USB_OHCI) += usb-ohci.o
Gerd Hoffmann's avatar
Gerd Hoffmann committed
218
hw-obj-$(CONFIG_USB_EHCI) += usb-ehci.o
219
hw-obj-$(CONFIG_USB_XHCI) += usb-xhci.o
Blue Swirl's avatar
Blue Swirl committed
220
hw-obj-$(CONFIG_FDC) += fdc.o
221 222
hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o
hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o
Blue Swirl's avatar
Blue Swirl committed
223
hw-obj-$(CONFIG_DMA) += dma.o
224
hw-obj-$(CONFIG_I82374) += i82374.o
Blue Swirl's avatar
Blue Swirl committed
225
hw-obj-$(CONFIG_HPET) += hpet.o
Blue Swirl's avatar
Blue Swirl committed
226
hw-obj-$(CONFIG_APPLESMC) += applesmc.o
Alon Levy's avatar
Alon Levy committed
227
hw-obj-$(CONFIG_SMARTCARD) += usb-ccid.o ccid-card-passthru.o
228
hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
229
hw-obj-$(CONFIG_USB_REDIR) += usb-redir.o
230
hw-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
Blue Swirl's avatar
Blue Swirl committed
231 232 233

# PPC devices
hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o
234
hw-obj-$(CONFIG_I82378) += i82378.o
235 236 237 238 239 240 241 242 243 244 245 246 247 248
# Mac shared devices
hw-obj-$(CONFIG_MACIO) += macio.o
hw-obj-$(CONFIG_CUDA) += cuda.o
hw-obj-$(CONFIG_ADB) += adb.o
hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
# OldWorld PowerMac
hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
# NewWorld PowerMac
hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o
# PowerPC E500 boards
hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
Blue Swirl's avatar
Blue Swirl committed
249

Blue Swirl's avatar
Blue Swirl committed
250 251
# MIPS devices
hw-obj-$(CONFIG_PIIX4) += piix4.o
Blue Swirl's avatar
Blue Swirl committed
252
hw-obj-$(CONFIG_G364FB) += g364fb.o
Blue Swirl's avatar
Blue Swirl committed
253

254
# PCI watchdog devices
Paul Brook's avatar
Paul Brook committed
255
hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o
256

257
hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
258 259

# PCI network cards
Paul Brook's avatar
Paul Brook committed
260 261
hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o
hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
Paul Brook's avatar
Paul Brook committed
262 263
hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
Alexander Graf's avatar
Alexander Graf committed
264
hw-obj-$(CONFIG_E1000_PCI) += e1000.o
265
hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
266 267 268

hw-obj-$(CONFIG_SMC91C111) += smc91c111.o
hw-obj-$(CONFIG_LAN9118) += lan9118.o
Blue Swirl's avatar
Blue Swirl committed
269
hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
270
hw-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
271

272
# IDE
Kevin Wolf's avatar
Kevin Wolf committed
273
hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o
274 275 276 277 278
hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o
hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o
Blue Swirl's avatar
Blue Swirl committed
279
hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o
280
hw-obj-$(CONFIG_IDE_VIA) += ide/via.o
Alexander Graf's avatar
Alexander Graf committed
281
hw-obj-$(CONFIG_AHCI) += ide/ahci.o
Sebastian Herbszt's avatar
Sebastian Herbszt committed
282
hw-obj-$(CONFIG_AHCI) += ide/ich.o
283

284
# SCSI layer
Paul Brook's avatar
Paul Brook committed
285
hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
286 287 288
hw-obj-$(CONFIG_ESP) += esp.o

hw-obj-y += dma-helpers.o sysbus.o isa-bus.o
Anthony Liguori's avatar
Anthony Liguori committed
289
hw-obj-y += qdev-addr.o container.o
Blue Swirl's avatar
Blue Swirl committed
290

Blue Swirl's avatar
Blue Swirl committed
291 292
# VGA
hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
Blue Swirl's avatar
Blue Swirl committed
293
hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
294
hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
Blue Swirl's avatar
Blue Swirl committed
295
hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
Blue Swirl's avatar
Blue Swirl committed
296
hw-obj-$(CONFIG_VMMOUSE) += vmmouse.o
Blue Swirl's avatar
Blue Swirl committed
297
hw-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
298 299 300 301 302

hw-obj-$(CONFIG_RC4030) += rc4030.o
hw-obj-$(CONFIG_DP8393X) += dp8393x.o
hw-obj-$(CONFIG_DS1225Y) += ds1225y.o
hw-obj-$(CONFIG_MIPSNET) += mipsnet.o
Blue Swirl's avatar
Blue Swirl committed
303

Blue Swirl's avatar
Blue Swirl committed
304 305 306 307 308 309 310 311
# Sound
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
312
sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
Blue Swirl's avatar
Blue Swirl committed
313 314 315 316

adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)

317
9pfs-nested-$(CONFIG_VIRTFS)  = virtio-9p.o
318 319
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-local.o virtio-9p-xattr.o
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
320
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-coth.o cofs.o codir.o cofile.o
321 322
9pfs-nested-$(CONFIG_VIRTFS) += coxattr.o virtio-9p-synth.o
9pfs-nested-$(CONFIG_OPEN_BY_HANDLE) +=  virtio-9p-handle.o
323
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-proxy.o
324

325
hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
326
$(addprefix 9pfs/, $(9pfs-nested-y)): QEMU_CFLAGS+=$(GLIB_CFLAGS)
327

328

Blue Swirl's avatar
Blue Swirl committed
329 330 331 332 333 334 335 336 337 338
######################################################################
# libdis
# NOTE: the disassembler code is only needed for debugging

libdis-y =
libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
libdis-$(CONFIG_ARM_DIS) += arm-dis.o
libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
libdis-$(CONFIG_I386_DIS) += i386-dis.o
Aurelien Jarno's avatar
Aurelien Jarno committed
339
libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
Blue Swirl's avatar
Blue Swirl committed
340 341 342 343 344 345 346
libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
libdis-$(CONFIG_S390_DIS) += s390-dis.o
libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
347

348 349 350
######################################################################
# trace

351 352 353 354 355
ifeq ($(TRACE_BACKEND),dtrace)
trace.h: trace.h-timestamp trace-dtrace.h
else
trace.h: trace.h-timestamp
endif
356
trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
357 358 359 360
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -h < $< > $@,"  GEN   trace.h")
	@cmp -s $@ trace.h || cp $@ trace.h

trace.c: trace.c-timestamp
361
trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
362 363 364 365 366 367 368 369 370
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -c < $< > $@,"  GEN   trace.c")
	@cmp -s $@ trace.c || cp $@ trace.c

trace.o: trace.c $(GENERATED_HEADERS)

trace-dtrace.h: trace-dtrace.dtrace
	$(call quiet-command,dtrace -o $@ -h -s $<, "  GEN   trace-dtrace.h")

# Normal practice is to name DTrace probe file with a '.d' extension
371
# but that gets picked up by QEMU's Makefile as an external dependency
372 373
# rule file. So we use '.dtrace' instead
trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
374
trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
375 376 377 378 379 380
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -d < $< > $@,"  GEN   trace-dtrace.dtrace")
	@cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace

trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
	$(call quiet-command,dtrace -o $@ -G -s $<, "  GEN trace-dtrace.o")

Alon Levy's avatar
Alon Levy committed
381 382 383 384 385
ifeq ($(LIBTOOL),)
trace-dtrace.lo: trace-dtrace.dtrace
	@echo "missing libtool. please install and rerun configure."; exit 1
else
trace-dtrace.lo: trace-dtrace.dtrace
Brad's avatar
Brad committed
386
	$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, "  lt GEN trace-dtrace.o")
Alon Levy's avatar
Alon Levy committed
387 388
endif

389
trace/simple.o: trace/simple.c $(GENERATED_HEADERS)
390

391 392
trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o
ifneq ($(TRACE_BACKEND),dtrace)
393
trace-obj-y = trace.o
394
endif
395

396 397
trace-nested-$(CONFIG_TRACE_DEFAULT) += default.o

398
trace-nested-$(CONFIG_TRACE_SIMPLE) += simple.o
399
trace-obj-$(CONFIG_TRACE_SIMPLE) += qemu-timer-common.o
400 401

trace-nested-$(CONFIG_TRACE_STDERR) += stderr.o
402

403 404
trace-nested-y += control.o

405 406
trace-obj-y += $(addprefix trace/, $(trace-nested-y))

407 408
$(trace-obj-y): $(GENERATED_HEADERS)

Robert Relyea's avatar
Robert Relyea committed
409 410 411 412 413
######################################################################
# smartcard

libcacard-y = cac.o event.o vcard.o vreader.o vcard_emul_nss.o vcard_emul_type.o card_7816.o

Michael Roth's avatar
Michael Roth committed
414 415 416
######################################################################
# qapi

Michael Roth's avatar
Michael Roth committed
417
qapi-nested-y = qapi-visit-core.o qmp-input-visitor.o qmp-output-visitor.o qapi-dealloc-visitor.o
418
qapi-nested-y += qmp-registry.o qmp-dispatch.o
Michael Roth's avatar
Michael Roth committed
419 420
qapi-obj-y = $(addprefix qapi/, $(qapi-nested-y))

421
common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o $(qapi-obj-y)
Anthony Liguori's avatar
Anthony Liguori committed
422
common-obj-y += qmp.o hmp.o
423

424 425 426 427 428
######################################################################
# guest agent

qga-nested-y = guest-agent-commands.o guest-agent-command-state.o
qga-obj-y = $(addprefix qga/, $(qga-nested-y))
429
qga-obj-y += qemu-ga.o qemu-sockets.o module.o qemu-option.o
430 431 432
qga-obj-$(CONFIG_WIN32) += oslib-win32.o
qga-obj-$(CONFIG_POSIX) += oslib-posix.o

433 434 435 436
vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)

vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)

437 438
QEMU_CFLAGS+=$(GLIB_CFLAGS)