meson: convert audio directory to Meson
[qemu/ar7.git] / Makefile.objs
blobec7627a4c6afd3fe38a6ea88e52e7f3af3d0eac5
1 #######################################################################
2 # Common libraries for tools and emulators
3 qom-obj-y = qom/libqom.fa
5 #######################################################################
6 # code used by both qemu system emulation and qemu-img
8 ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y)
10 authz-obj-y = authz/libauthz.fa
11 authz/libauthz.fa-libs = $(if $(CONFIG_AUTH_PAM),-lpam)
13 block-obj-y += libblock.fa
15 libblock.fa-libs = $(ZSTD_LIBS)
16 libblock.fa-libs += $(LIBNFS_LIBS)
17 libblock.fa-libs += $(LIBISCSI_LIBS)
18 libblock.fa-libs += $(CURL_LIBS)
19 libblock.fa-libs += $(RBD_LIBS)
20 libblock.fa-libs += $(GLUSTERFS_LIBS)
21 libblock.fa-libs += $(VXHS_LIBS)
22 libblock.fa-libs += $(LIBSSH_LIBS)
23 libblock.fa-libs += $(BZIP2_LIBS)
24 libblock.fa-libs += $(LZFSE_LIBS)
25 libblock.fa-libs += $(if $(CONFIG_LINUX_AIO),-laio)
26 libblock.fa-libs += $(LIBXML2_LIBS)
28 chardev-obj-y = chardev/libchardev.fa
30 crypto-obj-y = crypto/libcrypto.fa
32 io-obj-y = io/libio.fa
34 endif # CONFIG_SOFTMMU or CONFIG_TOOLS
36 #######################################################################
37 # storage-daemon-obj-y is code used by qemu-storage-daemon (these objects are
38 # used for system emulation, too, but specified separately there)
40 storage-daemon-obj-y = block/ monitor/ qapi/ qom/ storage-daemon/
41 storage-daemon-obj-y += blockdev.o blockdev-nbd.o iothread.o job-qmp.o
42 storage-daemon-obj-$(CONFIG_WIN32) += os-win32.o
43 storage-daemon-obj-$(CONFIG_POSIX) += os-posix.o
45 ######################################################################
46 # Target independent part of system emulation. The long term path is to
47 # suppress *all* target specific code in case of system emulation, i.e. a
48 # single QEMU executable should support all CPUs and machines.
50 ifeq ($(CONFIG_SOFTMMU),y)
51 common-obj-y = blockdev.o blockdev-nbd.o
52 common-obj-y += bootdevice.o iothread.o
53 common-obj-y += dump/
54 common-obj-y += job-qmp.o
55 common-obj-y += monitor/
56 common-obj-y += net/
57 common-obj-y += qdev-monitor.o
58 common-obj-$(CONFIG_WIN32) += os-win32.o
59 common-obj-$(CONFIG_POSIX) += os-posix.o
61 common-obj-$(CONFIG_LINUX) += fsdev/
63 common-obj-y += accel/
64 common-obj-y += migration/
66 common-obj-$(CONFIG_AUDIO_ALSA) += audio-alsa$(DSOSUF)
67 common-obj-$(CONFIG_AUDIO_OSS) += audio-oss$(DSOSUF)
68 common-obj-$(CONFIG_AUDIO_PA) += audio-pa$(DSOSUF)
69 common-obj-$(CONFIG_AUDIO_SDL) += audio-sdl$(DSOSUF)
71 common-obj-$(if $(CONFIG_CURL),m) += block-curl$(DSOSUF)
72 common-obj-$(if $(CONFIG_GLUSTERFS),m) += block-gluster$(DSOSUF)
73 common-obj-$(if $(CONFIG_LIBISCSI),m) += block-iscsi$(DSOSUF)
74 common-obj-$(if $(CONFIG_LIBNFS),m) += block-nfs$(DSOSUF)
75 common-obj-$(if $(CONFIG_LIBSSH),m) += block-ssh$(DSOSUF)
76 common-obj-$(if $(CONFIG_RBD),m) += block-rbd$(DSOSUF)
78 common-obj-$(if $(CONFIG_LZFSE),m) += block-dmg-lzfse$(DSOSUF)
79 common-obj-$(if $(and $(CONFIG_BZIP2),$(CONFIG_DMG)),m) += block-dmg-bz2$(DSOSUF)
81 common-obj-y += hw/
82 common-obj-m += hw/
84 common-obj-y += replay/
86 common-obj-y += ui/
87 common-obj-m += ui/
89 common-obj-y += dma-helpers.o
90 common-obj-$(CONFIG_TPM) += tpm.o
92 common-obj-y += backends/
94 common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
95 qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
96 qemu-seccomp.o-libs := $(SECCOMP_LIBS)
98 common-obj-$(CONFIG_FDT) += device_tree.o
100 common-obj-y += qapi/
102 endif # CONFIG_SOFTMMU
104 #######################################################################
105 # Target-independent parts used in system and user emulation
106 common-obj-y += cpus-common.o
107 common-obj-y += hw/
108 common-obj-y += qom/
109 common-obj-y += disas/
111 ######################################################################
112 # Resource file for Windows executables
113 version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o