Statistics
| Branch: | Revision:

root / Makefile.objs @ c0424934

History | View | Annotate | Download (16.7 kB)

1
#######################################################################
2
# Target-independent parts used in system and user emulation
3
universal-obj-y =
4

    
5
#######################################################################
6
# QObject
7
qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
8
qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
9
qobject-obj-y += qerror.o error.o qemu-error.o
10

    
11
universal-obj-y += $(qobject-obj-y)
12

    
13
#######################################################################
14
# QOM
15
include $(SRC_PATH)/qom/Makefile
16
qom-obj-y = $(addprefix qom/, $(qom-y))
17
qom-obj-twice-y = $(addprefix qom/, $(qom-twice-y))
18

    
19
universal-obj-y += $(qom-obj-y)
20

    
21
#######################################################################
22
# oslib-obj-y is code depending on the OS (win32 vs posix)
23
oslib-obj-y = osdep.o
24
oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
25
oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o
26

    
27
#######################################################################
28
# coroutines
29
coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
30
coroutine-obj-y += qemu-coroutine-sleep.o
31
ifeq ($(CONFIG_UCONTEXT_COROUTINE),y)
32
coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o
33
else
34
ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y)
35
coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o
36
else
37
coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
38
endif
39
endif
40
coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
41

    
42
#######################################################################
43
# block-obj-y is code used by both qemu system emulation and qemu-img
44

    
45
block-obj-y = cutils.o cache-utils.o qemu-option.o module.o async.o
46
block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
47
block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
48
block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
49
block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
50

    
51
block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
52
block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
53
block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
54
block-nested-y += qed-check.o
55
block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o
56
block-nested-y += stream.o
57
block-nested-$(CONFIG_WIN32) += raw-win32.o
58
block-nested-$(CONFIG_POSIX) += raw-posix.o
59
block-nested-$(CONFIG_LIBISCSI) += iscsi.o
60
block-nested-$(CONFIG_CURL) += curl.o
61
block-nested-$(CONFIG_RBD) += rbd.o
62

    
63
block-obj-y +=  $(addprefix block/, $(block-nested-y))
64

    
65
net-obj-y = net.o
66
net-nested-y = queue.o checksum.o util.o
67
net-nested-y += socket.o
68
net-nested-y += dump.o
69
net-nested-$(CONFIG_POSIX) += tap.o
70
net-nested-$(CONFIG_LINUX) += tap-linux.o
71
net-nested-$(CONFIG_WIN32) += tap-win32.o
72
net-nested-$(CONFIG_BSD) += tap-bsd.o
73
net-nested-$(CONFIG_SOLARIS) += tap-solaris.o
74
net-nested-$(CONFIG_AIX) += tap-aix.o
75
net-nested-$(CONFIG_HAIKU) += tap-haiku.o
76
net-nested-$(CONFIG_SLIRP) += slirp.o
77
net-nested-$(CONFIG_VDE) += vde.o
78
net-obj-y += $(addprefix net/, $(net-nested-y))
79

    
80
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
81
# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
82
# only pull in the actual virtio-9p device if we also enabled virtio.
83
CONFIG_REALLY_VIRTFS=y
84
fsdev-nested-y = qemu-fsdev.o virtio-9p-marshal.o
85
else
86
fsdev-nested-y = qemu-fsdev-dummy.o
87
endif
88
fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y))
89

    
90
######################################################################
91
# Target independent part of system emulation. The long term path is to
92
# suppress *all* target specific code in case of system emulation, i.e. a
93
# single QEMU executable should support all CPUs and machines.
94

    
95
common-obj-y = $(block-obj-y) blockdev.o
96
common-obj-y += $(net-obj-y)
97
common-obj-y += $(qom-obj-twice-y)
98
common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
99
common-obj-y += readline.o console.o cursor.o
100
common-obj-y += $(oslib-obj-y)
101
common-obj-$(CONFIG_WIN32) += os-win32.o
102
common-obj-$(CONFIG_POSIX) += os-posix.o
103

    
104
common-obj-y += tcg-runtime.o host-utils.o main-loop.o
105
common-obj-y += irq.o input.o
106
common-obj-$(CONFIG_PTIMER) += ptimer.o
107
common-obj-$(CONFIG_MAX7310) += max7310.o
108
common-obj-$(CONFIG_WM8750) += wm8750.o
109
common-obj-$(CONFIG_TWL92230) += twl92230.o
110
common-obj-$(CONFIG_TSC2005) += tsc2005.o
111
common-obj-$(CONFIG_LM832X) += lm832x.o
112
common-obj-$(CONFIG_TMP105) += tmp105.o
113
common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
114
common-obj-$(CONFIG_SSD0303) += ssd0303.o
115
common-obj-$(CONFIG_SSD0323) += ssd0323.o
116
common-obj-$(CONFIG_ADS7846) += ads7846.o
117
common-obj-$(CONFIG_MAX111X) += max111x.o
118
common-obj-$(CONFIG_DS1338) += ds1338.o
119
common-obj-y += i2c.o smbus.o smbus_eeprom.o
120
common-obj-y += eeprom93xx.o
121
common-obj-y += scsi-disk.o cdrom.o
122
common-obj-y += scsi-generic.o scsi-bus.o
123
common-obj-y += hid.o
124
common-obj-y += usb/core.o usb/bus.o usb/desc.o usb/dev-hub.o
125
common-obj-y += usb/host-$(HOST_USB).o
126
common-obj-y += usb/dev-hid.o usb/dev-storage.o usb/dev-wacom.o
127
common-obj-y += usb/dev-serial.o usb/dev-network.o usb/dev-audio.o
128
common-obj-$(CONFIG_SSI) += ssi.o
129
common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
130
common-obj-$(CONFIG_SD) += sd.o
131
common-obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
132
common-obj-y += bt-hci-csr.o usb/dev-bluetooth.o
133
common-obj-y += buffered_file.o migration.o migration-tcp.o
134
common-obj-y += qemu-char.o #aio.o
135
common-obj-y += msmouse.o ps2.o
136
common-obj-y += qdev.o qdev-properties.o qdev-monitor.o
137
common-obj-y += block-migration.o iohandler.o
138
common-obj-y += pflib.o
139
common-obj-y += bitmap.o bitops.o
140

    
141
common-obj-$(CONFIG_BRLAPI) += baum.o
142
common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
143
common-obj-$(CONFIG_WIN32) += version.o
144

    
145
common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o
146

    
147
audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
148
audio-obj-$(CONFIG_SDL) += sdlaudio.o
149
audio-obj-$(CONFIG_OSS) += ossaudio.o
150
audio-obj-$(CONFIG_SPICE) += spiceaudio.o
151
audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
152
audio-obj-$(CONFIG_ALSA) += alsaaudio.o
153
audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
154
audio-obj-$(CONFIG_FMOD) += fmodaudio.o
155
audio-obj-$(CONFIG_ESD) += esdaudio.o
156
audio-obj-$(CONFIG_PA) += paaudio.o
157
audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
158
audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
159
audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
160
audio-obj-y += wavcapture.o
161
common-obj-y += $(addprefix audio/, $(audio-obj-y))
162

    
163
ui-obj-y += keymaps.o
164
ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
165
ui-obj-$(CONFIG_COCOA) += cocoa.o
166
ui-obj-$(CONFIG_CURSES) += curses.o
167
vnc-obj-y += vnc.o d3des.o
168
vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
169
vnc-obj-y += vnc-enc-tight.o vnc-palette.o
170
vnc-obj-y += vnc-enc-zrle.o
171
vnc-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
172
vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
173
ifdef CONFIG_VNC_THREAD
174
vnc-obj-y += vnc-jobs-async.o
175
else
176
vnc-obj-y += vnc-jobs-sync.o
177
endif
178
common-obj-y += $(addprefix ui/, $(ui-obj-y))
179
common-obj-$(CONFIG_VNC) += $(addprefix ui/, $(vnc-obj-y))
180

    
181
common-obj-y += iov.o acl.o
182
common-obj-$(CONFIG_POSIX) += compatfd.o
183
common-obj-y += notify.o event_notifier.o
184
common-obj-y += qemu-timer.o qemu-timer-common.o
185

    
186
slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
187
slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
188
slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o arp_table.o
189
common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
190

    
191
# xen backend driver support
192
common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
193
common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
194

    
195
######################################################################
196
# libuser
197

    
198
user-obj-y =
199
user-obj-y += envlist.o path.o
200
user-obj-y += tcg-runtime.o host-utils.o
201
user-obj-y += cutils.o cache-utils.o
202
user-obj-y += module.o
203
user-obj-y += qemu-user.o
204
user-obj-y += $(trace-obj-y)
205
user-obj-y += $(qom-obj-twice-y)
206

    
207
######################################################################
208
# libhw
209

    
210
hw-obj-y =
211
hw-obj-y += vl.o loader.o
212
hw-obj-$(CONFIG_VIRTIO) += virtio-console.o
213
hw-obj-y += usb/libhw.o
214
hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
215
hw-obj-y += fw_cfg.o
216
hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o pci_bridge_dev.o
217
hw-obj-$(CONFIG_PCI) += msix.o msi.o
218
hw-obj-$(CONFIG_PCI) += shpc.o
219
hw-obj-$(CONFIG_PCI) += slotid_cap.o
220
hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
221
hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
222
hw-obj-y += watchdog.o
223
hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
224
hw-obj-$(CONFIG_ECC) += ecc.o
225
hw-obj-$(CONFIG_NAND) += nand.o
226
hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
227
hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
228

    
229
hw-obj-$(CONFIG_M48T59) += m48t59.o
230
hw-obj-$(CONFIG_ESCC) += escc.o
231
hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
232

    
233
hw-obj-$(CONFIG_SERIAL) += serial.o
234
hw-obj-$(CONFIG_PARALLEL) += parallel.o
235
hw-obj-$(CONFIG_I8254) += i8254_common.o i8254.o
236
hw-obj-$(CONFIG_PCSPK) += pcspk.o
237
hw-obj-$(CONFIG_PCKBD) += pckbd.o
238
hw-obj-$(CONFIG_USB_UHCI) += usb/hcd-uhci.o
239
hw-obj-$(CONFIG_USB_OHCI) += usb/hcd-ohci.o
240
hw-obj-$(CONFIG_USB_EHCI) += usb/hcd-ehci.o
241
hw-obj-$(CONFIG_USB_XHCI) += usb/hcd-xhci.o
242
hw-obj-$(CONFIG_FDC) += fdc.o
243
hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o
244
hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o
245
hw-obj-$(CONFIG_DMA) += dma.o
246
hw-obj-$(CONFIG_I82374) += i82374.o
247
hw-obj-$(CONFIG_HPET) += hpet.o
248
hw-obj-$(CONFIG_APPLESMC) += applesmc.o
249
hw-obj-$(CONFIG_SMARTCARD) += usb/dev-smartcard-reader.o ccid-card-passthru.o
250
hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
251
hw-obj-$(CONFIG_USB_REDIR) += usb/redirect.o
252
hw-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
253

    
254
# PPC devices
255
hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o
256
hw-obj-$(CONFIG_I82378) += i82378.o
257
# Mac shared devices
258
hw-obj-$(CONFIG_MACIO) += macio.o
259
hw-obj-$(CONFIG_CUDA) += cuda.o
260
hw-obj-$(CONFIG_ADB) += adb.o
261
hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
262
hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
263
# OldWorld PowerMac
264
hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
265
hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
266
# NewWorld PowerMac
267
hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
268
hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o
269
# PowerPC E500 boards
270
hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
271

    
272
# MIPS devices
273
hw-obj-$(CONFIG_PIIX4) += piix4.o
274
hw-obj-$(CONFIG_G364FB) += g364fb.o
275
hw-obj-$(CONFIG_JAZZ_LED) += jazz_led.o
276

    
277
# PCI watchdog devices
278
hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o
279

    
280
hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
281

    
282
# PCI network cards
283
hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o
284
hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
285
hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
286
hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
287
hw-obj-$(CONFIG_E1000_PCI) += e1000.o
288
hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
289

    
290
hw-obj-$(CONFIG_SMC91C111) += smc91c111.o
291
hw-obj-$(CONFIG_LAN9118) += lan9118.o
292
hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
293
hw-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
294

    
295
# IDE
296
hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o
297
hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
298
hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
299
hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
300
hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o
301
hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o
302
hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o
303
hw-obj-$(CONFIG_IDE_VIA) += ide/via.o
304
hw-obj-$(CONFIG_AHCI) += ide/ahci.o
305
hw-obj-$(CONFIG_AHCI) += ide/ich.o
306

    
307
# SCSI layer
308
hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
309
hw-obj-$(CONFIG_ESP) += esp.o
310

    
311
hw-obj-y += dma-helpers.o sysbus.o isa-bus.o
312
hw-obj-y += qdev-addr.o
313

    
314
# VGA
315
hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
316
hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
317
hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
318
hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
319
hw-obj-$(CONFIG_VMMOUSE) += vmmouse.o
320
hw-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
321

    
322
hw-obj-$(CONFIG_RC4030) += rc4030.o
323
hw-obj-$(CONFIG_DP8393X) += dp8393x.o
324
hw-obj-$(CONFIG_DS1225Y) += ds1225y.o
325
hw-obj-$(CONFIG_MIPSNET) += mipsnet.o
326

    
327
hw-obj-y += qtest.o
328

    
329
# Sound
330
sound-obj-y =
331
sound-obj-$(CONFIG_SB16) += sb16.o
332
sound-obj-$(CONFIG_ES1370) += es1370.o
333
sound-obj-$(CONFIG_AC97) += ac97.o
334
sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
335
sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
336
sound-obj-$(CONFIG_CS4231A) += cs4231a.o
337
sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
338

    
339
adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
340
hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
341

    
342
9pfs-nested-$(CONFIG_VIRTFS)  = virtio-9p.o
343
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-local.o virtio-9p-xattr.o
344
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
345
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-coth.o cofs.o codir.o cofile.o
346
9pfs-nested-$(CONFIG_VIRTFS) += coxattr.o virtio-9p-synth.o
347
9pfs-nested-$(CONFIG_OPEN_BY_HANDLE) +=  virtio-9p-handle.o
348
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-proxy.o
349

    
350
hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
351

    
352
######################################################################
353
# libdis
354
# NOTE: the disassembler code is only needed for debugging
355

    
356
libdis-y =
357
libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
358
libdis-$(CONFIG_ARM_DIS) += arm-dis.o
359
libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
360
libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
361
libdis-$(CONFIG_I386_DIS) += i386-dis.o
362
libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
363
libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
364
libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
365
libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
366
libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
367
libdis-$(CONFIG_S390_DIS) += s390-dis.o
368
libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
369
libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
370
libdis-$(CONFIG_LM32_DIS) += lm32-dis.o
371

    
372
######################################################################
373
# trace
374

    
375
ifeq ($(TRACE_BACKEND),dtrace)
376
TRACE_H_EXTRA_DEPS=trace-dtrace.h
377
endif
378
trace.h: trace.h-timestamp $(TRACE_H_EXTRA_DEPS)
379
trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
380
	$(call quiet-command,$(TRACETOOL) \
381
		--format=h \
382
		--backend=$(TRACE_BACKEND) \
383
		< $< > $@,"  GEN   trace.h")
