Makefile.objs 8.58 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
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
14
util-obj-y += qapi/qapi-types-misc.o
15 16 17 18 19 20 21 22
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
23
util-obj-y += qapi-builtin-visit.o
24 25 26 27 28 29 30 31
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
32
util-obj-y += qapi/qapi-visit-misc.o
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
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
49
util-obj-y += qapi/qapi-events-misc.o
50 51 52 53 54 55 56 57 58
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
59

60 61
chardev-obj-y = chardev/

62 63 64
#######################################################################
# block-obj-y is code used by both qemu system emulation and qemu-img

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

71 72
block-obj-m = block/

73 74 75 76 77
#######################################################################
# crypto-obj-y is code used by both qemu system emulation and qemu-img

crypto-obj-y = crypto/
crypto-aes-obj-y = crypto/
78

79 80 81 82 83
#######################################################################
# qom-obj-y is code used by both qemu system emulation and qemu-img

qom-obj-y = qom/

84 85 86 87 88
#######################################################################
# io-obj-y is code used by both qemu system emulation and qemu-img

io-obj-y = io/

89
######################################################################
90 91 92
# 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.
93

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

102 103
common-obj-$(CONFIG_LINUX) += fsdev/

104
common-obj-y += migration/
105

106
common-obj-y += audio/
107
common-obj-y += hw/
108

109 110
common-obj-y += replay/

111
common-obj-y += ui/
112
common-obj-y += bt-host.o bt-vhci.o
113
bt-host.o-cflags := $(BLUEZ_CFLAGS)
114

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

120
common-obj-$(CONFIG_SLIRP) += slirp/
121

122
common-obj-y += backends/
123
common-obj-y += chardev/
124

125
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
126 127
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
qemu-seccomp.o-libs := $(SECCOMP_LIBS)
128

129 130
common-obj-$(CONFIG_FDT) += device_tree.o

131 132 133
######################################################################
# qapi

134
common-obj-y += qmp-commands.o
135 136 137 138 139 140 141
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
142
common-obj-y += qapi/qapi-commands-misc.o
143 144 145 146 147 148 149 150
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
151
common-obj-y += qmp-introspect.o
152
common-obj-y += qmp.o hmp.o
153
endif
154

155 156
#######################################################################
# Target-independent parts used in system and user emulation
157
common-obj-y += cpus-common.o
158 159 160
common-obj-y += hw/
common-obj-y += qom/
common-obj-y += disas/
161

162 163 164 165
######################################################################
# Resource file for Windows executables
version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o

166 167 168 169 170
######################################################################
# tracing
util-obj-y +=  trace/
target-obj-y += trace/

171 172 173
######################################################################
# guest agent

174 175
# 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.
176
qga-obj-y = qga/
177
qga-vss-dll-obj-y = qga/
178 179 180

######################################################################
# contrib
181 182
ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
183
libvhost-user-obj-y = contrib/libvhost-user/
184 185 186
vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
187
vhost-user-blk-obj-y = contrib/vhost-user-blk/
188 189

######################################################################
190 191 192 193 194 195
trace-events-subdirs =
trace-events-subdirs += util
trace-events-subdirs += crypto
trace-events-subdirs += io
trace-events-subdirs += migration
trace-events-subdirs += block
196
trace-events-subdirs += chardev
197 198 199 200 201
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
202
trace-events-subdirs += hw/rdma
203
trace-events-subdirs += hw/rdma/vmw
204 205 206
trace-events-subdirs += hw/virtio
trace-events-subdirs += hw/audio
trace-events-subdirs += hw/misc
207
trace-events-subdirs += hw/misc/macio
208 209 210 211 212 213 214 215
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
216
trace-events-subdirs += hw/sparc64
217 218 219 220 221 222 223 224
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
225
trace-events-subdirs += hw/pci-host
226 227 228 229 230
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
231
trace-events-subdirs += hw/hppa
232
trace-events-subdirs += hw/xen
233
trace-events-subdirs += hw/ide
234 235 236 237 238
trace-events-subdirs += ui
trace-events-subdirs += audio
trace-events-subdirs += net
trace-events-subdirs += target/arm
trace-events-subdirs += target/i386
239
trace-events-subdirs += target/mips
240 241 242 243 244 245
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
246
trace-events-subdirs += accel/tcg
247
trace-events-subdirs += accel/kvm
248
trace-events-subdirs += nbd
249
trace-events-subdirs += scsi
250 251 252 253 254 255 256 257

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)