]> git.proxmox.com Git - mirror_qemu.git/blame - Makefile.objs
docs: Correct outdated information on QAPI
[mirror_qemu.git] / Makefile.objs
CommitLineData
3bc2f570 1#######################################################################
a372823a 2# Common libraries for tools and emulators
b917da4c 3stub-obj-y = stubs/ crypto/
39a18158 4util-obj-y = util/ qobject/ qapi/
cdb6610a 5util-obj-y += qapi-builtin-types.o
252dc310
MA
6util-obj-y += qapi-types.o
7util-obj-y += qapi/qapi-types-block-core.o
8util-obj-y += qapi/qapi-types-block.o
9util-obj-y += qapi/qapi-types-char.o
10util-obj-y += qapi/qapi-types-common.o
11util-obj-y += qapi/qapi-types-crypto.o
12util-obj-y += qapi/qapi-types-introspect.o
13util-obj-y += qapi/qapi-types-migration.o
112ed241 14util-obj-y += qapi/qapi-types-misc.o
252dc310
MA
15util-obj-y += qapi/qapi-types-net.o
16util-obj-y += qapi/qapi-types-rocker.o
17util-obj-y += qapi/qapi-types-run-state.o
18util-obj-y += qapi/qapi-types-sockets.o
19util-obj-y += qapi/qapi-types-tpm.o
20util-obj-y += qapi/qapi-types-trace.o
21util-obj-y += qapi/qapi-types-transaction.o
22util-obj-y += qapi/qapi-types-ui.o
cdb6610a 23util-obj-y += qapi-builtin-visit.o
252dc310
MA
24util-obj-y += qapi-visit.o
25util-obj-y += qapi/qapi-visit-block-core.o
26util-obj-y += qapi/qapi-visit-block.o
27util-obj-y += qapi/qapi-visit-char.o
28util-obj-y += qapi/qapi-visit-common.o
29util-obj-y += qapi/qapi-visit-crypto.o
30util-obj-y += qapi/qapi-visit-introspect.o
31util-obj-y += qapi/qapi-visit-migration.o
112ed241 32util-obj-y += qapi/qapi-visit-misc.o
252dc310
MA
33util-obj-y += qapi/qapi-visit-net.o
34util-obj-y += qapi/qapi-visit-rocker.o
35util-obj-y += qapi/qapi-visit-run-state.o
36util-obj-y += qapi/qapi-visit-sockets.o
37util-obj-y += qapi/qapi-visit-tpm.o
38util-obj-y += qapi/qapi-visit-trace.o
39util-obj-y += qapi/qapi-visit-transaction.o
40util-obj-y += qapi/qapi-visit-ui.o
41util-obj-y += qapi-event.o
42util-obj-y += qapi/qapi-events-block-core.o
43util-obj-y += qapi/qapi-events-block.o
44util-obj-y += qapi/qapi-events-char.o
45util-obj-y += qapi/qapi-events-common.o
46util-obj-y += qapi/qapi-events-crypto.o
47util-obj-y += qapi/qapi-events-introspect.o
48util-obj-y += qapi/qapi-events-migration.o
112ed241 49util-obj-y += qapi/qapi-events-misc.o
252dc310
MA
50util-obj-y += qapi/qapi-events-net.o
51util-obj-y += qapi/qapi-events-rocker.o
52util-obj-y += qapi/qapi-events-run-state.o
53util-obj-y += qapi/qapi-events-sockets.o
54util-obj-y += qapi/qapi-events-tpm.o
55util-obj-y += qapi/qapi-events-trace.o
56util-obj-y += qapi/qapi-events-transaction.o
57util-obj-y += qapi/qapi-events-ui.o
58util-obj-y += qmp-introspect.o
3bc2f570 59
32d955a4
MAL
60chardev-obj-y = chardev/
61
0e8c9214
AF
62#######################################################################
63# block-obj-y is code used by both qemu system emulation and qemu-img
64
798bfe00
FZ
65block-obj-y += nbd/
66block-obj-y += block.o blockjob.o
e5b5728c 67block-obj-y += block/ scsi/
587da2c3 68block-obj-y += qemu-io-cmds.o
190b9a8b 69block-obj-$(CONFIG_REPLICATION) += replication.o
0e8c9214 70
cc475698
FZ
71block-obj-m = block/
72
fb37726d
DB
73#######################################################################
74# crypto-obj-y is code used by both qemu system emulation and qemu-img
75
76crypto-obj-y = crypto/
77crypto-aes-obj-y = crypto/
74db920c 78
0c7012e0
DB
79#######################################################################
80# qom-obj-y is code used by both qemu system emulation and qemu-img
81
82qom-obj-y = qom/
83
666a3af9
DB
84#######################################################################
85# io-obj-y is code used by both qemu system emulation and qemu-img
86
87io-obj-y = io/
88
0e8c9214 89######################################################################
050d9940
CWR
90# Target independent part of system emulation. The long term path is to
91# suppress *all* target specific code in case of system emulation, i.e. a
92# single QEMU executable should support all CPUs and machines.
0e8c9214 93
00082344 94ifeq ($(CONFIG_SOFTMMU),y)
ba1183da 95common-obj-y = blockdev.o blockdev-nbd.o block/
5ddc6482 96common-obj-y += bootdevice.o iothread.o
fd9400b3 97common-obj-y += net/
1559e0d4 98common-obj-y += qdev-monitor.o device-hotplug.o
b0cb640a
BS
99common-obj-$(CONFIG_WIN32) += os-win32.o
100common-obj-$(CONFIG_POSIX) += os-posix.o
254e5950 101
ee20477d 102common-obj-$(CONFIG_LINUX) += fsdev/
ee20477d 103
60fe637b 104common-obj-y += migration/
0e8c9214 105
b0b68fc6 106common-obj-y += audio/
3d5a3f9a 107common-obj-y += hw/
6f991980 108
d73abd6d
PD
109common-obj-y += replay/
110
8867aef0 111common-obj-y += ui/
3d5a3f9a 112common-obj-y += bt-host.o bt-vhci.o
849d8284 113bt-host.o-cflags := $(BLUEZ_CFLAGS)
3e230dd2 114
c9159fe9 115common-obj-y += dma-helpers.o
c9159fe9 116common-obj-y += vl.o
849d8284 117vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
c39f95dc 118common-obj-$(CONFIG_TPM) += tpm.o
0e8c9214 119
4c696054 120common-obj-$(CONFIG_SLIRP) += slirp/
0e8c9214 121
a9b7b2ad 122common-obj-y += backends/
6b10e573 123common-obj-y += chardev/
a9b7b2ad 124
737f3518 125common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
c3883e1f
FZ
126qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
127qemu-seccomp.o-libs := $(SECCOMP_LIBS)
f794573e 128
7df057ba
PC
129common-obj-$(CONFIG_FDT) += device_tree.o
130
2345c77c
MR
131######################################################################
132# qapi
133
834a3f34 134common-obj-y += qmp-commands.o
252dc310
MA
135common-obj-y += qapi/qapi-commands-block-core.o
136common-obj-y += qapi/qapi-commands-block.o
137common-obj-y += qapi/qapi-commands-char.o
138common-obj-y += qapi/qapi-commands-common.o
139common-obj-y += qapi/qapi-commands-crypto.o
140common-obj-y += qapi/qapi-commands-introspect.o
141common-obj-y += qapi/qapi-commands-migration.o
112ed241 142common-obj-y += qapi/qapi-commands-misc.o
252dc310
MA
143common-obj-y += qapi/qapi-commands-net.o
144common-obj-y += qapi/qapi-commands-rocker.o
145common-obj-y += qapi/qapi-commands-run-state.o
146common-obj-y += qapi/qapi-commands-sockets.o
147common-obj-y += qapi/qapi-commands-tpm.o
148common-obj-y += qapi/qapi-commands-trace.o
149common-obj-y += qapi/qapi-commands-transaction.o
150common-obj-y += qapi/qapi-commands-ui.o
39a18158 151common-obj-y += qmp-introspect.o
48a32bed 152common-obj-y += qmp.o hmp.o
00082344 153endif
e3193601 154
9444e9e6
PB
155#######################################################################
156# Target-independent parts used in system and user emulation
c482cb11 157common-obj-y += cpus-common.o
00082344
PB
158common-obj-y += hw/
159common-obj-y += qom/
160common-obj-y += disas/
ce008c1f 161
0b516ef0
SW
162######################################################################
163# Resource file for Windows executables
164version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
0b516ef0 165
341ea691
LV
166######################################################################
167# tracing
168util-obj-y += trace/
169target-obj-y += trace/
170
957f1f99
MR
171######################################################################
172# guest agent
173
59cacde8
PB
174# FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed
175# by libqemuutil.a. These should be moved to a separate .json schema.
169a24ae 176qga-obj-y = qga/
b39297ae 177qga-vss-dll-obj-y = qga/
a75eb03b
DM
178
179######################################################################
180# contrib
b1449edb
KR
181ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
182ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
7b2e5c65 183libvhost-user-obj-y = contrib/libvhost-user/
49cc0340
FF
184vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
185vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
186vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
406d2aa2 187vhost-user-blk-obj-y = contrib/vhost-user-blk/
1412cf58
DB
188
189######################################################################
0ab8ed18
DB
190trace-events-subdirs =
191trace-events-subdirs += util
192trace-events-subdirs += crypto
193trace-events-subdirs += io
194trace-events-subdirs += migration
195trace-events-subdirs += block
6b10e573 196trace-events-subdirs += chardev
0ab8ed18
DB
197trace-events-subdirs += hw/block
198trace-events-subdirs += hw/block/dataplane
199trace-events-subdirs += hw/char
200trace-events-subdirs += hw/intc
201trace-events-subdirs += hw/net
ef6d4ccd 202trace-events-subdirs += hw/rdma
919ae3dd 203trace-events-subdirs += hw/rdma/vmw
0ab8ed18
DB
204trace-events-subdirs += hw/virtio
205trace-events-subdirs += hw/audio
206trace-events-subdirs += hw/misc
4b402e09 207trace-events-subdirs += hw/misc/macio
0ab8ed18
DB
208trace-events-subdirs += hw/usb
209trace-events-subdirs += hw/scsi
210trace-events-subdirs += hw/nvram
211trace-events-subdirs += hw/display
212trace-events-subdirs += hw/input
213trace-events-subdirs += hw/timer
214trace-events-subdirs += hw/dma
215trace-events-subdirs += hw/sparc
8bcf1c79 216trace-events-subdirs += hw/sparc64
0ab8ed18
DB
217trace-events-subdirs += hw/sd
218trace-events-subdirs += hw/isa
219trace-events-subdirs += hw/mem
220trace-events-subdirs += hw/i386
221trace-events-subdirs += hw/i386/xen
222trace-events-subdirs += hw/9pfs
223trace-events-subdirs += hw/ppc
224trace-events-subdirs += hw/pci
bfec08b5 225trace-events-subdirs += hw/pci-host
0ab8ed18
DB
226trace-events-subdirs += hw/s390x
227trace-events-subdirs += hw/vfio
228trace-events-subdirs += hw/acpi
229trace-events-subdirs += hw/arm
230trace-events-subdirs += hw/alpha
a72bd606 231trace-events-subdirs += hw/hppa
0ab8ed18 232trace-events-subdirs += hw/xen
3eee2611 233trace-events-subdirs += hw/ide
0ab8ed18
DB
234trace-events-subdirs += ui
235trace-events-subdirs += audio
236trace-events-subdirs += net
237trace-events-subdirs += target/arm
238trace-events-subdirs += target/i386
b44a7fb1 239trace-events-subdirs += target/mips
0ab8ed18
DB
240trace-events-subdirs += target/sparc
241trace-events-subdirs += target/s390x
242trace-events-subdirs += target/ppc
243trace-events-subdirs += qom
244trace-events-subdirs += linux-user
245trace-events-subdirs += qapi
d9bb58e5 246trace-events-subdirs += accel/tcg
92229a57 247trace-events-subdirs += accel/kvm
9588463e 248trace-events-subdirs += nbd
7c9e5276 249trace-events-subdirs += scsi
0ab8ed18
DB
250
251trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)
252
253trace-obj-y = trace-root.o
254trace-obj-y += $(trace-events-subdirs:%=%/trace.o)
255trace-obj-$(CONFIG_TRACE_UST) += trace-ust-all.o
256trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace-root.o
257trace-obj-$(CONFIG_TRACE_DTRACE) += $(trace-events-subdirs:%=%/trace-dtrace.o)