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