qemu/Makefile.objs
<<
>>
Prefs
   1#######################################################################
   2# Common libraries for tools and emulators
   3stub-obj-y = stubs/
   4util-obj-y = util/ qobject/ qapi/ trace/
   5
   6#######################################################################
   7# block-obj-y is code used by both qemu system emulation and qemu-img
   8
   9block-obj-y = async.o thread-pool.o
  10block-obj-y += nbd.o block.o blockjob.o
  11block-obj-y += main-loop.o iohandler.o qemu-timer.o
  12block-obj-$(CONFIG_POSIX) += aio-posix.o
  13block-obj-$(CONFIG_WIN32) += aio-win32.o
  14block-obj-y += block/
  15block-obj-y += qapi-types.o qapi-visit.o
  16block-obj-y += qemu-io-cmds.o
  17
  18block-obj-y += qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
  19block-obj-y += qemu-coroutine-sleep.o
  20block-obj-y += coroutine-$(CONFIG_COROUTINE_BACKEND).o
  21
  22block-obj-m = block/
  23
  24
  25######################################################################
  26# smartcard
  27
  28libcacard-y += libcacard/cac.o libcacard/event.o
  29libcacard-y += libcacard/vcard.o libcacard/vreader.o
  30libcacard-y += libcacard/vcard_emul_nss.o
  31libcacard-y += libcacard/vcard_emul_type.o
  32libcacard-y += libcacard/card_7816.o
  33libcacard-y += libcacard/vcardt.o
  34
  35######################################################################
  36# Target independent part of system emulation. The long term path is to
  37# suppress *all* target specific code in case of system emulation, i.e. a
  38# single QEMU executable should support all CPUs and machines.
  39
  40ifeq ($(CONFIG_SOFTMMU),y)
  41common-obj-y = blockdev.o blockdev-nbd.o block/
  42common-obj-y += iothread.o
  43common-obj-y += net/
  44common-obj-y += qdev-monitor.o device-hotplug.o
  45common-obj-$(CONFIG_WIN32) += os-win32.o
  46common-obj-$(CONFIG_POSIX) += os-posix.o
  47
  48common-obj-$(CONFIG_LINUX) += fsdev/
  49
  50common-obj-y += migration.o migration-tcp.o
  51common-obj-y += vmstate.o
  52common-obj-y += qemu-file.o
  53common-obj-$(CONFIG_RDMA) += migration-rdma.o
  54common-obj-y += qemu-char.o #aio.o
  55common-obj-y += block-migration.o
  56common-obj-y += page_cache.o xbzrle.o
  57
  58common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
  59
  60common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
  61
  62common-obj-y += audio/
  63common-obj-y += hw/
  64
  65common-obj-y += ui/
  66common-obj-y += bt-host.o bt-vhci.o
  67
  68common-obj-y += dma-helpers.o
  69common-obj-y += vl.o
  70common-obj-y += tpm.o
  71
  72common-obj-$(CONFIG_SLIRP) += slirp/
  73
  74common-obj-y += backends/
  75
  76common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
  77
  78common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y)
  79
  80######################################################################
  81# qapi
  82
  83common-obj-y += qmp-marshal.o
  84common-obj-y += qmp.o hmp.o
  85endif
  86
  87######################################################################
  88# some qapi visitors are used by both system and user emulation:
  89
  90common-obj-y += qapi-visit.o qapi-types.o
  91
  92#######################################################################
  93# Target-independent parts used in system and user emulation
  94common-obj-y += qemu-log.o
  95common-obj-y += tcg-runtime.o
  96common-obj-y += hw/
  97common-obj-y += qom/
  98common-obj-y += disas/
  99
 100######################################################################
 101# Resource file for Windows executables
 102version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
 103version-lobj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.lo
 104
 105######################################################################
 106# guest agent
 107
 108# FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed
 109# by libqemuutil.a.  These should be moved to a separate .json schema.
 110qga-obj-y = qga/ qapi-types.o qapi-visit.o
 111qga-vss-dll-obj-y = qga/
 112