7272fc7268
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
94 lines
2.6 KiB
Makefile
94 lines
2.6 KiB
Makefile
#######################################################################
|
|
# Common libraries for tools and emulators
|
|
qom-obj-y = qom/
|
|
|
|
#######################################################################
|
|
# code used by both qemu system emulation and qemu-img
|
|
|
|
ifeq ($(call lor,$(CONFIG_SOFTMMU),$(CONFIG_TOOLS)),y)
|
|
|
|
chardev-obj-y = chardev/
|
|
|
|
authz-obj-y = authz/
|
|
|
|
block-obj-y = block/ nbd/ scsi/
|
|
block-obj-y += block.o blockjob.o job.o
|
|
block-obj-y += qemu-io-cmds.o
|
|
block-obj-$(CONFIG_REPLICATION) += replication.o
|
|
|
|
block-obj-m = block/
|
|
|
|
crypto-obj-y = crypto/
|
|
|
|
io-obj-y = io/
|
|
|
|
endif # CONFIG_SOFTMMU or CONFIG_TOOLS
|
|
|
|
#######################################################################
|
|
# storage-daemon-obj-y is code used by qemu-storage-daemon (these objects are
|
|
# used for system emulation, too, but specified separately there)
|
|
|
|
storage-daemon-obj-y = block/ monitor/ qapi/ qom/ storage-daemon/
|
|
storage-daemon-obj-y += blockdev.o blockdev-nbd.o iothread.o job-qmp.o
|
|
storage-daemon-obj-$(CONFIG_WIN32) += os-win32.o
|
|
storage-daemon-obj-$(CONFIG_POSIX) += os-posix.o
|
|
|
|
######################################################################
|
|
# 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.
|
|
|
|
ifeq ($(CONFIG_SOFTMMU),y)
|
|
common-obj-y = blockdev.o blockdev-nbd.o block/
|
|
common-obj-y += bootdevice.o iothread.o
|
|
common-obj-y += dump/
|
|
common-obj-y += job-qmp.o
|
|
common-obj-y += monitor/
|
|
common-obj-y += net/
|
|
common-obj-y += qdev-monitor.o
|
|
common-obj-$(CONFIG_WIN32) += os-win32.o
|
|
common-obj-$(CONFIG_POSIX) += os-posix.o
|
|
|
|
common-obj-$(CONFIG_LINUX) += fsdev/
|
|
|
|
common-obj-y += accel/
|
|
common-obj-y += migration/
|
|
|
|
common-obj-y += audio/
|
|
common-obj-m += audio/
|
|
common-obj-y += hw/
|
|
common-obj-m += hw/
|
|
|
|
common-obj-y += replay/
|
|
|
|
common-obj-y += ui/
|
|
common-obj-m += ui/
|
|
|
|
common-obj-y += dma-helpers.o
|
|
common-obj-$(CONFIG_TPM) += tpm.o
|
|
|
|
common-obj-y += backends/
|
|
common-obj-y += chardev/
|
|
common-obj-m += chardev/
|
|
|
|
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
|
|
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
|
|
qemu-seccomp.o-libs := $(SECCOMP_LIBS)
|
|
|
|
common-obj-$(CONFIG_FDT) += device_tree.o
|
|
|
|
common-obj-y += qapi/
|
|
|
|
endif # CONFIG_SOFTMMU
|
|
|
|
#######################################################################
|
|
# Target-independent parts used in system and user emulation
|
|
common-obj-y += cpus-common.o
|
|
common-obj-y += hw/
|
|
common-obj-y += qom/
|
|
common-obj-y += disas/
|
|
|
|
######################################################################
|
|
# Resource file for Windows executables
|
|
version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
|