2012-11-16 18:35:27 +01:00
|
|
|
#######################################################################
|
2012-12-20 16:10:26 +01:00
|
|
|
# Common libraries for tools and emulators
|
2019-07-16 17:40:16 +02:00
|
|
|
qom-obj-y = qom/libqom.fa
|
2016-12-12 13:49:01 +01:00
|
|
|
|
2015-10-21 14:16:21 +02:00
|
|
|
#######################################################################
|
2020-01-18 15:06:16 +01:00
|
|
|
# code used by both qemu system emulation and qemu-img
|
2015-10-21 14:16:21 +02:00
|
|
|
|
2020-01-18 15:06:16 +01:00
|
|
|
ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y)
|
2015-10-21 14:16:21 +02:00
|
|
|
|
2019-07-15 20:54:34 +02:00
|
|
|
authz-obj-y = authz/libauthz.fa
|
|
|
|
authz/libauthz.fa-libs = $(if $(CONFIG_AUTH_PAM),-lpam)
|
2010-01-06 20:24:05 +01:00
|
|
|
|
2020-06-08 19:33:39 +02:00
|
|
|
block-obj-y = block/ nbd/ scsi/
|
2018-04-12 17:29:59 +02:00
|
|
|
block-obj-y += block.o blockjob.o job.o
|
2013-06-05 14:19:41 +02:00
|
|
|
block-obj-y += qemu-io-cmds.o
|
2016-07-27 09:01:49 +02:00
|
|
|
block-obj-$(CONFIG_REPLICATION) += replication.o
|
2010-01-06 20:24:05 +01:00
|
|
|
|
2014-02-10 07:48:59 +01:00
|
|
|
block-obj-m = block/
|
|
|
|
|
2019-07-15 21:18:07 +02:00
|
|
|
chardev-obj-y = chardev/libchardev.fa
|
|
|
|
|
2019-07-16 17:28:54 +02:00
|
|
|
crypto-obj-y = crypto/libcrypto.fa
|
2010-04-29 14:14:43 +02:00
|
|
|
|
2019-07-16 17:33:55 +02:00
|
|
|
io-obj-y = io/libio.fa
|
2015-02-27 17:19:33 +01:00
|
|
|
|
2020-01-18 15:06:16 +01:00
|
|
|
endif # CONFIG_SOFTMMU or CONFIG_TOOLS
|
|
|
|
|
2020-02-24 15:29:54 +01: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 15:30:08 +01: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 15:30:00 +01:00
|
|
|
storage-daemon-obj-$(CONFIG_WIN32) += os-win32.o
|
|
|
|
storage-daemon-obj-$(CONFIG_POSIX) += os-posix.o
|
2020-02-24 15:29:54 +01:00
|
|
|
|
2010-01-06 20:24:05 +01:00
|
|
|
######################################################################
|
2011-11-15 13:47:11 +01: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 20:24:05 +01:00
|
|
|
|
2013-01-19 11:06:47 +01:00
|
|
|
ifeq ($(CONFIG_SOFTMMU),y)
|
2014-02-10 07:48:52 +01:00
|
|
|
common-obj-y = blockdev.o blockdev-nbd.o block/
|
2017-06-26 07:22:57 +02:00
|
|
|
common-obj-y += bootdevice.o iothread.o
|
2019-06-19 22:10:50 +02:00
|
|
|
common-obj-y += dump/
|
2018-05-03 19:01:14 +02:00
|
|
|
common-obj-y += job-qmp.o
|
2019-06-13 17:34:00 +02:00
|
|
|
common-obj-y += monitor/
|
2012-10-24 11:27:28 +02:00
|
|
|
common-obj-y += net/
|
2020-03-08 10:24:32 +01:00
|
|
|
common-obj-y += qdev-monitor.o
|
2010-06-12 07:49:30 +02:00
|
|
|
common-obj-$(CONFIG_WIN32) += os-win32.o
|
|
|
|
common-obj-$(CONFIG_POSIX) += os-posix.o
|
2010-05-21 11:54:32 +02:00
|
|
|
|
2012-05-22 13:46:08 +02:00
|
|
|
common-obj-$(CONFIG_LINUX) += fsdev/
|
|
|
|
|
2019-11-14 12:06:52 +01:00
|
|
|
common-obj-y += accel/
|
2014-12-12 12:13:38 +01:00
|
|
|
common-obj-y += migration/
|
2010-01-06 20:24:05 +01:00
|
|
|
|
2012-05-22 13:49:02 +02:00
|
|
|
common-obj-y += audio/
|
2018-03-06 08:40:49 +01:00
|
|
|
common-obj-m += audio/
|
2012-05-29 11:08:47 +02:00
|
|
|
common-obj-y += hw/
|
2020-06-24 15:10:40 +02:00
|
|
|
common-obj-m += hw/
|
2012-12-17 18:17:08 +01:00
|
|
|
|
2015-09-17 18:23:37 +02:00
|
|
|
common-obj-y += replay/
|
|
|
|
|
2012-05-22 13:48:15 +02:00
|
|
|
common-obj-y += ui/
|
2018-03-01 11:05:41 +01:00
|
|
|
common-obj-m += ui/
|
2010-07-07 20:57:52 +02:00
|
|
|
|
2012-10-05 19:39:33 +02:00
|
|
|
common-obj-y += dma-helpers.o
|
2017-10-24 14:20:43 +02:00
|
|
|
common-obj-$(CONFIG_TPM) += tpm.o
|
2010-01-06 20:24:05 +01:00
|
|
|
|
2012-06-25 17:03:47 +02:00
|
|
|
common-obj-y += backends/
|
2017-05-29 10:39:42 +02:00
|
|
|
common-obj-y += chardev/
|
2020-06-24 15:10:45 +02:00
|
|
|
common-obj-m += chardev/
|
2012-06-25 17:03:47 +02:00
|
|
|
|
2013-01-19 11:06:46 +01:00
|
|
|
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
|
2017-09-07 10:53:16 +02:00
|
|
|
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
|
|
|
|
qemu-seccomp.o-libs := $(SECCOMP_LIBS)
|
2012-08-14 23:44:05 +02:00
|
|
|
|
2015-05-24 22:20:14 +02:00
|
|
|
common-obj-$(CONFIG_FDT) += device_tree.o
|
|
|
|
|
2019-02-14 16:22:40 +01:00
|
|
|
common-obj-y += qapi/
|
2020-01-18 15:06:17 +01:00
|
|
|
|
|
|
|
endif # CONFIG_SOFTMMU
|
2011-09-02 19:34:47 +02:00
|
|
|
|
2012-12-20 15:24:49 +01:00
|
|
|
#######################################################################
|
|
|
|
# Target-independent parts used in system and user emulation
|
2016-06-28 20:37:27 +02:00
|
|
|
common-obj-y += cpus-common.o
|
2013-01-19 11:06:47 +01:00
|
|
|
common-obj-y += hw/
|
|
|
|
common-obj-y += qom/
|
|
|
|
common-obj-y += disas/
|
2012-03-04 21:32:36 +01:00
|
|
|
|
2013-08-08 20:18:07 +02:00
|
|
|
######################################################################
|
|
|
|
# Resource file for Windows executables
|
|
|
|
version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
|