blob: 8f705f6202e681e0bd5ca943ab3d7631245e5824 [file] [log] [blame]
Andreas Färber0e8c9212010-01-06 20:24:05 +01001#######################################################################
Paolo Bonzinia3728232012-12-20 16:10:26 +01002# Common libraries for tools and emulators
Daniel P. Berrangeb917da42015-10-31 14:39:52 +09003stub-obj-y = stubs/ crypto/
Markus Armbruster39a18152015-09-16 13:06:28 +02004util-obj-y = util/ qobject/ qapi/
5util-obj-y += qmp-introspect.o qapi-types.o qapi-visit.o qapi-event.o
Paolo Bonzini3bc2f572012-11-16 18:35:27 +01006
7#######################################################################
Andreas Färber0e8c9212010-01-06 20:24:05 +01008# block-obj-y is code used by both qemu system emulation and qemu-img
9
Paolo Bonzinif157ebb2012-12-20 16:09:36 +010010block-obj-y = async.o thread-pool.o
Fam Zheng798bfe02016-01-14 16:41:02 +080011block-obj-y += nbd/
12block-obj-y += block.o blockjob.o
Paolo Bonzinif157ebb2012-12-20 16:09:36 +010013block-obj-y += main-loop.o iohandler.o qemu-timer.o
14block-obj-$(CONFIG_POSIX) += aio-posix.o
15block-obj-$(CONFIG_WIN32) += aio-win32.o
Paolo Bonzini7456e4c2012-05-22 13:44:39 +020016block-obj-y += block/
Kevin Wolf587da2c2013-06-05 14:19:41 +020017block-obj-y += qemu-io-cmds.o
Andreas Färber0e8c9212010-01-06 20:24:05 +010018
Fam Zhengcc475692014-02-10 14:48:59 +080019block-obj-m = block/
20
Daniel P. Berrangefb377262015-09-02 10:57:27 +010021#######################################################################
22# crypto-obj-y is code used by both qemu system emulation and qemu-img
23
24crypto-obj-y = crypto/
25crypto-aes-obj-y = crypto/
Gautham R Shenoy74db9202010-04-29 17:44:43 +053026
Daniel P. Berrange0c7012e2015-09-02 11:18:16 +010027#######################################################################
28# qom-obj-y is code used by both qemu system emulation and qemu-img
29
30qom-obj-y = qom/
31
Daniel P. Berrange666a3af2015-02-27 16:19:33 +000032#######################################################################
33# io-obj-y is code used by both qemu system emulation and qemu-img
34
35io-obj-y = io/
36
Andreas Färber0e8c9212010-01-06 20:24:05 +010037######################################################################
Chen Wei-Ren050d9942011-11-15 20:47:11 +080038# Target independent part of system emulation. The long term path is to
39# suppress *all* target specific code in case of system emulation, i.e. a
40# single QEMU executable should support all CPUs and machines.
Andreas Färber0e8c9212010-01-06 20:24:05 +010041
Paolo Bonzini00082342013-01-19 11:06:47 +010042ifeq ($(CONFIG_SOFTMMU),y)
Fam Zhengba1183d2014-02-10 14:48:52 +080043common-obj-y = blockdev.o blockdev-nbd.o block/
Stefan Hajnoczibe8d8532014-03-03 11:30:05 +010044common-obj-y += iothread.o
Paolo Bonzinifd9400b2012-10-24 11:27:28 +020045common-obj-y += net/
Paolo Bonzini1559e0d2013-02-04 17:20:47 +010046common-obj-y += qdev-monitor.o device-hotplug.o
Blue Swirlb0cb640a2010-06-12 05:49:30 +000047common-obj-$(CONFIG_WIN32) += os-win32.o
48common-obj-$(CONFIG_POSIX) += os-posix.o
Gerd Hoffmann254e5952010-05-21 11:54:32 +020049
Paolo Bonziniee204772012-05-22 13:46:08 +020050common-obj-$(CONFIG_LINUX) += fsdev/
Paolo Bonziniee204772012-05-22 13:46:08 +020051
Dr. David Alan Gilbert60fe6372014-12-12 11:13:38 +000052common-obj-y += migration/
Avi Kivityc5705a72011-12-20 15:59:12 +020053common-obj-y += qemu-char.o #aio.o
Dr. David Alan Gilbert60fe6372014-12-12 11:13:38 +000054common-obj-y += page_cache.o
Alexander Graf190c8822015-01-22 15:01:37 +010055common-obj-y += qjson.o
Andreas Färber0e8c9212010-01-06 20:24:05 +010056
Paolo Bonzini8867aef2012-05-22 13:48:15 +020057common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
Paolo Bonzinib0b68fc2012-05-22 13:49:02 +020058
59common-obj-y += audio/
Paolo Bonzini3d5a3f92012-05-29 11:08:47 +020060common-obj-y += hw/
Eduardo Habkosta1a9cb02014-09-26 17:45:17 -030061common-obj-y += accel.o
Paolo Bonzini6f991982012-12-17 18:17:08 +010062
Pavel Dovgalyukd73abd62015-09-17 19:23:37 +030063common-obj-y += replay/
64
Paolo Bonzini8867aef2012-05-22 13:48:15 +020065common-obj-y += ui/
Paolo Bonzini3d5a3f92012-05-29 11:08:47 +020066common-obj-y += bt-host.o bt-vhci.o
Michael Tokarev849d8282014-05-02 15:40:53 +040067bt-host.o-cflags := $(BLUEZ_CFLAGS)
Corentin Chary3e230dd2010-07-07 20:57:52 +020068
Stefan Weilc9159fe2012-10-05 19:39:33 +020069common-obj-y += dma-helpers.o
Stefan Weilc9159fe2012-10-05 19:39:33 +020070common-obj-y += vl.o
Michael Tokarev849d8282014-05-02 15:40:53 +040071vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
Paolo Bonzinibdee56f2013-04-02 18:28:41 +020072common-obj-y += tpm.o
Andreas Färber0e8c9212010-01-06 20:24:05 +010073
Paolo Bonzini4c696052012-05-22 13:49:43 +020074common-obj-$(CONFIG_SLIRP) += slirp/
Andreas Färber0e8c9212010-01-06 20:24:05 +010075
Anthony Liguoria9b7b2a2012-06-25 10:03:47 -050076common-obj-y += backends/
77
Paolo Bonzini737f3512013-01-19 11:06:46 +010078common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
Eduardo Otubof7945732012-08-14 18:44:05 -030079
Peter Crosthwaite7df057b2015-05-24 13:20:14 -070080common-obj-$(CONFIG_FDT) += device_tree.o
81
Michael Roth2345c772011-07-19 14:50:32 -050082######################################################################
83# qapi
84
Eduardo Habkost8e8aba52013-05-06 13:20:07 -030085common-obj-y += qmp-marshal.o
Markus Armbruster39a18152015-09-16 13:06:28 +020086common-obj-y += qmp-introspect.o
Anthony Liguori48a32be2011-09-02 12:34:48 -050087common-obj-y += qmp.o hmp.o
Paolo Bonzini00082342013-01-19 11:06:47 +010088endif
Anthony Liguorie3193602011-09-02 12:34:47 -050089
Paolo Bonzini9444e9e2012-12-20 15:24:49 +010090#######################################################################
91# Target-independent parts used in system and user emulation
Paolo Bonzini00082342013-01-19 11:06:47 +010092common-obj-y += tcg-runtime.o
93common-obj-y += hw/
94common-obj-y += qom/
95common-obj-y += disas/
Andreas Färberce008c12012-03-04 21:32:36 +010096
Michael Roth957f1f92011-08-11 15:38:12 -050097######################################################################
Stefan Weil0b516ef2013-08-08 20:18:07 +020098# Resource file for Windows executables
99version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
100version-lobj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.lo
101
102######################################################################
Lluís Vilanova341ea692014-05-30 14:11:56 +0200103# tracing
104util-obj-y += trace/
105target-obj-y += trace/
106
107######################################################################
Michael Roth957f1f92011-08-11 15:38:12 -0500108# guest agent
109
Paolo Bonzini59cacde2012-12-20 15:03:18 +0100110# FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed
111# by libqemuutil.a. These should be moved to a separate .json schema.
Fam Zheng169a24a2014-08-07 10:34:41 +0800112qga-obj-y = qga/
Tomoki Sekiyamab39297a2013-08-07 11:40:18 -0400113qga-vss-dll-obj-y = qga/
David Marchanda75eb032014-09-08 11:17:48 +0200114
115######################################################################
116# contrib
117ivshmem-client-obj-y = contrib/ivshmem-client/
118ivshmem-server-obj-y = contrib/ivshmem-server/