Statistics
| Branch: | Revision:

root / Makefile.objs @ 14015304

History | View | Annotate | Download (14.4 kB)

1 0e8c9214 Andreas Färber
#######################################################################
2 0e8c9214 Andreas Färber
# QObject
3 0e8c9214 Andreas Färber
qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
4 0e8c9214 Andreas Färber
qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
5 ef749d07 Anthony Liguori
qobject-obj-y += qerror.o error.o
6 0e8c9214 Andreas Färber
7 0e8c9214 Andreas Färber
#######################################################################
8 c1b0b93b Jes Sorensen
# oslib-obj-y is code depending on the OS (win32 vs posix)
9 c1b0b93b Jes Sorensen
oslib-obj-y = osdep.o
10 6774e44a Paolo Bonzini
oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
11 6774e44a Paolo Bonzini
oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o
12 c1b0b93b Jes Sorensen
13 c1b0b93b Jes Sorensen
#######################################################################
14 00dccaf1 Kevin Wolf
# coroutines
15 b96e9247 Kevin Wolf
coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o
16 d0e2fce5 Aneesh Kumar K.V
ifeq ($(CONFIG_UCONTEXT_COROUTINE),y)
17 00dccaf1 Kevin Wolf
coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o
18 d0e2fce5 Aneesh Kumar K.V
else
19 d0e2fce5 Aneesh Kumar K.V
coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
20 d0e2fce5 Aneesh Kumar K.V
endif
21 00dccaf1 Kevin Wolf
coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
22 00dccaf1 Kevin Wolf
23 00dccaf1 Kevin Wolf
#######################################################################
24 0e8c9214 Andreas Färber
# block-obj-y is code used by both qemu system emulation and qemu-img
25 0e8c9214 Andreas Färber
26 4e59b545 Kevin Wolf
block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o async.o
27 c12504ce Nick Thomas
block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
28 da1fa91d Kevin Wolf
block-obj-y += $(coroutine-obj-y)
29 0e8c9214 Andreas Färber
block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
30 0e8c9214 Andreas Färber
block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
31 0e8c9214 Andreas Färber
32 84a12e66 Christoph Hellwig
block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
33 49381094 Kevin Wolf
block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
34 298800ca Stefan Hajnoczi
block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
35 eabba580 Stefan Hajnoczi
block-nested-y += qed-check.o
36 d9d33417 Stefan Hajnoczi
block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o
37 0e8c9214 Andreas Färber
block-nested-$(CONFIG_WIN32) += raw-win32.o
38 0e8c9214 Andreas Färber
block-nested-$(CONFIG_POSIX) += raw-posix.o
39 0e8c9214 Andreas Färber
block-nested-$(CONFIG_CURL) += curl.o
40 f27aaf4b Christian Brunner
block-nested-$(CONFIG_RBD) += rbd.o
41 0e8c9214 Andreas Färber
42 0e8c9214 Andreas Färber
block-obj-y +=  $(addprefix block/, $(block-nested-y))
43 0e8c9214 Andreas Färber
44 0e8c9214 Andreas Färber
net-obj-y = net.o
45 0e8c9214 Andreas Färber
net-nested-y = queue.o checksum.o util.o
46 0e8c9214 Andreas Färber
net-nested-y += socket.o
47 0e8c9214 Andreas Färber
net-nested-y += dump.o
48 0e8c9214 Andreas Färber
net-nested-$(CONFIG_POSIX) += tap.o
49 0e8c9214 Andreas Färber
net-nested-$(CONFIG_LINUX) += tap-linux.o
50 0e8c9214 Andreas Färber
net-nested-$(CONFIG_WIN32) += tap-win32.o
51 0e8c9214 Andreas Färber
net-nested-$(CONFIG_BSD) += tap-bsd.o
52 0e8c9214 Andreas Färber
net-nested-$(CONFIG_SOLARIS) += tap-solaris.o
53 0e8c9214 Andreas Färber
net-nested-$(CONFIG_AIX) += tap-aix.o
54 3ee66dfa Andreas Färber
net-nested-$(CONFIG_HAIKU) += tap-haiku.o
55 0e8c9214 Andreas Färber
net-nested-$(CONFIG_SLIRP) += slirp.o
56 0e8c9214 Andreas Färber
net-nested-$(CONFIG_VDE) += vde.o
57 0e8c9214 Andreas Färber
net-obj-y += $(addprefix net/, $(net-nested-y))
58 0e8c9214 Andreas Färber
59 9fe1ebeb Aneesh Kumar K.V
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
60 01af7daf Paul Brook
# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
61 01af7daf Paul Brook
# only pull in the actual virtio-9p device if we also enabled virtio.
62 01af7daf Paul Brook
CONFIG_REALLY_VIRTFS=y
63 1c88c715 Aneesh Kumar K.V
fsdev-nested-y = qemu-fsdev.o
64 1c88c715 Aneesh Kumar K.V
else
65 1c88c715 Aneesh Kumar K.V
fsdev-nested-y = qemu-fsdev-dummy.o
66 01af7daf Paul Brook
endif
67 758e8e38 Venkateswararao Jujjuri (JV)
fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y))
68 74db920c Gautham R Shenoy
69 0e8c9214 Andreas Färber
######################################################################
70 0e8c9214 Andreas Färber
# libqemu_common.a: Target independent part of system emulation. The
71 0e8c9214 Andreas Färber
# long term path is to suppress *all* target specific code in case of
72 0e8c9214 Andreas Färber
# system emulation, i.e. a single QEMU executable should support all
73 0e8c9214 Andreas Färber
# CPUs and machines.
74 0e8c9214 Andreas Färber
75 ef749d07 Anthony Liguori
common-obj-y = $(block-obj-y) blockdev.o
76 0e8c9214 Andreas Färber
common-obj-y += $(net-obj-y)
77 0e8c9214 Andreas Färber
common-obj-y += $(qobject-obj-y)
78 74db920c Gautham R Shenoy
common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
79 4e59b545 Kevin Wolf
common-obj-y += readline.o console.o cursor.o qemu-error.o
80 c1b0b93b Jes Sorensen
common-obj-y += $(oslib-obj-y)
81 b0cb640a Blue Swirl
common-obj-$(CONFIG_WIN32) += os-win32.o
82 b0cb640a Blue Swirl
common-obj-$(CONFIG_POSIX) += os-posix.o
83 254e5950 Gerd Hoffmann
84 0e8c9214 Andreas Färber
common-obj-y += tcg-runtime.o host-utils.o
85 8f0056b7 Paolo Bonzini
common-obj-y += irq.o ioport.o input.o
86 0e8c9214 Andreas Färber
common-obj-$(CONFIG_PTIMER) += ptimer.o
87 0e8c9214 Andreas Färber
common-obj-$(CONFIG_MAX7310) += max7310.o
88 0e8c9214 Andreas Färber
common-obj-$(CONFIG_WM8750) += wm8750.o
89 0e8c9214 Andreas Färber
common-obj-$(CONFIG_TWL92230) += twl92230.o
90 0e8c9214 Andreas Färber
common-obj-$(CONFIG_TSC2005) += tsc2005.o
91 0e8c9214 Andreas Färber
common-obj-$(CONFIG_LM832X) += lm832x.o
92 0e8c9214 Andreas Färber
common-obj-$(CONFIG_TMP105) += tmp105.o
93 0e8c9214 Andreas Färber
common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
94 0e8c9214 Andreas Färber
common-obj-$(CONFIG_SSD0303) += ssd0303.o
95 0e8c9214 Andreas Färber
common-obj-$(CONFIG_SSD0323) += ssd0323.o
96 0e8c9214 Andreas Färber
common-obj-$(CONFIG_ADS7846) += ads7846.o
97 0e8c9214 Andreas Färber
common-obj-$(CONFIG_MAX111X) += max111x.o
98 0e8c9214 Andreas Färber
common-obj-$(CONFIG_DS1338) += ds1338.o
99 0e8c9214 Andreas Färber
common-obj-y += i2c.o smbus.o smbus_eeprom.o
100 0e8c9214 Andreas Färber
common-obj-y += eeprom93xx.o
101 0e8c9214 Andreas Färber
common-obj-y += scsi-disk.o cdrom.o
102 0e8c9214 Andreas Färber
common-obj-y += scsi-generic.o scsi-bus.o
103 dcfda673 Gerd Hoffmann
common-obj-y += hid.o
104 0e8c9214 Andreas Färber
common-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
105 37fb59d3 Gerd Hoffmann
common-obj-y += usb-serial.o usb-net.o usb-bus.o usb-desc.o
106 0e8c9214 Andreas Färber
common-obj-$(CONFIG_SSI) += ssi.o
107 0e8c9214 Andreas Färber
common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
108 0e8c9214 Andreas Färber
common-obj-$(CONFIG_SD) += sd.o
109 0e8c9214 Andreas Färber
common-obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
110 0e8c9214 Andreas Färber
common-obj-y += bt-hci-csr.o
111 c12504ce Nick Thomas
common-obj-y += buffered_file.o migration.o migration-tcp.o
112 0e8c9214 Andreas Färber
common-obj-y += qemu-char.o savevm.o #aio.o
113 0e8c9214 Andreas Färber
common-obj-y += msmouse.o ps2.o
114 0e8c9214 Andreas Färber
common-obj-y += qdev.o qdev-properties.o
115 02981419 Paolo Bonzini
common-obj-y += block-migration.o iohandler.o
116 d6d94fc3 Gerd Hoffmann
common-obj-y += pflib.o
117 e0e53b2f Corentin Chary
common-obj-y += bitmap.o bitops.o
118 0e8c9214 Andreas Färber
119 0e8c9214 Andreas Färber
common-obj-$(CONFIG_BRLAPI) += baum.o
120 0e8c9214 Andreas Färber
common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
121 9fe6de94 Blue Swirl
common-obj-$(CONFIG_WIN32) += version.o
122 0e8c9214 Andreas Färber
123 cbcc6336 Alon Levy
common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o
124 29b0040b Gerd Hoffmann
125 0e8c9214 Andreas Färber
audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
126 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_SDL) += sdlaudio.o
127 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_OSS) += ossaudio.o
128 3e313753 Gerd Hoffmann
audio-obj-$(CONFIG_SPICE) += spiceaudio.o
129 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
130 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_ALSA) += alsaaudio.o
131 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
132 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_FMOD) += fmodaudio.o
133 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_ESD) += esdaudio.o
134 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_PA) += paaudio.o
135 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
136 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
137 0e8c9214 Andreas Färber
audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
138 0e8c9214 Andreas Färber
audio-obj-y += wavcapture.o
139 0e8c9214 Andreas Färber
common-obj-y += $(addprefix audio/, $(audio-obj-y))
140 0e8c9214 Andreas Färber
141 3e230dd2 Corentin Chary
ui-obj-y += keymaps.o
142 3e230dd2 Corentin Chary
ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
143 e949467b Andreas Färber
ui-obj-$(CONFIG_COCOA) += cocoa.o
144 3e230dd2 Corentin Chary
ui-obj-$(CONFIG_CURSES) += curses.o
145 821601ea Jes Sorensen
vnc-obj-y += vnc.o d3des.o
146 821601ea Jes Sorensen
vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
147 821601ea Jes Sorensen
vnc-obj-y += vnc-enc-tight.o vnc-palette.o
148 821601ea Jes Sorensen
vnc-obj-y += vnc-enc-zrle.o
149 821601ea Jes Sorensen
vnc-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
150 821601ea Jes Sorensen
vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
151 bd023f95 Corentin Chary
ifdef CONFIG_VNC_THREAD
152 821601ea Jes Sorensen
vnc-obj-y += vnc-jobs-async.o
153 bd023f95 Corentin Chary
else
154 821601ea Jes Sorensen
vnc-obj-y += vnc-jobs-sync.o
155 bd023f95 Corentin Chary
endif
156 3e230dd2 Corentin Chary
common-obj-y += $(addprefix ui/, $(ui-obj-y))
157 821601ea Jes Sorensen
common-obj-$(CONFIG_VNC) += $(addprefix ui/, $(vnc-obj-y))
158 3e230dd2 Corentin Chary
159 3e230dd2 Corentin Chary
common-obj-y += iov.o acl.o
160 6774e44a Paolo Bonzini
common-obj-$(CONFIG_POSIX) += compatfd.o
161 d3538b45 Blue Swirl
common-obj-y += notify.o event_notifier.o
162 c57c846a Blue Swirl
common-obj-y += qemu-timer.o qemu-timer-common.o
163 0e8c9214 Andreas Färber
164 0e8c9214 Andreas Färber
slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
165 0e8c9214 Andreas Färber
slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
166 1a0ca1e1 Fabien Chouteau
slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o arp_table.o
167 0e8c9214 Andreas Färber
common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
168 0e8c9214 Andreas Färber
169 0e8c9214 Andreas Färber
# xen backend driver support
170 6dbd588a Jan Kiszka
common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
171 6dbd588a Jan Kiszka
common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
172 0e8c9214 Andreas Färber
173 0e8c9214 Andreas Färber
######################################################################
174 0e8c9214 Andreas Färber
# libuser
175 0e8c9214 Andreas Färber
176 0e8c9214 Andreas Färber
user-obj-y =
177 0e8c9214 Andreas Färber
user-obj-y += envlist.o path.o
178 0e8c9214 Andreas Färber
user-obj-y += tcg-runtime.o host-utils.o
179 0e8c9214 Andreas Färber
user-obj-y += cutils.o cache-utils.o
180 0e8c9214 Andreas Färber
181 0e8c9214 Andreas Färber
######################################################################
182 0e8c9214 Andreas Färber
# libhw
183 0e8c9214 Andreas Färber
184 0e8c9214 Andreas Färber
hw-obj-y =
185 04c9a0cb Blue Swirl
hw-obj-y += vl.o loader.o
186 21673cde Blue Swirl
hw-obj-$(CONFIG_VIRTIO) += virtio-console.o
187 4f4321c1 Gerd Hoffmann
hw-obj-y += usb-libhw.o
188 7665385a Jan Kiszka
hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
189 bd9141bb Paul Brook
hw-obj-y += fw_cfg.o
190 b3a29fd5 Isaku Yamahata
hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
191 624c716c Michael S. Tsirkin
hw-obj-$(CONFIG_PCI) += msix.o msi.o
192 f8f5cfba Paul Brook
hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
193 f8f5cfba Paul Brook
hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
194 0e8c9214 Andreas Färber
hw-obj-y += watchdog.o
195 84108e12 Blue Swirl
hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
196 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_ECC) += ecc.o
197 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_NAND) += nand.o
198 3d08ff69 Blue Swirl
hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
199 5f9fc5ad Blue Swirl
hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
200 0e8c9214 Andreas Färber
201 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_M48T59) += m48t59.o
202 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_ESCC) += escc.o
203 676d9b9b Artyom Tarasenko
hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
204 0e8c9214 Andreas Färber
205 2d48377a Blue Swirl
hw-obj-$(CONFIG_SERIAL) += serial.o
206 b9945046 Blue Swirl
hw-obj-$(CONFIG_PARALLEL) += parallel.o
207 df632778 Blue Swirl
hw-obj-$(CONFIG_I8254) += i8254.o
208 71093711 Blue Swirl
hw-obj-$(CONFIG_PCSPK) += pcspk.o
209 956a3e6b Blue Swirl
hw-obj-$(CONFIG_PCKBD) += pckbd.o
210 4c65f1e5 Blue Swirl
hw-obj-$(CONFIG_USB_UHCI) += usb-uhci.o
211 34557491 Alexander Graf
hw-obj-$(CONFIG_USB_OHCI) += usb-ohci.o
212 94527ead Gerd Hoffmann
hw-obj-$(CONFIG_USB_EHCI) += usb-ehci.o
213 35da37e1 Blue Swirl
hw-obj-$(CONFIG_FDC) += fdc.o
214 c69ea0df Blue Swirl
hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o
215 c69ea0df Blue Swirl
hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o
216 4556bd8b Blue Swirl
hw-obj-$(CONFIG_DMA) += dma.o
217 dd703b99 Blue Swirl
hw-obj-$(CONFIG_HPET) += hpet.o
218 1c9c5fcd Blue Swirl
hw-obj-$(CONFIG_APPLESMC) += applesmc.o
219 edbb2136 Alon Levy
hw-obj-$(CONFIG_SMARTCARD) += usb-ccid.o ccid-card-passthru.o
220 585738a6 Alon Levy
hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
221 69354a83 Hans de Goede
hw-obj-$(CONFIG_USB_REDIR) += usb-redir.o
222 add85a76 Blue Swirl
223 add85a76 Blue Swirl
# PPC devices
224 5c4532ee Blue Swirl
hw-obj-$(CONFIG_OPENPIC) += openpic.o
225 add85a76 Blue Swirl
hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o
226 2b5eb371 Blue Swirl
# Mac shared devices
227 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_MACIO) += macio.o
228 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_CUDA) += cuda.o
229 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_ADB) += adb.o
230 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
231 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
232 2b5eb371 Blue Swirl
# OldWorld PowerMac
233 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
234 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
235 2b5eb371 Blue Swirl
# NewWorld PowerMac
236 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
237 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o
238 2b5eb371 Blue Swirl
# PowerPC E500 boards
239 2b5eb371 Blue Swirl
hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
240 b9945046 Blue Swirl
241 08af49da Blue Swirl
# MIPS devices
242 08af49da Blue Swirl
hw-obj-$(CONFIG_PIIX4) += piix4.o
243 08af49da Blue Swirl
244 0e8c9214 Andreas Färber
# PCI watchdog devices
245 f8f5cfba Paul Brook
hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o
246 0e8c9214 Andreas Färber
247 c924f36a Michael S. Tsirkin
hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
248 0e8c9214 Andreas Färber
249 0e8c9214 Andreas Färber
# PCI network cards
250 f8f5cfba Paul Brook
hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o
251 f8f5cfba Paul Brook
hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
252 a4c75a21 Paul Brook
hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
253 a4c75a21 Paul Brook
hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
254 32600a30 Alexander Graf
hw-obj-$(CONFIG_E1000_PCI) += e1000.o
255 5cf7a3ca Alexander Graf
hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
256 0e8c9214 Andreas Färber
257 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_SMC91C111) += smc91c111.o
258 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_LAN9118) += lan9118.o
259 d3ffc7a6 Blue Swirl
hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
260 0e8c9214 Andreas Färber
261 9953b2fc Blue Swirl
# IDE
262 33231e0e Kevin Wolf
hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o
263 9953b2fc Blue Swirl
hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
264 9953b2fc Blue Swirl
hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
265 9953b2fc Blue Swirl
hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
266 9953b2fc Blue Swirl
hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o
267 9953b2fc Blue Swirl
hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o
268 02c7c992 Blue Swirl
hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o
269 016512f3 Huacai Chen
hw-obj-$(CONFIG_IDE_VIA) += ide/via.o
270 f6ad2e32 Alexander Graf
hw-obj-$(CONFIG_AHCI) += ide/ahci.o
271 03c7a6a8 Sebastian Herbszt
hw-obj-$(CONFIG_AHCI) += ide/ich.o
272 9953b2fc Blue Swirl
273 0e8c9214 Andreas Färber
# SCSI layer
274 f8f5cfba Paul Brook
hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
275 0e8c9214 Andreas Färber
hw-obj-$(CONFIG_ESP) += esp.o
276 0e8c9214 Andreas Färber
277 0e8c9214 Andreas Färber
hw-obj-y += dma-helpers.o sysbus.o isa-bus.o
278 61d3cf93 Paul Brook
hw-obj-y += qdev-addr.o
279 4d904533 Blue Swirl
280 1afdfddc Blue Swirl
# VGA
281 1afdfddc Blue Swirl
hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
282 7f55c7ce Blue Swirl
hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
283 b970ea8f Blue Swirl
hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
284 57448a97 Blue Swirl
hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
285 86d86414 Blue Swirl
hw-obj-$(CONFIG_VMMOUSE) += vmmouse.o
286 b970ea8f Blue Swirl
287 b970ea8f Blue Swirl
hw-obj-$(CONFIG_RC4030) += rc4030.o
288 b970ea8f Blue Swirl
hw-obj-$(CONFIG_DP8393X) += dp8393x.o
289 b970ea8f Blue Swirl
hw-obj-$(CONFIG_DS1225Y) += ds1225y.o
290 b970ea8f Blue Swirl
hw-obj-$(CONFIG_MIPSNET) += mipsnet.o
291 1afdfddc Blue Swirl
292 70615c38 Blue Swirl
# Sound
293 70615c38 Blue Swirl
sound-obj-y =
294 70615c38 Blue Swirl
sound-obj-$(CONFIG_SB16) += sb16.o
295 70615c38 Blue Swirl
sound-obj-$(CONFIG_ES1370) += es1370.o
296 70615c38 Blue Swirl
sound-obj-$(CONFIG_AC97) += ac97.o
297 70615c38 Blue Swirl
sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
298 70615c38 Blue Swirl
sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
299 70615c38 Blue Swirl
sound-obj-$(CONFIG_CS4231A) += cs4231a.o
300 d61a4ce8 Gerd Hoffmann
sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
301 70615c38 Blue Swirl
302 70615c38 Blue Swirl
adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
303 70615c38 Blue Swirl
hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
304 70615c38 Blue Swirl
305 f4f61d27 Aneesh Kumar K.V
9pfs-nested-$(CONFIG_VIRTFS) = virtio-9p.o virtio-9p-debug.o
306 353ac78d Aneesh Kumar K.V
9pfs-nested-$(CONFIG_VIRTFS) +=  virtio-9p-local.o virtio-9p-xattr.o
307 353ac78d Aneesh Kumar K.V
9pfs-nested-$(CONFIG_VIRTFS) +=   virtio-9p-xattr-user.o virtio-9p-posix-acl.o
308 172198d4 Aneesh Kumar K.V
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-coth.o cofs.o codir.o cofile.o
309 1ceffa54 Aneesh Kumar K.V
9pfs-nested-$(CONFIG_VIRTFS) += coxattr.o
310 353ac78d Aneesh Kumar K.V
311 1c88c715 Aneesh Kumar K.V
hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
312 39c0564e Venkateswararao Jujjuri (JV)
$(addprefix 9pfs/, $(9pfs-nested-y)): QEMU_CFLAGS+=$(GLIB_CFLAGS)
313 353ac78d Aneesh Kumar K.V
314 d08555c1 Blue Swirl
315 4d904533 Blue Swirl
######################################################################
316 4d904533 Blue Swirl
# libdis
317 4d904533 Blue Swirl
# NOTE: the disassembler code is only needed for debugging
318 4d904533 Blue Swirl
319 4d904533 Blue Swirl
libdis-y =
320 4d904533 Blue Swirl
libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
321 4d904533 Blue Swirl
libdis-$(CONFIG_ARM_DIS) += arm-dis.o
322 4d904533 Blue Swirl
libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
323 4d904533 Blue Swirl
libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
324 4d904533 Blue Swirl
libdis-$(CONFIG_I386_DIS) += i386-dis.o
325 903ec55c Aurelien Jarno
libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
326 4d904533 Blue Swirl
libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
327 4d904533 Blue Swirl
libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
328 4d904533 Blue Swirl
libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
329 4d904533 Blue Swirl
libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
330 4d904533 Blue Swirl
libdis-$(CONFIG_S390_DIS) += s390-dis.o
331 4d904533 Blue Swirl
libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
332 4d904533 Blue Swirl
libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
333 ad96090a Blue Swirl
334 94a420b1 Stefan Hajnoczi
######################################################################
335 94a420b1 Stefan Hajnoczi
# trace
336 94a420b1 Stefan Hajnoczi
337 b3d08c02 Daniel P. Berrange
ifeq ($(TRACE_BACKEND),dtrace)
338 f20600f2 Alon Levy
trace.h: trace.h-timestamp trace-dtrace.h
339 f20600f2 Alon Levy
else
340 f20600f2 Alon Levy
trace.h: trace.h-timestamp
341 f20600f2 Alon Levy
endif
342 f20600f2 Alon Levy
trace.h-timestamp: $(SRC_PATH)/trace-events config-host.mak
343 f20600f2 Alon Levy
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -h < $< > $@,"  GEN   trace.h")
344 f20600f2 Alon Levy
	@cmp -s $@ trace.h || cp $@ trace.h
