Makefile.objs 6.1 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

M
Marc-André Lureau 已提交
6
chardev-obj-y = chardev/
7
slirp-obj-$(CONFIG_SLIRP) = slirp/
M
Marc-André Lureau 已提交
8

9 10 11
#######################################################################
# block-obj-y is code used by both qemu system emulation and qemu-img

F
Fam Zheng 已提交
12
block-obj-y += nbd/
13
block-obj-y += block.o blockjob.o job.o
14
block-obj-y += block/ scsi/
15
block-obj-y += qemu-io-cmds.o
16
block-obj-$(CONFIG_REPLICATION) += replication.o
17

18 19
block-obj-m = block/

20 21 22 23 24
#######################################################################
# crypto-obj-y is code used by both qemu system emulation and qemu-img

crypto-obj-y = crypto/
crypto-aes-obj-y = crypto/
25

26 27 28 29 30
#######################################################################
# qom-obj-y is code used by both qemu system emulation and qemu-img

qom-obj-y = qom/

31 32 33 34 35
#######################################################################
# io-obj-y is code used by both qemu system emulation and qemu-img

io-obj-y = io/

36
######################################################################
37 38 39
# 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.
40

P
Paolo Bonzini 已提交
41
ifeq ($(CONFIG_SOFTMMU),y)
42
common-obj-y = blockdev.o blockdev-nbd.o block/
43
common-obj-y += bootdevice.o iothread.o
K
Kevin Wolf 已提交
44
common-obj-y += job-qmp.o
P
Paolo Bonzini 已提交
45
common-obj-y += net/
46
common-obj-y += qdev-monitor.o device-hotplug.o
47 48
common-obj-$(CONFIG_WIN32) += os-win32.o
common-obj-$(CONFIG_POSIX) += os-posix.o
G
Gerd Hoffmann 已提交
49

50 51
common-obj-$(CONFIG_LINUX) += fsdev/

52
common-obj-y += migration/
53

54
common-obj-y += audio/
G
Gerd Hoffmann 已提交
55
common-obj-m += audio/
56
common-obj-y += hw/
57

58 59
common-obj-y += replay/

60
common-obj-y += ui/
61
common-obj-m += ui/
62
common-obj-y += bt-host.o bt-vhci.o
63
bt-host.o-cflags := $(BLUEZ_CFLAGS)
64

S
Stefan Weil 已提交
65 66
common-obj-y += dma-helpers.o
common-obj-y += vl.o
67
vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
P
Philippe Mathieu-Daudé 已提交
68
common-obj-$(CONFIG_TPM) += tpm.o
69

70
common-obj-y += backends/
71
common-obj-y += chardev/
72

73
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
74 75
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
qemu-seccomp.o-libs := $(SECCOMP_LIBS)
76

77 78
common-obj-$(CONFIG_FDT) += device_tree.o

M
Michael Roth 已提交
79 80 81
######################################################################
# qapi

A
Anthony Liguori 已提交
82
common-obj-y += qmp.o hmp.o
83
common-obj-y += qapi/
P
Paolo Bonzini 已提交
84
endif
85

86 87
#######################################################################
# Target-independent parts used in system and user emulation
R
Richard Henderson 已提交
88
common-obj-y += cpus-common.o
P
Paolo Bonzini 已提交
89 90 91
common-obj-y += hw/
common-obj-y += qom/
common-obj-y += disas/
92

93 94 95 96
######################################################################
# Resource file for Windows executables
version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o

97 98 99 100 101
######################################################################
# tracing
util-obj-y +=  trace/
target-obj-y += trace/

102 103 104
######################################################################
# guest agent

105 106 107
# FIXME: a few definitions from qapi/qapi-types.o and
# qapi/qapi-visit.o are needed by libqemuutil.a.  These should be
# extracted into a QAPI schema module, or perhaps a separate schema.
108
qga-obj-y = qga/
109
qga-vss-dll-obj-y = qga/
110 111 112

######################################################################
# contrib
V
Viktor Prutyanov 已提交
113
elf2dmp-obj-y = contrib/elf2dmp/
114 115
ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
M
Marc-André Lureau 已提交
116
libvhost-user-obj-y = contrib/libvhost-user/
117 118 119
vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
120
vhost-user-blk-obj-y = contrib/vhost-user-blk/
121
rdmacm-mux-obj-y = contrib/rdmacm-mux/
122 123

######################################################################
124
trace-events-subdirs =
125 126 127
trace-events-subdirs += accel/kvm
trace-events-subdirs += accel/tcg
trace-events-subdirs += audio
128
trace-events-subdirs += block
129
trace-events-subdirs += chardev
130 131 132 133 134 135
trace-events-subdirs += crypto
trace-events-subdirs += hw/9pfs
trace-events-subdirs += hw/acpi
trace-events-subdirs += hw/alpha
trace-events-subdirs += hw/arm
trace-events-subdirs += hw/audio
136 137 138 139 140
trace-events-subdirs += hw/block
trace-events-subdirs += hw/block/dataplane
trace-events-subdirs += hw/char
trace-events-subdirs += hw/display
trace-events-subdirs += hw/dma
141
trace-events-subdirs += hw/hppa
142
trace-events-subdirs += hw/i2c
143 144
trace-events-subdirs += hw/i386
trace-events-subdirs += hw/i386/xen
145 146 147 148 149 150 151 152 153
trace-events-subdirs += hw/ide
trace-events-subdirs += hw/input
trace-events-subdirs += hw/intc
trace-events-subdirs += hw/isa
trace-events-subdirs += hw/mem
trace-events-subdirs += hw/misc
trace-events-subdirs += hw/misc/macio
trace-events-subdirs += hw/net
trace-events-subdirs += hw/nvram
154
trace-events-subdirs += hw/pci
155
trace-events-subdirs += hw/pci-host
156 157 158
trace-events-subdirs += hw/ppc
trace-events-subdirs += hw/rdma
trace-events-subdirs += hw/rdma/vmw
159
trace-events-subdirs += hw/s390x
160 161 162 163 164 165 166
trace-events-subdirs += hw/scsi
trace-events-subdirs += hw/sd
trace-events-subdirs += hw/sparc
trace-events-subdirs += hw/sparc64
trace-events-subdirs += hw/timer
trace-events-subdirs += hw/tpm
trace-events-subdirs += hw/usb
167
trace-events-subdirs += hw/vfio
168
trace-events-subdirs += hw/virtio
169
trace-events-subdirs += hw/watchdog
170
trace-events-subdirs += hw/xen
171
trace-events-subdirs += hw/gpio
172 173 174 175
trace-events-subdirs += io
trace-events-subdirs += linux-user
trace-events-subdirs += migration
trace-events-subdirs += nbd
176
trace-events-subdirs += net
177 178 179
trace-events-subdirs += qapi
trace-events-subdirs += qom
trace-events-subdirs += scsi
180 181
trace-events-subdirs += target/arm
trace-events-subdirs += target/i386
182
trace-events-subdirs += target/mips
183
trace-events-subdirs += target/ppc
184 185 186 187
trace-events-subdirs += target/s390x
trace-events-subdirs += target/sparc
trace-events-subdirs += ui
trace-events-subdirs += util
188 189 190 191 192 193 194 195

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)