xref: /illumos-kvm-cmd/Makefile.objs (revision 5f94182b)
1# Copyright 2011 QEMU contributors
2# Portions Copyright 2011 Joyent, Inc.
3#######################################################################
4# QObject
5qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
6qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
7qobject-obj-y += qerror.o
8
9#######################################################################
10# oslib-obj-y is code depending on the OS (win32 vs posix)
11oslib-obj-y = osdep.o
12oslib-obj-$(CONFIG_WIN32) += oslib-win32.o
13oslib-obj-$(CONFIG_POSIX) += oslib-posix.o
14
15#######################################################################
16# block-obj-y is code used by both qemu system emulation and qemu-img
17
18block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
19block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o
20block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
21block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
22block-obj-$(CONFIG_POSIX) += compatfd.o
23
24block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
25block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
26block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
27block-nested-y += qed-check.o
28block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o
29block-nested-$(CONFIG_WIN32) += raw-win32.o
30block-nested-$(CONFIG_POSIX) += raw-posix.o
31block-nested-$(CONFIG_CURL) += curl.o
32block-nested-$(CONFIG_RBD) += rbd.o
33
34block-obj-y +=  $(addprefix block/, $(block-nested-y))
35
36net-obj-y = net.o
37net-nested-y = queue.o checksum.o util.o
38net-nested-y += socket.o
39net-nested-y += dump.o
40net-nested-$(CONFIG_POSIX) += tap.o
41net-nested-$(CONFIG_LINUX) += tap-linux.o
42net-nested-$(CONFIG_WIN32) += tap-win32.o
43net-nested-$(CONFIG_BSD) += tap-bsd.o
44net-nested-$(CONFIG_SOLARIS) += tap-solaris.o
45net-nested-$(CONFIG_AIX) += tap-aix.o
46net-nested-$(CONFIG_HAIKU) += tap-haiku.o
47net-nested-$(CONFIG_SLIRP) += slirp.o
48net-nested-$(CONFIG_VDE) += vde.o
49net-nested-$(CONFIG_SUNOS_VNIC) += vnic.o
50net-nested-$(CONFIG_SUNOS_VNIC) += vnic-dhcp.o
51net-obj-y += $(addprefix net/, $(net-nested-y))
52
53ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS),yy)
54# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
55# only pull in the actual virtio-9p device if we also enabled virtio.
56CONFIG_REALLY_VIRTFS=y
57endif
58fsdev-nested-$(CONFIG_VIRTFS) = qemu-fsdev.o
59fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y))
60
61######################################################################
62# libqemu_common.a: Target independent part of system emulation. The
63# long term path is to suppress *all* target specific code in case of
64# system emulation, i.e. a single QEMU executable should support all
65# CPUs and machines.
66
67common-obj-y = $(block-obj-y) blockdev.o
68common-obj-y += $(net-obj-y)
69common-obj-y += $(qobject-obj-y)
70common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
71common-obj-y += readline.o console.o cursor.o async.o qemu-error.o
72common-obj-y += $(oslib-obj-y)
73common-obj-$(CONFIG_WIN32) += os-win32.o
74common-obj-$(CONFIG_POSIX) += os-posix.o
75
76common-obj-y += tcg-runtime.o host-utils.o
77common-obj-y += irq.o ioport.o input.o
78common-obj-$(CONFIG_PTIMER) += ptimer.o
79common-obj-$(CONFIG_MAX7310) += max7310.o
80common-obj-$(CONFIG_WM8750) += wm8750.o
81common-obj-$(CONFIG_TWL92230) += twl92230.o
82common-obj-$(CONFIG_TSC2005) += tsc2005.o
83common-obj-$(CONFIG_LM832X) += lm832x.o
84common-obj-$(CONFIG_TMP105) += tmp105.o
85common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
86common-obj-$(CONFIG_SSD0303) += ssd0303.o
87common-obj-$(CONFIG_SSD0323) += ssd0323.o
88common-obj-$(CONFIG_ADS7846) += ads7846.o
89common-obj-$(CONFIG_MAX111X) += max111x.o
90common-obj-$(CONFIG_DS1338) += ds1338.o
91common-obj-y += i2c.o smbus.o smbus_eeprom.o
92common-obj-y += eeprom93xx.o
93common-obj-y += scsi-disk.o cdrom.o
94common-obj-y += scsi-generic.o scsi-bus.o
95common-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
96common-obj-y += usb-serial.o usb-net.o usb-bus.o usb-desc.o
97common-obj-$(CONFIG_SSI) += ssi.o
98common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
99common-obj-$(CONFIG_SD) += sd.o
100common-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
101common-obj-y += bt-hci-csr.o
102common-obj-y += buffered_file.o migration.o migration-tcp.o qemu-sockets.o
103common-obj-y += qemu-char.o savevm.o #aio.o
104common-obj-y += msmouse.o ps2.o
105common-obj-y += qdev.o qdev-properties.o
106common-obj-y += block-migration.o
107common-obj-y += pflib.o
108
109common-obj-$(CONFIG_BRLAPI) += baum.o
110common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
111common-obj-$(CONFIG_WIN32) += version.o
112
113common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o
114
115audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
116audio-obj-$(CONFIG_SDL) += sdlaudio.o
117audio-obj-$(CONFIG_OSS) += ossaudio.o
118audio-obj-$(CONFIG_SPICE) += spiceaudio.o
119audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
120audio-obj-$(CONFIG_ALSA) += alsaaudio.o
121audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
122audio-obj-$(CONFIG_FMOD) += fmodaudio.o
123audio-obj-$(CONFIG_ESD) += esdaudio.o
124audio-obj-$(CONFIG_PA) += paaudio.o
125audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
126audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
127audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
128audio-obj-y += wavcapture.o
129common-obj-y += $(addprefix audio/, $(audio-obj-y))
130
131ui-obj-y += keymaps.o
132ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
133ui-obj-$(CONFIG_CURSES) += curses.o
134ui-obj-y += vnc.o d3des.o
135ui-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
136ui-obj-y += vnc-enc-tight.o vnc-palette.o
137ui-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
138ui-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
139ui-obj-$(CONFIG_COCOA) += cocoa.o
140ifdef CONFIG_VNC_THREAD
141ui-obj-y += vnc-jobs-async.o
142else
143ui-obj-y += vnc-jobs-sync.o
144endif
145common-obj-y += $(addprefix ui/, $(ui-obj-y))
146
147common-obj-y += iov.o acl.o
148common-obj-$(CONFIG_THREAD) += qemu-thread.o
149common-obj-$(CONFIG_IOTHREAD) += compatfd.o
150common-obj-y += notify.o event_notifier.o
151common-obj-y += qemu-timer.o qemu-timer-common.o
152
153slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
154slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
155slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o
156common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
157
158# xen backend driver support
159common-obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
160common-obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
161
162######################################################################
163# libuser
164
165user-obj-y =
166user-obj-y += envlist.o path.o
167user-obj-y += tcg-runtime.o host-utils.o
168user-obj-y += cutils.o cache-utils.o
169
170######################################################################
171# libhw
172
173hw-obj-y =
174hw-obj-y += loader.o
175hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
176hw-obj-y += fw_cfg.o
177hw-obj-$(CONFIG_PCI) += pci_bridge.o
178hw-obj-$(CONFIG_PCI) += msix.o msi.o
179hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
180hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
181hw-obj-y += watchdog.o
182hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
183hw-obj-$(CONFIG_ECC) += ecc.o
184hw-obj-$(CONFIG_NAND) += nand.o
185hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
186hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
187
188hw-obj-$(CONFIG_M48T59) += m48t59.o
189hw-obj-$(CONFIG_ESCC) += escc.o
190hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
191
192hw-obj-$(CONFIG_SERIAL) += serial.o
193hw-obj-$(CONFIG_PARALLEL) += parallel.o
194# Moved back to Makefile.target due to #include qemu-kvm.h:
195#hw-obj-$(CONFIG_I8254) += i8254.o
196#hw-obj-$(CONFIG_PCSPK) += pcspk.o
197hw-obj-$(CONFIG_PCKBD) += pckbd.o
198hw-obj-$(CONFIG_USB_UHCI) += usb-uhci.o
199hw-obj-$(CONFIG_USB_OHCI) += usb-ohci.o
200hw-obj-$(CONFIG_FDC) += fdc.o
201# needs fixes for cpu hotplug, so moved to Makefile.target:
202# hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o
203hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o
204hw-obj-$(CONFIG_DMA) += dma.o
205
206# PPC devices
207hw-obj-$(CONFIG_OPENPIC) += openpic.o
208hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o
209# Mac shared devices
210hw-obj-$(CONFIG_MACIO) += macio.o
211hw-obj-$(CONFIG_CUDA) += cuda.o
212hw-obj-$(CONFIG_ADB) += adb.o
213hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
214hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
215# OldWorld PowerMac
216hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
217hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
218# NewWorld PowerMac
219hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
220hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o
221# PowerPC E500 boards
222hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
223
224# MIPS devices
225hw-obj-$(CONFIG_PIIX4) += piix4.o
226
227# PCI watchdog devices
228hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o
229
230hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
231
232# PCI network cards
233hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o
234hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
235hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
236hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
237hw-obj-$(CONFIG_E1000_PCI) += e1000.o
238hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
239
240hw-obj-$(CONFIG_SMC91C111) += smc91c111.o
241hw-obj-$(CONFIG_LAN9118) += lan9118.o
242hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
243
244# IDE
245hw-obj-$(CONFIG_IDE_CORE) += ide/core.o
246hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
247hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
248hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
249hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o
250hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o
251hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o
252hw-obj-$(CONFIG_IDE_VIA) += ide/via.o
253hw-obj-$(CONFIG_AHCI) += ide/ahci.o
254hw-obj-$(CONFIG_AHCI) += ide/ich.o
255
256# SCSI layer
257hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
258hw-obj-$(CONFIG_ESP) += esp.o
259
260hw-obj-y += dma-helpers.o sysbus.o isa-bus.o
261hw-obj-y += qdev-addr.o
262
263# VGA
264hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
265hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
266hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
267hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
268
269hw-obj-$(CONFIG_RC4030) += rc4030.o
270hw-obj-$(CONFIG_DP8393X) += dp8393x.o
271hw-obj-$(CONFIG_DS1225Y) += ds1225y.o
272hw-obj-$(CONFIG_MIPSNET) += mipsnet.o
273
274# Sound
275sound-obj-y =
276sound-obj-$(CONFIG_SB16) += sb16.o
277sound-obj-$(CONFIG_ES1370) += es1370.o
278sound-obj-$(CONFIG_AC97) += ac97.o
279sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
280sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
281sound-obj-$(CONFIG_CS4231A) += cs4231a.o
282sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
283
284adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
285hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
286
287hw-obj-$(CONFIG_REALLY_VIRTFS) += virtio-9p-debug.o
288hw-obj-$(CONFIG_VIRTFS) += virtio-9p-local.o virtio-9p-xattr.o
289hw-obj-$(CONFIG_VIRTFS) += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
290
291######################################################################
292# libdis
293# NOTE: the disassembler code is only needed for debugging
294
295libdis-y =
296libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
297libdis-$(CONFIG_ARM_DIS) += arm-dis.o
298libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
299libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
300libdis-$(CONFIG_I386_DIS) += i386-dis.o
301libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
302libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
303libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
304libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
305libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
306libdis-$(CONFIG_S390_DIS) += s390-dis.o
307libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
308libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
309
310######################################################################
311# trace
312
313ifeq ($(TRACE_BACKEND),dtrace)
314ifeq ($(strip $(CONFIG_SOLARIS)),)
315trace-obj-y = trace-dtrace.o
316endif
317else
318trace-obj-y = trace.o
319ifeq ($(TRACE_BACKEND),simple)
320trace-obj-y += simpletrace.o
321user-obj-y += qemu-timer-common.o
322endif
323endif
324
325vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
326
327vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
328
329