Makefile.objs 8.43 KB
Newer Older
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 += qapi-builtin-types.o
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
util-obj-y += qapi-types.o
util-obj-y += qapi/qapi-types-block-core.o
util-obj-y += qapi/qapi-types-block.o
util-obj-y += qapi/qapi-types-char.o
util-obj-y += qapi/qapi-types-common.o
util-obj-y += qapi/qapi-types-crypto.o
util-obj-y += qapi/qapi-types-introspect.o
util-obj-y += qapi/qapi-types-migration.o
util-obj-y += qapi/qapi-types-net.o
util-obj-y += qapi/qapi-types-rocker.o
util-obj-y += qapi/qapi-types-run-state.o
util-obj-y += qapi/qapi-types-sockets.o
util-obj-y += qapi/qapi-types-tpm.o
util-obj-y += qapi/qapi-types-trace.o
util-obj-y += qapi/qapi-types-transaction.o
util-obj-y += qapi/qapi-types-ui.o
22
util-obj-y += qapi-builtin-visit.o
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
util-obj-y += qapi-visit.o
util-obj-y += qapi/qapi-visit-block-core.o
util-obj-y += qapi/qapi-visit-block.o
util-obj-y += qapi/qapi-visit-char.o
util-obj-y += qapi/qapi-visit-common.o
util-obj-y += qapi/qapi-visit-crypto.o
util-obj-y += qapi/qapi-visit-introspect.o
util-obj-y += qapi/qapi-visit-migration.o
util-obj-y += qapi/qapi-visit-net.o
util-obj-y += qapi/qapi-visit-rocker.o
util-obj-y += qapi/qapi-visit-run-state.o
util-obj-y += qapi/qapi-visit-sockets.o
util-obj-y += qapi/qapi-visit-tpm.o
util-obj-y += qapi/qapi-visit-trace.o
util-obj-y += qapi/qapi-visit-transaction.o
util-obj-y += qapi/qapi-visit-ui.o
util-obj-y += qapi-event.o
util-obj-y += qapi/qapi-events-block-core.o
util-obj-y += qapi/qapi-events-block.o
util-obj-y += qapi/qapi-events-char.o
util-obj-y += qapi/qapi-events-common.o
util-obj-y += qapi/qapi-events-crypto.o
util-obj-y += qapi/qapi-events-introspect.o
util-obj-y += qapi/qapi-events-migration.o
util-obj-y += qapi/qapi-events-net.o
util-obj-y += qapi/qapi-events-rocker.o
util-obj-y += qapi/qapi-events-run-state.o
util-obj-y += qapi/qapi-events-sockets.o
util-obj-y += qapi/qapi-events-tpm.o
util-obj-y += qapi/qapi-events-trace.o
util-obj-y += qapi/qapi-events-transaction.o
util-obj-y += qapi/qapi-events-ui.o
util-obj-y += qmp-introspect.o
56

57 58
chardev-obj-y = chardev/

59 60 61
#######################################################################
# block-obj-y is code used by both qemu system emulation and qemu-img

Fam Zheng's avatar
Fam Zheng committed
62 63
block-obj-y += nbd/
block-obj-y += block.o blockjob.o
64
block-obj-y += block/ scsi/
65
block-obj-y += qemu-io-cmds.o
66
block-obj-$(CONFIG_REPLICATION) += replication.o
67

68 69
block-obj-m = block/

70 71 72 73 74
#######################################################################
# crypto-obj-y is code used by both qemu system emulation and qemu-img

crypto-obj-y = crypto/
crypto-aes-obj-y = crypto/
75

76 77 78 79 80
#######################################################################
# qom-obj-y is code used by both qemu system emulation and qemu-img

qom-obj-y = qom/

81 82 83 84 85
#######################################################################
# io-obj-y is code used by both qemu system emulation and qemu-img

io-obj-y = io/

86
######################################################################
87 88 89
# 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.
90

91
ifeq ($(CONFIG_SOFTMMU),y)
92
common-obj-y = blockdev.o blockdev-nbd.o block/
93
common-obj-y += bootdevice.o iothread.o
Paolo Bonzini's avatar
Paolo Bonzini committed
94
common-obj-y += net/
95
common-obj-y += qdev-monitor.o device-hotplug.o
96 97
common-obj-$(CONFIG_WIN32) += os-win32.o
common-obj-$(CONFIG_POSIX) += os-posix.o
98

99 100
common-obj-$(CONFIG_LINUX) += fsdev/

101
common-obj-y += migration/
102

103
common-obj-y += audio/
104
common-obj-y += hw/
105

106 107
common-obj-y += replay/

108
common-obj-y += ui/
109
common-obj-y += bt-host.o bt-vhci.o
110
bt-host.o-cflags := $(BLUEZ_CFLAGS)
111

Stefan Weil's avatar
Stefan Weil committed
112 113
common-obj-y += dma-helpers.o
common-obj-y += vl.o
114
vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
Philippe Mathieu-Daudé's avatar
Philippe Mathieu-Daudé committed
115
common-obj-$(CONFIG_TPM) += tpm.o
116

117
common-obj-$(CONFIG_SLIRP) += slirp/
118

119
common-obj-y += backends/
120
common-obj-y += chardev/
121