345 f20600f2 Alon Levy
346 f20600f2 Alon Levy
trace.c: trace.c-timestamp
347 f20600f2 Alon Levy
trace.c-timestamp: $(SRC_PATH)/trace-events config-host.mak
348 f20600f2 Alon Levy
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -c < $< > $@,"  GEN   trace.c")
349 f20600f2 Alon Levy
	@cmp -s $@ trace.c || cp $@ trace.c
350 f20600f2 Alon Levy
351 f20600f2 Alon Levy
trace.o: trace.c $(GENERATED_HEADERS)
352 f20600f2 Alon Levy
353 f20600f2 Alon Levy
trace-dtrace.h: trace-dtrace.dtrace
354 f20600f2 Alon Levy
	$(call quiet-command,dtrace -o $@ -h -s $<, "  GEN   trace-dtrace.h")
355 f20600f2 Alon Levy
356 f20600f2 Alon Levy
# Normal practice is to name DTrace probe file with a '.d' extension
357 cbae0863 Stefan Weil
# but that gets picked up by QEMU's Makefile as an external dependency
358 f20600f2 Alon Levy
# rule file. So we use '.dtrace' instead
359 f20600f2 Alon Levy
trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
360 f20600f2 Alon Levy
trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events config-host.mak
361 f20600f2 Alon Levy
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -d < $< > $@,"  GEN   trace-dtrace.dtrace")
362 f20600f2 Alon Levy
	@cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace
