]> git.proxmox.com Git - qemu.git/blame - Makefile.objs
build: move util-obj-y to libqemuutil.a
[qemu.git] / Makefile.objs
CommitLineData
3bc2f570
PB
1#######################################################################
2# Stub library, linked in tools
3stub-obj-y = stubs/
4
ce008c1f
AF
5#######################################################################
6# Target-independent parts used in system and user emulation
7universal-obj-y =
5726c27f 8universal-obj-y += qemu-log.o
ce008c1f 9
0e8c9214
AF
10#######################################################################
11# QObject
12qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
13qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
4ab328d6 14qobject-obj-y += qerror.o error.o qemu-error.o
0e8c9214 15
ce008c1f
AF
16universal-obj-y += $(qobject-obj-y)
17
18#######################################################################
19# QOM
7f07b9cb 20qom-obj-y = qom/
ce008c1f
AF
21
22universal-obj-y += $(qom-obj-y)
23
507066f8
EH
24#######################################################################
25# Core hw code (qdev core)
26hw-core-obj-y += hw/
27hw-core-obj-y += qemu-option.o
28
29universal-obj-y += $(hw-core-obj-y)
30
c1b0b93b 31#######################################################################
e4b42e6e
PB
32# util-obj-y is code depending on the OS (win32 vs posix)
33util-obj-y = osdep.o cutils.o qemu-timer-common.o
34util-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
35util-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o
c1b0b93b 36
00dccaf1
KW
37#######################################################################
38# coroutines
8c5135f9 39coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
7e624667 40coroutine-obj-y += qemu-coroutine-sleep.o
1d728c39
BS
41
42# If you change this logic, please also check tests/Makefile
d0e2fce5 43ifeq ($(CONFIG_UCONTEXT_COROUTINE),y)
00dccaf1 44coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o
d0e2fce5 45else
fe91bfa8
AB
46ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y)
47coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o
48else
d0e2fce5
AK
49coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
50endif
fe91bfa8 51endif
00dccaf1
KW
52coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
53
0e8c9214
AF
54#######################################################################
55# block-obj-y is code used by both qemu system emulation and qemu-img
56
f3192e8f 57block-obj-y = iov.o cache-utils.o qemu-option.o module.o async.o
f42b2207 58block-obj-y += nbd.o block.o blockjob.o aes.o qemu-config.o
d354c7ec 59block-obj-y += thread-pool.o qemu-progress.o qemu-sockets.o uri.o notify.o
4ab328d6 60block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
f42b2207
PB
61block-obj-$(CONFIG_POSIX) += event_notifier-posix.o aio-posix.o
62block-obj-$(CONFIG_WIN32) += event_notifier-win32.o aio-win32.o
7456e4ce 63block-obj-y += block/
69758c22 64block-obj-y += $(qapi-obj-y) qapi-types.o qapi-visit.o
0e8c9214 65
9fe1ebeb 66ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
01af7daf
PB
67# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
68# only pull in the actual virtio-9p device if we also enabled virtio.
69CONFIG_REALLY_VIRTFS=y
70endif
74db920c 71
0e8c9214 72######################################################################
050d9940
CWR
73# Target independent part of system emulation. The long term path is to
74# suppress *all* target specific code in case of system emulation, i.e. a
75# single QEMU executable should support all CPUs and machines.
0e8c9214 76
6dd844db 77common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/
fd9400b3 78common-obj-y += net/
7f07b9cb 79common-obj-y += qom/
28ecbaee 80common-obj-y += readline.o
b0cb640a
BS
81common-obj-$(CONFIG_WIN32) += os-win32.o
82common-obj-$(CONFIG_POSIX) += os-posix.o
254e5950 83
ee20477d
PB
84common-obj-$(CONFIG_LINUX) += fsdev/
85extra-obj-$(CONFIG_LINUX) += fsdev/
86
d3b12f5d 87common-obj-y += tcg-runtime.o host-utils.o main-loop.o
0d82d0e8
JQ
88common-obj-y += migration.o migration-tcp.o
89common-obj-y += migration.o migration-tcp.o
c5705a77 90common-obj-y += qemu-char.o #aio.o
02981419 91common-obj-y += block-migration.o iohandler.o
e0e53b2f 92common-obj-y += bitmap.o bitops.o
9fb26641 93common-obj-y += page_cache.o
0e8c9214 94
0e8c9214 95common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
9fe6de94 96common-obj-$(CONFIG_WIN32) += version.o
0e8c9214 97
8867aef0 98common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
b0b68fc6
PB
99
100common-obj-y += audio/
3d5a3f9a 101common-obj-y += hw/
6f991980
PB
102extra-obj-y += hw/
103
8867aef0 104common-obj-y += ui/
3d5a3f9a 105common-obj-y += bt-host.o bt-vhci.o
3e230dd2 106
c9159fe9 107common-obj-y += dma-helpers.o
0191253c 108common-obj-y += acl.o
6774e44a 109common-obj-$(CONFIG_POSIX) += compatfd.o
c57c846a 110common-obj-y += qemu-timer.o qemu-timer-common.o
c9159fe9
SW
111common-obj-y += qtest.o
112common-obj-y += vl.o
0e8c9214 113
4c696054 114common-obj-$(CONFIG_SLIRP) += slirp/
0e8c9214 115
a9b7b2ad
AL
116common-obj-y += backends/
117
f794573e
EO
118######################################################################
119# libseccomp
120ifeq ($(CONFIG_SECCOMP),y)
121common-obj-y += qemu-seccomp.o
122endif
123
0e8c9214
AF
124######################################################################
125# libuser
126
127user-obj-y =
128user-obj-y += envlist.o path.o
129user-obj-y += tcg-runtime.o host-utils.o
f3192e8f 130user-obj-y += cache-utils.o
ce008c1f 131user-obj-y += module.o
7f07b9cb 132user-obj-y += qom/
0e8c9214 133
4d904533 134######################################################################
76cad711 135# disassemblers
4d904533
BS
136# NOTE: the disassembler code is only needed for debugging
137
76cad711 138universal-obj-y += disas/
ad96090a 139
94a420b1
SH
140######################################################################
141# trace
142
eac236ea 143trace-obj-y += trace/
5689dc65 144
8e98e2e8
PB
145universal-obj-y += $(trace-obj-y)
146
111a38b0
RR
147######################################################################
148# smartcard
149
00c705fb
PB
150libcacard-y += libcacard/cac.o libcacard/event.o
151libcacard-y += libcacard/vcard.o libcacard/vreader.o
152libcacard-y += libcacard/vcard_emul_nss.o
153libcacard-y += libcacard/vcard_emul_type.o
154libcacard-y += libcacard/card_7816.o
155
156common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y)
111a38b0 157
2345c77c
MR
158######################################################################
159# qapi
160
dd5614d6 161qapi-obj-y = qapi/
93b91c59 162qapi-obj-y += qapi-types.o qapi-visit.o
2345c77c 163
ce008c1f 164common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o
48a32bed 165common-obj-y += qmp.o hmp.o
e3193601 166
ce008c1f
AF
167universal-obj-y += $(qapi-obj-y)
168
957f1f99
MR
169######################################################################
170# guest agent
171
5708fc66 172qga-obj-y = qga/ module.o
136594f1 173qga-obj-$(CONFIG_POSIX) += qemu-sockets.o qemu-option.o
957f1f99 174
ad96090a
BS
175vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
176
177vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
178
14015304
AL
179QEMU_CFLAGS+=$(GLIB_CFLAGS)
180
7f07b9cb 181nested-vars += \
3bc2f570 182 stub-obj-y \
4eb7ba8a 183 qga-obj-y \
7f07b9cb 184 qom-obj-y \
dd5614d6 185 qapi-obj-y \
69758c22 186 block-obj-y \
7f07b9cb 187 user-obj-y \
ee20477d 188 common-obj-y \
76cad711 189 universal-obj-y \
507066f8 190 hw-core-obj-y \
eac236ea
LV
191 extra-obj-y \
192 trace-obj-y
99100dc3 193dummy := $(call unnest-vars)