blob: 77be052dde4f158a7d0565df5076644e44543a8f [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
Paolo Bonzini3bc2f572012-11-16 18:35:27 +01003stub-obj-y = stubs/
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
11block-obj-y += nbd.o block.o blockjob.o
Paolo Bonzinif157ebb2012-12-20 16:09:36 +010012block-obj-y += main-loop.o iohandler.o qemu-timer.o
13block-obj-$(CONFIG_POSIX) += aio-posix.o
14block-obj-$(CONFIG_WIN32) += aio-win32.o
Paolo Bonzini7456e4c2012-05-22 13:44:39 +020015block-obj-y += block/
Kevin Wolf587da2c2013-06-05 14:19:41 +020016block-obj-y += qemu-io-cmds.o
Andreas Färber0e8c9212010-01-06 20:24:05 +010017
Fam Zhengcc475692014-02-10 14:48:59 +080018block-obj-m = block/
19
Daniel P. Berrangefb377262015-09-02 10:57:27 +010020#######################################################################
21# crypto-obj-y is code used by both qemu system emulation and qemu-img
22
23crypto-obj-y = crypto/
24crypto-aes-obj-y = crypto/
Gautham R Shenoy74db9202010-04-29 17:44:43 +053025
Daniel P. Berrange0c7012e2015-09-02 11:18:16 +010026#######################################################################
27# qom-obj-y is code used by both qemu system emulation and qemu-img
28
29qom-obj-y = qom/
30
Andreas Färber0e8c9212010-01-06 20:24:05 +010031######################################################################
Chen Wei-Ren050d9942011-11-15 20:47:11 +080032# Target independent part of system emulation. The long term path is to
33# suppress *all* target specific code in case of system emulation, i.e. a
34# single QEMU executable should support all CPUs and machines.
Andreas Färber0e8c9212010-01-06 20:24:05 +010035
Paolo Bonzini00082342013-01-19 11:06:47 +010036ifeq ($(CONFIG_SOFTMMU),y)
Fam Zhengba1183d2014-02-10 14:48:52 +080037common-obj-y = blockdev.o blockdev-nbd.o block/
Stefan Hajnoczibe8d8532014-03-03 11:30:05 +010038common-obj-y += iothread.o
Paolo Bonzinifd9400b2012-10-24 11:27:28 +020039common-obj-y += net/
Paolo Bonzini1559e0d2013-02-04 17:20:47 +010040common-obj-y += qdev-monitor.o device-hotplug.o
Blue Swirlb0cb640a2010-06-12 05:49:30 +000041common-obj-$(CONFIG_WIN32) += os-win32.o
42common-obj-$(CONFIG_POSIX) += os-posix.o
Gerd Hoffmann254e5952010-05-21 11:54:32 +020043
Paolo Bonziniee204772012-05-22 13:46:08 +020044common-obj-$(CONFIG_LINUX) += fsdev/
Paolo Bonziniee204772012-05-22 13:46:08 +020045
Dr. David Alan Gilbert60fe6372014-12-12 11:13:38 +000046common-obj-y += migration/
Avi Kivityc5705a72011-12-20 15:59:12 +020047common-obj-y += qemu-char.o #aio.o
Dr. David Alan Gilbert60fe6372014-12-12 11:13:38 +000048common-obj-y += page_cache.o
Alexander Graf190c8822015-01-22 15:01:37 +010049common-obj-y += qjson.o
Andreas Färber0e8c9212010-01-06 20:24:05 +010050
Paolo Bonzini8867aef2012-05-22 13:48:15 +020051common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
Paolo Bonzinib0b68fc2012-05-22 13:49:02 +020052
53common-obj-y += audio/
Paolo Bonzini3d5a3f92012-05-29 11:08:47 +020054common-obj-y += hw/
Eduardo Habkosta1a9cb02014-09-26 17:45:17 -030055common-obj-y += accel.o
Paolo Bonzini6f991982012-12-17 18:17:08 +010056
Pavel Dovgalyukd73abd62015-09-17 19:23:37 +030057common-obj-y += replay/
58
Paolo Bonzini8867aef2012-05-22 13:48:15 +020059common-obj-y += ui/
Paolo Bonzini3d5a3f92012-05-29 11:08:47 +020060common-obj-y += bt-host.o bt-vhci.o
Michael Tokarev849d8282014-05-02 15:40:53 +040061bt-host.o-cflags := $(BLUEZ_CFLAGS)
Corentin Chary3e230dd2010-07-07 20:57:52 +020062
Stefan Weilc9159fe2012-10-05 19:39:33 +020063common-obj-y += dma-helpers.o
Stefan Weilc9159fe2012-10-05 19:39:33 +020064common-obj-y += vl.o
Michael Tokarev849d8282014-05-02 15:40:53 +040065vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
Paolo Bonzinibdee56f2013-04-02 18:28:41 +020066common-obj-y += tpm.o
Andreas Färber0e8c9212010-01-06 20:24:05 +010067
Paolo Bonzini4c696052012-05-22 13:49:43 +020068common-obj-$(CONFIG_SLIRP) += slirp/
Andreas Färber0e8c9212010-01-06 20:24:05 +010069
Anthony Liguoria9b7b2a2012-06-25 10:03:47 -050070common-obj-y += backends/
71
Paolo Bonzini737f3512013-01-19 11:06:46 +010072common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
Eduardo Otubof7945732012-08-14 18:44:05 -030073
Peter Crosthwaite7df057b2015-05-24 13:20:14 -070074common-obj-$(CONFIG_FDT) += device_tree.o
75
Michael Roth2345c772011-07-19 14:50:32 -050076######################################################################
77# qapi
78
Eduardo Habkost8e8aba52013-05-06 13:20:07 -030079common-obj-y += qmp-marshal.o
Markus Armbruster39a18152015-09-16 13:06:28 +020080common-obj-y += qmp-introspect.o
Anthony Liguori48a32be2011-09-02 12:34:48 -050081common-obj-y += qmp.o hmp.o
Paolo Bonzini00082342013-01-19 11:06:47 +010082endif
Anthony Liguorie3193602011-09-02 12:34:47 -050083
Paolo Bonzini9444e9e2012-12-20 15:24:49 +010084#######################################################################
85# Target-independent parts used in system and user emulation
Paolo Bonzini00082342013-01-19 11:06:47 +010086common-obj-y += qemu-log.o
87common-obj-y += tcg-runtime.o
88common-obj-y += hw/
89common-obj-y += qom/
90common-obj-y += disas/
Andreas Färberce008c12012-03-04 21:32:36 +010091
Michael Roth957f1f92011-08-11 15:38:12 -050092######################################################################
Stefan Weil0b516ef2013-08-08 20:18:07 +020093# Resource file for Windows executables
94version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
95version-lobj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.lo
96
97######################################################################
Lluís Vilanova341ea692014-05-30 14:11:56 +020098# tracing
99util-obj-y += trace/
100target-obj-y += trace/
101
102######################################################################
Michael Roth957f1f92011-08-11 15:38:12 -0500103# guest agent
104
Paolo Bonzini59cacde2012-12-20 15:03:18 +0100105# FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed
106# by libqemuutil.a. These should be moved to a separate .json schema.
Fam Zheng169a24a2014-08-07 10:34:41 +0800107qga-obj-y = qga/
Tomoki Sekiyamab39297a2013-08-07 11:40:18 -0400108qga-vss-dll-obj-y = qga/
David Marchanda75eb032014-09-08 11:17:48 +0200109
110######################################################################
111# contrib
112ivshmem-client-obj-y = contrib/ivshmem-client/
113ivshmem-server-obj-y = contrib/ivshmem-server/