363 f20600f2 Alon Levy
364 f20600f2 Alon Levy
trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
365 f20600f2 Alon Levy
	$(call quiet-command,dtrace -o $@ -G -s $<, "  GEN trace-dtrace.o")
366 f20600f2 Alon Levy
367 44dc0ca3 Alon Levy
ifeq ($(LIBTOOL),)
368 44dc0ca3 Alon Levy
trace-dtrace.lo: trace-dtrace.dtrace
369 44dc0ca3 Alon Levy
	@echo "missing libtool. please install and rerun configure."; exit 1
370 44dc0ca3 Alon Levy
else
371 44dc0ca3 Alon Levy
trace-dtrace.lo: trace-dtrace.dtrace
372 44dc0ca3 Alon Levy
	$(call quiet-command,libtool --mode=compile --tag=CC dtrace -o $@ -G -s $<, "  lt GEN trace-dtrace.o")
373 44dc0ca3 Alon Levy
endif
374 44dc0ca3 Alon Levy
375 f20600f2 Alon Levy
simpletrace.o: simpletrace.c $(GENERATED_HEADERS)
376 f20600f2 Alon Levy
377 f20600f2 Alon Levy
ifeq ($(TRACE_BACKEND),dtrace)
378 b3d08c02 Daniel P. Berrange
trace-obj-y = trace-dtrace.o
379 b3d08c02 Daniel P. Berrange
else
380 94a420b1 Stefan Hajnoczi
trace-obj-y = trace.o
381 26f7227b Stefan Hajnoczi
ifeq ($(TRACE_BACKEND),simple)
382 26f7227b Stefan Hajnoczi
trace-obj-y += simpletrace.o
383 c57c846a Blue Swirl
user-obj-y += qemu-timer-common.o
384 26f7227b Stefan Hajnoczi
endif
385 b3d08c02 Daniel P. Berrange
endif
386 94a420b1 Stefan Hajnoczi
387 111a38b0 Robert Relyea
######################################################################
388 111a38b0 Robert Relyea
# smartcard
389 111a38b0 Robert Relyea
390 111a38b0 Robert Relyea
libcacard-y = cac.o event.o vcard.o vreader.o vcard_emul_nss.o vcard_emul_type.o card_7816.o
391 111a38b0 Robert Relyea
392 2345c77c Michael Roth
######################################################################
393 2345c77c Michael Roth
# qapi
394 2345c77c Michael Roth
395 d5f3c29c Michael Roth
qapi-nested-y = qapi-visit-core.o qmp-input-visitor.o qmp-output-visitor.o qapi-dealloc-visitor.o
396 ab02ab2a Michael Roth
qapi-nested-y += qmp-registry.o qmp-dispatch.o
397 2345c77c Michael Roth
qapi-obj-y = $(addprefix qapi/, $(qapi-nested-y))
398 2345c77c Michael Roth
399 ad96090a Blue Swirl
vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
400 ad96090a Blue Swirl
401 ad96090a Blue Swirl
vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
402 ad96090a Blue Swirl
403 14015304 Anthony Liguori
QEMU_CFLAGS+=$(GLIB_CFLAGS)