122
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
123 124
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
qemu-seccomp.o-libs := $(SECCOMP_LIBS)
125

126 127
common-obj-$(CONFIG_FDT) += device_tree.o

128 129 130
######################################################################
# qapi

131
common-obj-y += qmp-commands.o
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
common-obj-y += qapi/qapi-commands-block-core.o
common-obj-y += qapi/qapi-commands-block.o
common-obj-y += qapi/qapi-commands-char.o
common-obj-y += qapi/qapi-commands-common.o
common-obj-y += qapi/qapi-commands-crypto.o
common-obj-y += qapi/qapi-commands-introspect.o
common-obj-y += qapi/qapi-commands-migration.o
common-obj-y += qapi/qapi-commands-net.o
common-obj-y += qapi/qapi-commands-rocker.o
common-obj-y += qapi/qapi-commands-run-state.o
common-obj-y += qapi/qapi-commands-sockets.o
common-obj-y += qapi/qapi-commands-tpm.o
common-obj-y += qapi/qapi-commands-trace.o
common-obj-y += qapi/qapi-commands-transaction.o
common-obj-y += qapi/qapi-commands-ui.o
147
common-obj-y += qmp-introspect.o
148
common-obj-y += qmp.o hmp.o
149
endif
150

151 152
#######################################################################
# Target-independent parts used in system and user emulation
153
common-obj-y += cpus-common.o
154 155 156
common-obj-y += hw/
common-obj-y += qom/
common-obj-y += disas/
157

158 159 160 161
######################################################################
# Resource file for Windows executables
version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o

162 163 164 165 166
######################################################################
# tracing
util-obj-y +=  trace/
target-obj-y += trace/

167 168 169
######################################################################
# guest agent

170 171
# FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed
# by libqemuutil.a.  These should be moved to a separate .json schema.
172
qga-obj-y = qga/
173
qga-vss-dll-obj-y = qga/
174 175 176

######################################################################
# contrib
177 178
ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
179
libvhost-user-obj-y = contrib/libvhost-user/
180 181 182
vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
183
vhost-user-blk-obj-y = contrib/vhost-user-blk/
184 185

######################################################################
186 187 188 189 190 191
trace-events-subdirs =
trace-events-subdirs += util
trace-events-subdirs += crypto
trace-events-subdirs += io
trace-events-subdirs += migration
trace-events-subdirs += block
192
trace-events-subdirs += chardev
193 194 195 196 197
trace-events-subdirs += hw/block
trace-events-subdirs += hw/block/dataplane
trace-events-subdirs += hw/char
trace-events-subdirs += hw/intc
trace-events-subdirs += hw/net
198
trace-events-subdirs += hw/rdma
199
trace-events-subdirs += hw/rdma/vmw
200 201 202
trace-events-subdirs += hw/virtio
trace-events-subdirs += hw/audio
trace-events-subdirs += hw/misc
203
trace-events-subdirs += hw/misc/macio
204 205 206 207 208 209 210 211
trace-events-subdirs += hw/usb
trace-events-subdirs += hw/scsi
trace-events-subdirs += hw/nvram
trace-events-subdirs += hw/display
trace-events-subdirs += hw/input
trace-events-subdirs += hw/timer
trace-events-subdirs += hw/dma
trace-events-subdirs += hw/sparc
212
trace-events-subdirs += hw/sparc64
213 214 215 216 217 218 219 220
trace-events-subdirs += hw/sd
trace-events-subdirs += hw/isa
trace-events-subdirs += hw/mem
trace-events-subdirs += hw/i386
trace-events-subdirs += hw/i386/xen
trace-events-subdirs += hw/9pfs
trace-events-subdirs += hw/ppc
trace-events-subdirs += hw/pci
221
trace-events-subdirs += hw/pci-host
222 223 224 225 226
trace-events-subdirs += hw/s390x
trace-events-subdirs += hw/vfio
trace-events-subdirs += hw/acpi
trace-events-subdirs += hw/arm
trace-events-subdirs += hw/alpha
227
trace-events-subdirs += hw/hppa
228
trace-events-subdirs += hw/xen
229
trace-events-subdirs += hw/ide
230 231 232 233 234
trace-events-subdirs += ui
trace-events-subdirs += audio
trace-events-subdirs += net
trace-events-subdirs += target/arm
trace-events-subdirs += target/i386
235
trace-events-subdirs += target/mips
236 237 238 239 240 241
trace-events-subdirs += target/sparc
trace-events-subdirs += target/s390x
trace-events-subdirs += target/ppc
trace-events-subdirs += qom
trace-events-subdirs += linux-user
trace-events-subdirs += qapi
242
trace-events-subdirs += accel/tcg
243
trace-events-subdirs += accel/kvm
244
trace-events-subdirs += nbd
245
trace-events-subdirs += scsi
246 247 248 249 250 251 252 253

trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)

trace-obj-y = trace-root.o
trace-obj-y += $(trace-events-subdirs:%=%/trace.o)
trace-obj-$(CONFIG_TRACE_UST) += trace-ust-all.o
trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace-root.o
trace-obj-$(CONFIG_TRACE_DTRACE) += $(trace-events-subdirs:%=%/trace-dtrace.o)