contrib/libvhost-user: convert to Meson
[qemu/ar7.git] / Makefile.objs
blob948986496779da6a18a372ef6d58ffb341e660a7
1 #######################################################################
2 # Common libraries for tools and emulators
3 qom-obj-y = qom/
5 #######################################################################
6 # code used by both qemu system emulation and qemu-img
8 ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y)
10 chardev-obj-y = chardev/
12 authz-obj-y = authz/
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
19 block-obj-m = block/
21 crypto-obj-y = crypto/
23 io-obj-y = io/
25 endif # CONFIG_SOFTMMU or CONFIG_TOOLS
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)
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
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.
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
52 common-obj-$(CONFIG_LINUX) += fsdev/
54 common-obj-y += accel/
55 common-obj-y += migration/
57 common-obj-y += audio/
58 common-obj-m += audio/
59 common-obj-y += hw/
60 common-obj-m += hw/
62 common-obj-y += replay/
64 common-obj-y += ui/
65 common-obj-m += ui/
67 common-obj-y += dma-helpers.o
68 common-obj-$(CONFIG_TPM) += tpm.o
70 common-obj-y += backends/
71 common-obj-y += chardev/
72 common-obj-m += chardev/
74 common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
75 qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
76 qemu-seccomp.o-libs := $(SECCOMP_LIBS)
78 common-obj-$(CONFIG_FDT) += device_tree.o
80 common-obj-y += qapi/
82 endif # CONFIG_SOFTMMU
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/
91 ######################################################################
92 # Resource file for Windows executables
93 version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
95 ######################################################################
96 # guest agent
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/
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-scsi.o-cflags := $(LIBISCSI_CFLAGS)
110 vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
111 vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
112 vhost-user-blk-obj-y = contrib/vhost-user-blk/
113 rdmacm-mux-obj-y = contrib/rdmacm-mux/
114 vhost-user-input-obj-y = contrib/vhost-user-input/
115 vhost-user-gpu-obj-y = contrib/vhost-user-gpu/
116 virtiofsd-obj-y = tools/virtiofsd/
118 ######################################################################