384
	@cmp -s $@ trace.h || cp $@ trace.h
385

    
386
trace.c: trace.c-timestamp
387
trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
388
	$(call quiet-command,$(TRACETOOL) \
389
		--format=c \
390
		--backend=$(TRACE_BACKEND) \
391
		< $< > $@,"  GEN   trace.c")
392
	@cmp -s $@ trace.c || cp $@ trace.c
393

    
394
trace.o: trace.c $(GENERATED_HEADERS)
395

    
396
trace-dtrace.h: trace-dtrace.dtrace
397
	$(call quiet-command,dtrace -o $@ -h -s $<, "  GEN   trace-dtrace.h")
398

    
399
# Normal practice is to name DTrace probe file with a '.d' extension
400
# but that gets picked up by QEMU's Makefile as an external dependency
401
# rule file. So we use '.dtrace' instead
402
trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
403
trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
404
	$(call quiet-command,$(TRACETOOL) \
405
		--format=d \
406
		--backend=$(TRACE_BACKEND) \
407
		< $< > $@,"  GEN   trace-dtrace.dtrace")
408
	@cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace
409

    
410
trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
411
	$(call quiet-command,dtrace -o $@ -G -s $<, "  GEN   trace-dtrace.o")
412

    
413
ifeq ($(LIBTOOL),)
414
trace-dtrace.lo: trace-dtrace.dtrace
415
	@echo "missing libtool. please install and rerun configure."; exit 1
