Makefile.objs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. #######################################################################
  2. # Common libraries for tools and emulators
  3. stub-obj-y = stubs/ crypto/
  4. util-obj-y = util/ qobject/ qapi/
  5. util-obj-y += qmp-introspect.o qapi-types.o qapi-visit.o qapi-event.o
  6. chardev-obj-y = chardev/
  7. #######################################################################
  8. # block-obj-y is code used by both qemu system emulation and qemu-img
  9. block-obj-y += nbd/
  10. block-obj-y += block.o blockjob.o
  11. block-obj-y += block/
  12. block-obj-y += qemu-io-cmds.o
  13. block-obj-$(CONFIG_REPLICATION) += replication.o
  14. block-obj-m = block/
  15. #######################################################################
  16. # crypto-obj-y is code used by both qemu system emulation and qemu-img
  17. crypto-obj-y = crypto/
  18. crypto-aes-obj-y = crypto/
  19. #######################################################################
  20. # qom-obj-y is code used by both qemu system emulation and qemu-img
  21. qom-obj-y = qom/
  22. #######################################################################
  23. # io-obj-y is code used by both qemu system emulation and qemu-img
  24. io-obj-y = io/
  25. ######################################################################
  26. # Target independent part of system emulation. The long term path is to
  27. # suppress *all* target specific code in case of system emulation, i.e. a
  28. # single QEMU executable should support all CPUs and machines.
  29. ifeq ($(CONFIG_SOFTMMU),y)
  30. common-obj-y = blockdev.o blockdev-nbd.o block/
  31. common-obj-y += iothread.o
  32. common-obj-y += net/
  33. common-obj-y += qdev-monitor.o device-hotplug.o
  34. common-obj-$(CONFIG_WIN32) += os-win32.o
  35. common-obj-$(CONFIG_POSIX) += os-posix.o
  36. common-obj-$(CONFIG_LINUX) += fsdev/
  37. common-obj-y += migration/
  38. common-obj-y += audio/
  39. common-obj-y += hw/
  40. common-obj-y += accel.o
  41. common-obj-y += replay/
  42. common-obj-y += ui/
  43. common-obj-y += bt-host.o bt-vhci.o
  44. bt-host.o-cflags := $(BLUEZ_CFLAGS)
  45. common-obj-y += dma-helpers.o
  46. common-obj-y += vl.o
  47. vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
  48. common-obj-y += tpm.o
  49. common-obj-$(CONFIG_SLIRP) += slirp/
  50. common-obj-y += backends/
  51. common-obj-y += chardev/
  52. common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
  53. common-obj-$(CONFIG_FDT) += device_tree.o
  54. ######################################################################
  55. # qapi
  56. common-obj-y += qmp-marshal.o
  57. common-obj-y += qmp-introspect.o
  58. common-obj-y += qmp.o hmp.o
  59. endif
  60. #######################################################################
  61. # Target-independent parts used in system and user emulation
  62. common-obj-y += cpus-common.o
  63. common-obj-y += hw/
  64. common-obj-y += qom/
  65. common-obj-y += disas/
  66. ######################################################################
  67. # Resource file for Windows executables
  68. version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
  69. ######################################################################
  70. # tracing
  71. util-obj-y += trace/
  72. target-obj-y += trace/
  73. ######################################################################
  74. # guest agent
  75. # FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed
  76. # by libqemuutil.a. These should be moved to a separate .json schema.
  77. qga-obj-y = qga/
  78. qga-vss-dll-obj-y = qga/
  79. ######################################################################
  80. # contrib
  81. ivshmem-client-obj-y = contrib/ivshmem-client/
  82. ivshmem-server-obj-y = contrib/ivshmem-server/
  83. libvhost-user-obj-y = contrib/libvhost-user/
  84. ######################################################################
  85. trace-events-subdirs =
  86. trace-events-subdirs += util
  87. trace-events-subdirs += crypto
  88. trace-events-subdirs += io
  89. trace-events-subdirs += migration
  90. trace-events-subdirs += block
  91. trace-events-subdirs += backends
  92. trace-events-subdirs += chardev
  93. trace-events-subdirs += hw/block
  94. trace-events-subdirs += hw/block/dataplane
  95. trace-events-subdirs += hw/char
  96. trace-events-subdirs += hw/intc
  97. trace-events-subdirs += hw/net
  98. trace-events-subdirs += hw/virtio
  99. trace-events-subdirs += hw/audio
  100. trace-events-subdirs += hw/misc
  101. trace-events-subdirs += hw/usb
  102. trace-events-subdirs += hw/scsi
  103. trace-events-subdirs += hw/nvram
  104. trace-events-subdirs += hw/display
  105. trace-events-subdirs += hw/input
  106. trace-events-subdirs += hw/timer
  107. trace-events-subdirs += hw/dma
  108. trace-events-subdirs += hw/sparc
  109. trace-events-subdirs += hw/sd
  110. trace-events-subdirs += hw/isa
  111. trace-events-subdirs += hw/mem
  112. trace-events-subdirs += hw/i386
  113. trace-events-subdirs += hw/i386/xen
  114. trace-events-subdirs += hw/9pfs
  115. trace-events-subdirs += hw/ppc
  116. trace-events-subdirs += hw/pci
  117. trace-events-subdirs += hw/s390x
  118. trace-events-subdirs += hw/vfio
  119. trace-events-subdirs += hw/acpi
  120. trace-events-subdirs += hw/arm
  121. trace-events-subdirs += hw/alpha
  122. trace-events-subdirs += hw/xen
  123. trace-events-subdirs += ui
  124. trace-events-subdirs += audio
  125. trace-events-subdirs += net
  126. trace-events-subdirs += target/arm
  127. trace-events-subdirs += target/i386
  128. trace-events-subdirs += target/mips
  129. trace-events-subdirs += target/sparc
  130. trace-events-subdirs += target/s390x
  131. trace-events-subdirs += target/ppc
  132. trace-events-subdirs += qom
  133. trace-events-subdirs += linux-user
  134. trace-events-subdirs += qapi
  135. trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)
  136. trace-obj-y = trace-root.o
  137. trace-obj-y += $(trace-events-subdirs:%=%/trace.o)
  138. trace-obj-$(CONFIG_TRACE_UST) += trace-ust-all.o
  139. trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace-root.o
  140. trace-obj-$(CONFIG_TRACE_DTRACE) += $(trace-events-subdirs:%=%/trace-dtrace.o)