]> git.proxmox.com Git - mirror_qemu.git/blob - Makefile.objs
contrib/rdmacm-mux: convert to Meson
[mirror_qemu.git] / Makefile.objs
1 #######################################################################
2 # Common libraries for tools and emulators
3 qom-obj-y = qom/
4
5 #######################################################################
6 # code used by both qemu system emulation and qemu-img
7
8 ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y)
9
10 chardev-obj-y = chardev/
11
12 authz-obj-y = authz/
13
14 block-obj-y = block/ nbd/ scsi/
15 block-obj-y += block.o blockjob.o job.o
16 block-obj-y += qemu-io-cmds.o
17 block-obj-$(CONFIG_REPLICATION) += replication.o
18
19 block-obj-m = block/
20
21 crypto-obj-y = crypto/
22
23 io-obj-y = io/
24
25 endif # CONFIG_SOFTMMU or CONFIG_TOOLS
26
27 #######################################################################
28 # storage-daemon-obj-y is code used by qemu-storage-daemon (these objects are
29 # used for system emulation, too, but specified separately there)
30
31 storage-daemon-obj-y = block/ monitor/ qapi/ qom/ storage-daemon/
32 storage-daemon-obj-y += blockdev.o blockdev-nbd.o iothread.o job-qmp.o
33 storage-daemon-obj-$(CONFIG_WIN32) += os-win32.o
34 storage-daemon-obj-$(CONFIG_POSIX) += os-posix.o
35
36 ######################################################################
37 # Target independent part of system emulation. The long term path is to
38 # suppress *all* target specific code in case of system emulation, i.e. a
39 # single QEMU executable should support all CPUs and machines.
40
41 ifeq ($(CONFIG_SOFTMMU),y)
42 common-obj-y = blockdev.o blockdev-nbd.o block/
43 common-obj-y += bootdevice.o iothread.o
44 common-obj-y += dump/
45 common-obj-y += job-qmp.o
46 common-obj-y += monitor/
47 common-obj-y += net/
48 common-obj-y += qdev-monitor.o
49 common-obj-$(CONFIG_WIN32) += os-win32.o
50 common-obj-$(CONFIG_POSIX) += os-posix.o
51
52 common-obj-$(CONFIG_LINUX) += fsdev/
53
54 common-obj-y += accel/
55 common-obj-y += migration/
56
57 common-obj-y += audio/
58 common-obj-m += audio/
59 common-obj-y += hw/
60 common-obj-m += hw/
61
62 common-obj-y += replay/
63
64 common-obj-y += ui/
65 common-obj-m += ui/
66
67 common-obj-y += dma-helpers.o
68 common-obj-$(CONFIG_TPM) += tpm.o
69
70 common-obj-y += backends/
71 common-obj-y += chardev/
72 common-obj-m += chardev/
73
74 common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
75 qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
76 qemu-seccomp.o-libs := $(SECCOMP_LIBS)
77
78 common-obj-$(CONFIG_FDT) += device_tree.o
79
80 common-obj-y += qapi/
81
82 endif # CONFIG_SOFTMMU
83
84 #######################################################################
85 # Target-independent parts used in system and user emulation
86 common-obj-y += cpus-common.o
87 common-obj-y += hw/
88 common-obj-y += qom/
89 common-obj-y += disas/
90
91 ######################################################################
92 # Resource file for Windows executables
93 version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
94
95 ######################################################################
96 # guest agent
97
98 # FIXME: a few definitions from qapi/qapi-types.o and
99 # qapi/qapi-visit.o are needed by libqemuutil.a. These should be
100 # extracted into a QAPI schema module, or perhaps a separate schema.
101 qga-obj-y = qga/
102 qga-vss-dll-obj-y = qga/
103
104 ######################################################################
105 # contrib
106 elf2dmp-obj-y = contrib/elf2dmp/
107 ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
108 ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
109 vhost-user-input-obj-y = contrib/vhost-user-input/
110 vhost-user-gpu-obj-y = contrib/vhost-user-gpu/
111
112 ######################################################################