416
else
417
trace-dtrace.lo: trace-dtrace.dtrace
418
	$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, "  lt GEN trace-dtrace.o")
419
endif
420

    
421
trace/simple.o: trace/simple.c $(GENERATED_HEADERS)
422

    
423
trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o
424
ifneq ($(TRACE_BACKEND),dtrace)
425
trace-obj-y = trace.o
426
endif
427

    
428
trace-nested-$(CONFIG_TRACE_DEFAULT) += default.o
429

    
430
trace-nested-$(CONFIG_TRACE_SIMPLE) += simple.o
431
trace-obj-$(CONFIG_TRACE_SIMPLE) += qemu-timer-common.o
432

    
433
trace-nested-$(CONFIG_TRACE_STDERR) += stderr.o
434

    
435
trace-nested-y += control.o
436

    
437
trace-obj-y += $(addprefix trace/, $(trace-nested-y))
438

    
439
$(trace-obj-y): $(GENERATED_HEADERS)
440

    
441
######################################################################
442
# smartcard
443

    
444
libcacard-y = cac.o event.o vcard.o vreader.o vcard_emul_nss.o vcard_emul_type.o card_7816.o
445

    
446
######################################################################
447
# qapi
448

    
449
qapi-nested-y = qapi-visit-core.o qapi-dealloc-visitor.o qmp-input-visitor.o
450
qapi-nested-y += qmp-output-visitor.o qmp-registry.o qmp-dispatch.o
451
qapi-nested-y += string-input-visitor.o string-output-visitor.o
452
qapi-obj-y = $(addprefix qapi/, $(qapi-nested-y))
453

    
454
common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o
455
common-obj-y += qmp.o hmp.o
456

    
457
universal-obj-y += $(qapi-obj-y)
458

    
459
######################################################################
460
# guest agent
461

    
462
qga-nested-y = commands.o guest-agent-command-state.o
463
qga-nested-$(CONFIG_POSIX) += commands-posix.o channel-posix.o
464
qga-nested-$(CONFIG_WIN32) += commands-win32.o channel-win32.o service-win32.o
465
qga-obj-y = $(addprefix qga/, $(qga-nested-y))
466
qga-obj-y += qemu-ga.o module.o
467
qga-obj-$(CONFIG_WIN32) += oslib-win32.o
468
qga-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-sockets.o qemu-option.o
469

    
470
vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
471

    
472
vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
473

    
474
QEMU_CFLAGS+=$(GLIB_CFLAGS)
475