]> git.proxmox.com Git - mirror_qemu.git/blob - Makefile.objs
qapi: Empty out qapi-schema.json
[mirror_qemu.git] / Makefile.objs
1 #######################################################################
2 # Common libraries for tools and emulators
3 stub-obj-y = stubs/ crypto/
4 util-obj-y = util/ qobject/ qapi/
5 util-obj-y += qapi-builtin-types.o
6 util-obj-y += qapi-types.o
7 util-obj-y += qapi/qapi-types-block-core.o
8 util-obj-y += qapi/qapi-types-block.o
9 util-obj-y += qapi/qapi-types-char.o
10 util-obj-y += qapi/qapi-types-common.o
11 util-obj-y += qapi/qapi-types-crypto.o
12 util-obj-y += qapi/qapi-types-introspect.o
13 util-obj-y += qapi/qapi-types-migration.o
14 util-obj-y += qapi/qapi-types-misc.o
15 util-obj-y += qapi/qapi-types-net.o
16 util-obj-y += qapi/qapi-types-rocker.o
17 util-obj-y += qapi/qapi-types-run-state.o
18 util-obj-y += qapi/qapi-types-sockets.o
19 util-obj-y += qapi/qapi-types-tpm.o
20 util-obj-y += qapi/qapi-types-trace.o
21 util-obj-y += qapi/qapi-types-transaction.o
22 util-obj-y += qapi/qapi-types-ui.o
23 util-obj-y += qapi-builtin-visit.o
24 util-obj-y += qapi-visit.o
25 util-obj-y += qapi/qapi-visit-block-core.o
26 util-obj-y += qapi/qapi-visit-block.o
27 util-obj-y += qapi/qapi-visit-char.o
28 util-obj-y += qapi/qapi-visit-common.o
29 util-obj-y += qapi/qapi-visit-crypto.o
30 util-obj-y += qapi/qapi-visit-introspect.o
31 util-obj-y += qapi/qapi-visit-migration.o
32 util-obj-y += qapi/qapi-visit-misc.o
33 util-obj-y += qapi/qapi-visit-net.o
34 util-obj-y += qapi/qapi-visit-rocker.o
35 util-obj-y += qapi/qapi-visit-run-state.o
36 util-obj-y += qapi/qapi-visit-sockets.o
37 util-obj-y += qapi/qapi-visit-tpm.o
38 util-obj-y += qapi/qapi-visit-trace.o
39 util-obj-y += qapi/qapi-visit-transaction.o
40 util-obj-y += qapi/qapi-visit-ui.o
41 util-obj-y += qapi-event.o
42 util-obj-y += qapi/qapi-events-block-core.o
43 util-obj-y += qapi/qapi-events-block.o
44 util-obj-y += qapi/qapi-events-char.o
45 util-obj-y += qapi/qapi-events-common.o
46 util-obj-y += qapi/qapi-events-crypto.o
47 util-obj-y += qapi/qapi-events-introspect.o
48 util-obj-y += qapi/qapi-events-migration.o
49 util-obj-y += qapi/qapi-events-misc.o
50 util-obj-y += qapi/qapi-events-net.o
51 util-obj-y += qapi/qapi-events-rocker.o
52 util-obj-y += qapi/qapi-events-run-state.o
53 util-obj-y += qapi/qapi-events-sockets.o
54 util-obj-y += qapi/qapi-events-tpm.o
55 util-obj-y += qapi/qapi-events-trace.o
56 util-obj-y += qapi/qapi-events-transaction.o
57 util-obj-y += qapi/qapi-events-ui.o
58 util-obj-y += qmp-introspect.o
59
60 chardev-obj-y = chardev/
61
62 #######################################################################
63 # block-obj-y is code used by both qemu system emulation and qemu-img
64
65 block-obj-y += nbd/
66 block-obj-y += block.o blockjob.o
67 block-obj-y += block/ scsi/
68 block-obj-y += qemu-io-cmds.o
69 block-obj-$(CONFIG_REPLICATION) += replication.o
70
71 block-obj-m = block/
72
73 #######################################################################
74 # crypto-obj-y is code used by both qemu system emulation and qemu-img
75
76 crypto-obj-y = crypto/
77 crypto-aes-obj-y = crypto/
78
79 #######################################################################
80 # qom-obj-y is code used by both qemu system emulation and qemu-img
81
82 qom-obj-y = qom/
83
84 #######################################################################
85 # io-obj-y is code used by both qemu system emulation and qemu-img
86
87 io-obj-y = io/
88
89 ######################################################################
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.
93
94 ifeq ($(CONFIG_SOFTMMU),y)
95 common-obj-y = blockdev.o blockdev-nbd.o block/
96 common-obj-y += bootdevice.o iothread.o
97 common-obj-y += net/
98 common-obj-y += qdev-monitor.o device-hotplug.o
99 common-obj-$(CONFIG_WIN32) += os-win32.o
100 common-obj-$(CONFIG_POSIX) += os-posix.o
101
102 common-obj-$(CONFIG_LINUX) += fsdev/
103
104 common-obj-y += migration/
105
106 common-obj-y += audio/
107 common-obj-y += hw/
108
109 common-obj-y += replay/
110
111 common-obj-y += ui/
112 common-obj-y += bt-host.o bt-vhci.o
113 bt-host.o-cflags := $(BLUEZ_CFLAGS)
114
115 common-obj-y += dma-helpers.o
116 common-obj-y += vl.o
117 vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
118 common-obj-$(CONFIG_TPM) += tpm.o
119
120 common-obj-$(CONFIG_SLIRP) += slirp/
121
122 common-obj-y += backends/
123 common-obj-y += chardev/
124
125 common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
126 qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
127 qemu-seccomp.o-libs := $(SECCOMP_LIBS)
128
129 common-obj-$(CONFIG_FDT) += device_tree.o
130
131 ######################################################################
132 # qapi
133
134 common-obj-y += qmp-commands.o
135 common-obj-y += qapi/qapi-commands-block-core.o
136 common-obj-y += qapi/qapi-commands-block.o
137 common-obj-y += qapi/qapi-commands-char.o
138 common-obj-y += qapi/qapi-commands-common.o
139 common-obj-y += qapi/qapi-commands-crypto.o
140 common-obj-y += qapi/qapi-commands-introspect.o
141 common-obj-y += qapi/qapi-commands-migration.o
142 common-obj-y += qapi/qapi-commands-misc.o
143 common-obj-y += qapi/qapi-commands-net.o
144 common-obj-y += qapi/qapi-commands-rocker.o
145 common-obj-y += qapi/qapi-commands-run-state.o
146 common-obj-y += qapi/qapi-commands-sockets.o
147 common-obj-y += qapi/qapi-commands-tpm.o
148 common-obj-y += qapi/qapi-commands-trace.o
149 common-obj-y += qapi/qapi-commands-transaction.o
150 common-obj-y += qapi/qapi-commands-ui.o
151 common-obj-y += qmp-introspect.o
152 common-obj-y += qmp.o hmp.o
153 endif
154
155 #######################################################################
156 # Target-independent parts used in system and user emulation
157 common-obj-y += cpus-common.o
158 common-obj-y += hw/
159 common-obj-y += qom/
160 common-obj-y += disas/
161
162 ######################################################################
163 # Resource file for Windows executables
164 version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
165
166 ######################################################################
167 # tracing
168 util-obj-y += trace/
169 target-obj-y += trace/
170
171 ######################################################################
172 # guest agent
173
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.
176 qga-obj-y = qga/
177 qga-vss-dll-obj-y = qga/
178
179 ######################################################################
180 # contrib
181 ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
182 ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
183 libvhost-user-obj-y = contrib/libvhost-user/
184 vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
185 vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
186 vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
187 vhost-user-blk-obj-y = contrib/vhost-user-blk/
188
189 ######################################################################
190 trace-events-subdirs =
191 trace-events-subdirs += util
192 trace-events-subdirs += crypto
193 trace-events-subdirs += io
194 trace-events-subdirs += migration
195 trace-events-subdirs += block
196 trace-events-subdirs += chardev
197 trace-events-subdirs += hw/block
198 trace-events-subdirs += hw/block/dataplane
199 trace-events-subdirs += hw/char
200 trace-events-subdirs += hw/intc
201 trace-events-subdirs += hw/net
202 trace-events-subdirs += hw/rdma
203 trace-events-subdirs += hw/rdma/vmw
204 trace-events-subdirs += hw/virtio
205 trace-events-subdirs += hw/audio
206 trace-events-subdirs += hw/misc
207 trace-events-subdirs += hw/misc/macio
208 trace-events-subdirs += hw/usb
209 trace-events-subdirs += hw/scsi
210 trace-events-subdirs += hw/nvram
211 trace-events-subdirs += hw/display
212 trace-events-subdirs += hw/input
213 trace-events-subdirs += hw/timer
214 trace-events-subdirs += hw/dma
215 trace-events-subdirs += hw/sparc
216 trace-events-subdirs += hw/sparc64
217 trace-events-subdirs += hw/sd
218 trace-events-subdirs += hw/isa
219 trace-events-subdirs += hw/mem
220 trace-events-subdirs += hw/i386
221 trace-events-subdirs += hw/i386/xen
222 trace-events-subdirs += hw/9pfs
223 trace-events-subdirs += hw/ppc
224 trace-events-subdirs += hw/pci
225 trace-events-subdirs += hw/pci-host
226 trace-events-subdirs += hw/s390x
227 trace-events-subdirs += hw/vfio
228 trace-events-subdirs += hw/acpi
229 trace-events-subdirs += hw/arm
230 trace-events-subdirs += hw/alpha
231 trace-events-subdirs += hw/hppa
232 trace-events-subdirs += hw/xen
233 trace-events-subdirs += hw/ide
234 trace-events-subdirs += ui
235 trace-events-subdirs += audio
236 trace-events-subdirs += net
237 trace-events-subdirs += target/arm
238 trace-events-subdirs += target/i386
239 trace-events-subdirs += target/mips
240 trace-events-subdirs += target/sparc
241 trace-events-subdirs += target/s390x
242 trace-events-subdirs += target/ppc
243 trace-events-subdirs += qom
244 trace-events-subdirs += linux-user
245 trace-events-subdirs += qapi
246 trace-events-subdirs += accel/tcg
247 trace-events-subdirs += accel/kvm
248 trace-events-subdirs += nbd
249 trace-events-subdirs += scsi
250
251 trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)
252
253 trace-obj-y = trace-root.o
254 trace-obj-y += $(trace-events-subdirs:%=%/trace.o)
255 trace-obj-$(CONFIG_TRACE_UST) += trace-ust-all.o
256 trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace-root.o
257 trace-obj-$(CONFIG_TRACE_DTRACE) += $(trace-events-subdirs:%=%/trace-dtrace.o)