root / Makefile.objs @ a372823a
History | View | Annotate | Download (4.6 kB)
1 |
####################################################################### |
---|---|
2 |
# Common libraries for tools and emulators |
3 |
stub-obj-y = stubs/ |
4 |
util-obj-y = util/ qobject/ |
5 |
|
6 |
####################################################################### |
7 |
# Target-independent parts used in system and user emulation |
8 |
universal-obj-y = |
9 |
universal-obj-y += qemu-log.o |
10 |
|
11 |
####################################################################### |
12 |
# QOM |
13 |
qom-obj-y = qom/ |
14 |
|
15 |
universal-obj-y += $(qom-obj-y) |
16 |
|
17 |
####################################################################### |
18 |
# Core hw code (qdev core) |
19 |
hw-core-obj-y += hw/ |
20 |
|
21 |
universal-obj-y += $(hw-core-obj-y) |
22 |
|
23 |
####################################################################### |
24 |
# coroutines |
25 |
coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o |
26 |
coroutine-obj-y += qemu-coroutine-sleep.o |
27 |
|
28 |
# If you change this logic, please also check tests/Makefile |
29 |
ifeq ($(CONFIG_UCONTEXT_COROUTINE),y) |
30 |
coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o |
31 |
else |
32 |
ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y) |
33 |
coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o |
34 |
else |
35 |
coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o |
36 |
endif |
37 |
endif |
38 |
coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o |
39 |
|
40 |
####################################################################### |
41 |
# block-obj-y is code used by both qemu system emulation and qemu-img |
42 |
|
43 |
block-obj-y = async.o thread-pool.o |
44 |
block-obj-y += nbd.o block.o blockjob.o |
45 |
block-obj-y += $(coroutine-obj-y) $(version-obj-y) |
46 |
block-obj-y += main-loop.o iohandler.o qemu-timer.o |
47 |
block-obj-$(CONFIG_POSIX) += aio-posix.o |
48 |
block-obj-$(CONFIG_WIN32) += aio-win32.o |
49 |
block-obj-y += block/ |
50 |
block-obj-y += $(qapi-obj-y) qapi-types.o qapi-visit.o |
51 |
|
52 |
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) |
53 |
# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add. |
54 |
# only pull in the actual virtio-9p device if we also enabled virtio. |
55 |
CONFIG_REALLY_VIRTFS=y |
56 |
endif |
57 |
|
58 |
###################################################################### |
59 |
# Target independent part of system emulation. The long term path is to |
60 |
# suppress *all* target specific code in case of system emulation, i.e. a |
61 |
# single QEMU executable should support all CPUs and machines. |
62 |
|
63 |
common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/ |
64 |
common-obj-y += net/ |
65 |
common-obj-y += qom/ |
66 |
common-obj-y += readline.o |
67 |
common-obj-$(CONFIG_WIN32) += os-win32.o |
68 |
common-obj-$(CONFIG_POSIX) += os-posix.o |
69 |
|
70 |
common-obj-$(CONFIG_LINUX) += fsdev/ |
71 |
extra-obj-$(CONFIG_LINUX) += fsdev/ |
72 |
|
73 |
common-obj-y += tcg-runtime.o |
74 |
common-obj-y += migration.o migration-tcp.o |
75 |
common-obj-y += qemu-char.o #aio.o |
76 |
common-obj-y += block-migration.o |
77 |
common-obj-y += page_cache.o |
78 |
|
79 |
common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o |
80 |
common-obj-$(CONFIG_WIN32) += version.o |
81 |
|
82 |
common-obj-$(CONFIG_SPICE) += spice-qemu-char.o |
83 |
|
84 |
common-obj-y += audio/ |
85 |
common-obj-y += hw/ |
86 |
extra-obj-y += hw/ |
87 |
|
88 |
common-obj-y += ui/ |
89 |
common-obj-y += bt-host.o bt-vhci.o |
90 |
|
91 |
common-obj-y += dma-helpers.o |
92 |
common-obj-y += qtest.o |
93 |
common-obj-y += vl.o |
94 |
|
95 |
common-obj-$(CONFIG_SLIRP) += slirp/ |
96 |
|
97 |
common-obj-y += backends/ |
98 |
|
99 |
###################################################################### |
100 |
# libseccomp |
101 |
ifeq ($(CONFIG_SECCOMP),y) |
102 |
common-obj-y += qemu-seccomp.o |
103 |
endif |
104 |
|
105 |
###################################################################### |
106 |
# libuser |
107 |
|
108 |
user-obj-y = |
109 |
user-obj-y += tcg-runtime.o |
110 |
user-obj-y += qom/ |
111 |
|
112 |
###################################################################### |
113 |
# disassemblers |
114 |
# NOTE: the disassembler code is only needed for debugging |
115 |
|
116 |
universal-obj-y += disas/ |
117 |
|
118 |
###################################################################### |
119 |
# trace |
120 |
|
121 |
trace-obj-y += trace/ |
122 |
|
123 |
universal-obj-y += $(trace-obj-y) |
124 |
|
125 |
###################################################################### |
126 |
# smartcard |
127 |
|
128 |
libcacard-y += libcacard/cac.o libcacard/event.o |
129 |
libcacard-y += libcacard/vcard.o libcacard/vreader.o |
130 |
libcacard-y += libcacard/vcard_emul_nss.o |
131 |
libcacard-y += libcacard/vcard_emul_type.o |
132 |
libcacard-y += libcacard/card_7816.o |
133 |
|
134 |
common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y) |
135 |
|
136 |
###################################################################### |
137 |
# qapi |
138 |
|
139 |
qapi-obj-y = qapi/ |
140 |
qapi-obj-y += qapi-types.o qapi-visit.o |
141 |
|
142 |
common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o |
143 |
common-obj-y += qmp.o hmp.o |
144 |
|
145 |
universal-obj-y += $(qapi-obj-y) |
146 |
|
147 |
###################################################################### |
148 |
# guest agent |
149 |
|
150 |
qga-obj-y = qga/ |
151 |
|
152 |
vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) |
153 |
|
154 |
vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) |
155 |
|
156 |
QEMU_CFLAGS+=$(GLIB_CFLAGS) |
157 |
|
158 |
nested-vars += \ |
159 |
stub-obj-y \ |
160 |
util-obj-y \ |
161 |
qga-obj-y \ |
162 |
qom-obj-y \ |
163 |
qapi-obj-y \ |
164 |
block-obj-y \ |
165 |
user-obj-y \ |
166 |
common-obj-y \ |
167 |
universal-obj-y \ |
168 |
hw-core-obj-y \ |
169 |
extra-obj-y \ |
170 |
trace-obj-y |
171 |
dummy := $(call unnest-vars) |