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
|
|
|
|
2020-01-18 17:06:16 +03:00
|
|
|
chardev-obj-y = chardev/
|
|
|
|
|
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
|
|
|
|
2020-06-08 20:33:39 +03:00
|
|
|
block-obj-y = block/ nbd/ scsi/
|
2018-04-12 18:29:59 +03:00
|
|
|
block-obj-y += block.o blockjob.o job.o
|
2013-06-05 16:19:41 +04:00
|
|
|
block-obj-y += qemu-io-cmds.o
|
2016-07-27 10:01:49 +03:00
|
|
|
block-obj-$(CONFIG_REPLICATION) += replication.o
|
2010-01-06 22:24:05 +03:00
|
|
|
|
2014-02-10 10:48:59 +04:00
|
|
|
block-obj-m = block/
|
|
|
|
|
2015-09-02 12:57:27 +03:00
|
|
|
crypto-obj-y = crypto/
|
2010-04-29 16:14:43 +04:00
|
|
|
|
2015-02-27 19:19:33 +03:00
|
|
|
io-obj-y = io/
|
|
|
|
|
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)
|
2014-02-10 10:48:52 +04:00
|
|
|
common-obj-y = blockdev.o blockdev-nbd.o block/
|
2017-06-26 08:22:57 +03:00
|
|
|
common-obj-y += bootdevice.o iothread.o
|
2019-06-19 23:10:50 +03:00
|
|
|
common-obj-y += dump/
|
2018-05-03 20:01:14 +03:00
|
|
|
common-obj-y += job-qmp.o
|
2019-06-13 18:34:00 +03:00
|
|
|
common-obj-y += monitor/
|
2012-10-24 13:27:28 +04:00
|
|
|
common-obj-y += net/
|
2020-03-08 12:24:32 +03:00
|
|
|
common-obj-y += qdev-monitor.o
|
2010-06-12 09:49:30 +04:00
|
|
|
common-obj-$(CONFIG_WIN32) += os-win32.o
|
|
|
|
common-obj-$(CONFIG_POSIX) += os-posix.o
|
2010-05-21 13:54:32 +04:00
|
|
|
|
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
|
|
|
|
2012-05-22 15:49:02 +04:00
|
|
|
common-obj-y += audio/
|
2018-03-06 10:40:49 +03:00
|
|
|
common-obj-m += audio/
|
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-05-22 15:48:15 +04:00
|
|
|
common-obj-y += ui/
|
2018-03-01 13:05:41 +03:00
|
|
|
common-obj-m += ui/
|
2010-07-07 22:57:52 +04:00
|
|
|
|
2012-10-05 21:39:33 +04:00
|
|
|
common-obj-y += dma-helpers.o
|
2017-10-24 15:20:43 +03:00
|
|
|
common-obj-$(CONFIG_TPM) += tpm.o
|
2010-01-06 22:24:05 +03:00
|
|
|
|
2012-06-25 19:03:47 +04:00
|
|
|
common-obj-y += backends/
|
2017-05-29 11:39:42 +03:00
|
|
|
common-obj-y += chardev/
|
2020-06-24 16:10:45 +03:00
|
|
|
common-obj-m += chardev/
|
2012-06-25 19:03:47 +04:00
|
|
|
|
2013-01-19 14:06:46 +04:00
|
|
|
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
|
2017-09-07 11:53:16 +03:00
|
|
|
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
|
|
|
|
qemu-seccomp.o-libs := $(SECCOMP_LIBS)
|
2012-08-15 01:44:05 +04:00
|
|
|
|
2015-05-24 23:20:14 +03:00
|
|
|
common-obj-$(CONFIG_FDT) += device_tree.o
|
|
|
|
|
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
|
2016-06-28 21:37:27 +03:00
|
|
|
common-obj-y += cpus-common.o
|
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
|