2012-11-16 21:35:27 +04:00
|
|
|
#######################################################################
|
2012-12-20 19:10:26 +04:00
|
|
|
# Common libraries for tools and emulators
|
2019-07-16 18:40:16 +03:00
|
|
|
qom-obj-y = qom/libqom.fa
|
2016-12-12 15:49:01 +03:00
|
|
|
|
2015-10-21 15:16:21 +03:00
|
|
|
#######################################################################
|
2020-01-18 17:06:16 +03:00
|
|
|
# code used by both qemu system emulation and qemu-img
|
2015-10-21 15:16:21 +03:00
|
|
|
|
2020-01-18 17:06:16 +03:00
|
|
|
ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y)
|
2015-10-21 15:16:21 +03:00
|
|
|
|
2019-07-15 21:54:34 +03:00
|
|
|
authz-obj-y = authz/libauthz.fa
|
|
|
|
authz/libauthz.fa-libs = $(if $(CONFIG_AUTH_PAM),-lpam)
|
2010-01-06 22:24:05 +03:00
|
|
|
|
2019-08-29 21:34:43 +03:00
|
|
|
block-obj-y += libblock.fa
|
|
|
|
|
|
|
|
libblock.fa-libs = $(ZSTD_LIBS)
|
|
|
|
libblock.fa-libs += $(LIBNFS_LIBS)
|
|
|
|
libblock.fa-libs += $(LIBISCSI_LIBS)
|
|
|
|
libblock.fa-libs += $(CURL_LIBS)
|
|
|
|
libblock.fa-libs += $(RBD_LIBS)
|
|
|
|
libblock.fa-libs += $(GLUSTERFS_LIBS)
|
|
|
|
libblock.fa-libs += $(VXHS_LIBS)
|
|
|
|
libblock.fa-libs += $(LIBSSH_LIBS)
|
|
|
|
libblock.fa-libs += $(BZIP2_LIBS)
|
|
|
|
libblock.fa-libs += $(LZFSE_LIBS)
|
|
|
|
libblock.fa-libs += $(if $(CONFIG_LINUX_AIO),-laio)
|
|
|
|
libblock.fa-libs += $(LIBXML2_LIBS)
|
2014-02-10 10:48:59 +04:00
|
|
|
|
2019-07-15 22:18:07 +03:00
|
|
|
chardev-obj-y = chardev/libchardev.fa
|
|
|
|
|
2019-07-16 18:28:54 +03:00
|
|
|
crypto-obj-y = crypto/libcrypto.fa
|
2010-04-29 16:14:43 +04:00
|
|
|
|
2019-07-16 18:33:55 +03:00
|
|
|
io-obj-y = io/libio.fa
|
2015-02-27 19:19:33 +03:00
|
|
|
|
2020-01-18 17:06:16 +03:00
|
|
|
endif # CONFIG_SOFTMMU or CONFIG_TOOLS
|
|
|
|
|
2020-02-24 17:29:54 +03:00
|
|
|
#######################################################################
|
|
|
|
# storage-daemon-obj-y is code used by qemu-storage-daemon (these objects are
|
|
|
|
# used for system emulation, too, but specified separately there)
|
|
|
|
|
2020-02-24 17:30:08 +03:00
|
|
|
storage-daemon-obj-y = block/ monitor/ qapi/ qom/ storage-daemon/
|
|
|
|
storage-daemon-obj-y += blockdev.o blockdev-nbd.o iothread.o job-qmp.o
|
2020-02-24 17:30:00 +03:00
|
|
|
storage-daemon-obj-$(CONFIG_WIN32) += os-win32.o
|
|
|
|
storage-daemon-obj-$(CONFIG_POSIX) += os-posix.o
|
2020-02-24 17:29:54 +03:00
|
|
|
|
2010-01-06 22:24:05 +03:00
|
|
|
######################################################################
|
2011-11-15 16:47:11 +04:00
|
|
|
# Target independent part of system emulation. The long term path is to
|
|
|
|
# suppress *all* target specific code in case of system emulation, i.e. a
|
|
|
|
# single QEMU executable should support all CPUs and machines.
|
2010-01-06 22:24:05 +03:00
|
|
|
|
2013-01-19 14:06:47 +04:00
|
|
|
ifeq ($(CONFIG_SOFTMMU),y)
|
2019-09-03 15:59:33 +03:00
|
|
|
common-obj-y = monitor/
|
2012-10-24 13:27:28 +04:00
|
|
|
common-obj-y += net/
|
2012-05-22 15:46:08 +04:00
|
|
|
common-obj-$(CONFIG_LINUX) += fsdev/
|
|
|
|
|
2019-11-14 14:06:52 +03:00
|
|
|
common-obj-y += accel/
|
2014-12-12 14:13:38 +03:00
|
|
|
common-obj-y += migration/
|
2010-01-06 22:24:05 +03:00
|
|
|
|
2020-08-17 13:47:55 +03:00
|
|
|
common-obj-$(CONFIG_AUDIO_ALSA) += audio-alsa$(DSOSUF)
|
|
|
|
common-obj-$(CONFIG_AUDIO_OSS) += audio-oss$(DSOSUF)
|
|
|
|
common-obj-$(CONFIG_AUDIO_PA) += audio-pa$(DSOSUF)
|
|
|
|
common-obj-$(CONFIG_AUDIO_SDL) += audio-sdl$(DSOSUF)
|
|
|
|
|
2019-07-16 22:21:02 +03:00
|
|
|
common-obj-$(if $(CONFIG_CURSES),m) += ui-curses$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_GTK),m) += ui-gtk$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_SDL),m) += ui-sdl$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_SPICE),m) += ui-spice-app$(DSOSUF)
|
|
|
|
|
2019-08-29 21:34:43 +03:00
|
|
|
common-obj-$(if $(CONFIG_CURL),m) += block-curl$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_GLUSTERFS),m) += block-gluster$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_LIBISCSI),m) += block-iscsi$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_LIBNFS),m) += block-nfs$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_LIBSSH),m) += block-ssh$(DSOSUF)
|
|
|
|
common-obj-$(if $(CONFIG_RBD),m) += block-rbd$(DSOSUF)
|
|
|
|
|
|
|
|
common-obj-$(if $(CONFIG_LZFSE),m) += block-dmg-lzfse$(DSOSUF)
|
|
|
|
common-obj-$(if $(and $(CONFIG_BZIP2),$(CONFIG_DMG)),m) += block-dmg-bz2$(DSOSUF)
|
|
|
|
|
2012-05-29 13:08:47 +04:00
|
|
|
common-obj-y += hw/
|
2020-06-24 16:10:40 +03:00
|
|
|
common-obj-m += hw/
|
2012-12-17 21:17:08 +04:00
|
|
|
|
2015-09-17 19:23:37 +03:00
|
|
|
common-obj-y += replay/
|
2012-06-25 19:03:47 +04:00
|
|
|
common-obj-y += backends/
|
|
|
|
|
2019-02-14 18:22:40 +03:00
|
|
|
common-obj-y += qapi/
|
2020-01-18 17:06:17 +03:00
|
|
|
|
|
|
|
endif # CONFIG_SOFTMMU
|
2011-09-02 21:34:47 +04:00
|
|
|
|
2012-12-20 18:24:49 +04:00
|
|
|
#######################################################################
|
|
|
|
# Target-independent parts used in system and user emulation
|
2020-08-03 17:22:28 +03:00
|
|
|
|
2013-01-19 14:06:47 +04:00
|
|
|
common-obj-y += hw/
|
|
|
|
common-obj-y += qom/
|
|
|
|
common-obj-y += disas/
|
2012-03-05 00:32:36 +04:00
|
|
|
|
2013-08-08 22:18:07 +04:00
|
|
|
######################################################################
|
|
|
|
# Resource file for Windows executables
|
|
|
|
version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
|