Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 1 | ####################################################################### |
Andreas Färber | ce008c1 | 2012-03-04 21:32:36 +0100 | [diff] [blame] | 2 | # Target-independent parts used in system and user emulation |
| 3 | universal-obj-y = |
| 4 | |
| 5 | ####################################################################### |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 9 | qobject-obj-y += qerror.o error.o qemu-error.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 10 | |
Andreas Färber | ce008c1 | 2012-03-04 21:32:36 +0100 | [diff] [blame] | 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)) |
Andreas Färber | dd83b06 | 2012-01-28 16:39:52 +0100 | [diff] [blame] | 17 | qom-obj-twice-y = $(addprefix qom/, $(qom-twice-y)) |
Andreas Färber | ce008c1 | 2012-03-04 21:32:36 +0100 | [diff] [blame] | 18 | |
| 19 | universal-obj-y += $(qom-obj-y) |
| 20 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 21 | ####################################################################### |
Jes Sorensen | c1b0b93 | 2010-10-26 10:39:19 +0200 | [diff] [blame] | 22 | # oslib-obj-y is code depending on the OS (win32 vs posix) |
| 23 | oslib-obj-y = osdep.o |
Paolo Bonzini | 6774e44 | 2011-05-02 09:54:03 +0200 | [diff] [blame] | 24 | oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o |
| 25 | oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o |
Jes Sorensen | c1b0b93 | 2010-10-26 10:39:19 +0200 | [diff] [blame] | 26 | |
| 27 | ####################################################################### |
Kevin Wolf | 00dccaf | 2011-01-17 16:08:14 +0000 | [diff] [blame] | 28 | # coroutines |
Paolo Bonzini | 8c5135f | 2011-09-08 13:46:25 +0200 | [diff] [blame] | 29 | coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o |
Stefan Hajnoczi | 7e62466 | 2012-01-18 14:40:40 +0000 | [diff] [blame] | 30 | coroutine-obj-y += qemu-coroutine-sleep.o |
Aneesh Kumar K.V | d0e2fce | 2011-06-09 23:11:06 +0530 | [diff] [blame] | 31 | ifeq ($(CONFIG_UCONTEXT_COROUTINE),y) |
Kevin Wolf | 00dccaf | 2011-01-17 16:08:14 +0000 | [diff] [blame] | 32 | coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o |
Aneesh Kumar K.V | d0e2fce | 2011-06-09 23:11:06 +0530 | [diff] [blame] | 33 | else |
Alex Barcelo | fe91bfa | 2012-02-28 12:25:51 +0100 | [diff] [blame] | 34 | ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y) |
| 35 | coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o |
| 36 | else |
Aneesh Kumar K.V | d0e2fce | 2011-06-09 23:11:06 +0530 | [diff] [blame] | 37 | coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o |
| 38 | endif |
Alex Barcelo | fe91bfa | 2012-02-28 12:25:51 +0100 | [diff] [blame] | 39 | endif |
Kevin Wolf | 00dccaf | 2011-01-17 16:08:14 +0000 | [diff] [blame] | 40 | coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o |
| 41 | |
| 42 | ####################################################################### |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 43 | # block-obj-y is code used by both qemu system emulation and qemu-img |
| 44 | |
Anthony Liguori | 41a7482 | 2011-08-20 22:23:03 -0500 | [diff] [blame] | 45 | block-obj-y = cutils.o cache-utils.o qemu-option.o module.o async.o |
Nick Thomas | c12504c | 2011-02-22 15:44:53 +0000 | [diff] [blame] | 46 | block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 47 | block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 48 | block-obj-$(CONFIG_POSIX) += posix-aio-compat.o |
| 49 | block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o |
| 50 | |
Christoph Hellwig | 84a12e6 | 2010-04-07 22:30:24 +0200 | [diff] [blame] | 51 | block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o |
Kevin Wolf | 4938109 | 2011-01-10 17:15:10 +0100 | [diff] [blame] | 52 | block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o |
Stefan Hajnoczi | 298800c | 2010-12-06 16:08:01 +0000 | [diff] [blame] | 53 | block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o |
Stefan Hajnoczi | eabba58 | 2010-12-06 16:08:02 +0000 | [diff] [blame] | 54 | block-nested-y += qed-check.o |
Stefan Hajnoczi | d9d3341 | 2010-09-21 15:43:03 +0100 | [diff] [blame] | 55 | block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o |
Stefan Hajnoczi | 4f1043b | 2012-01-18 14:40:44 +0000 | [diff] [blame] | 56 | block-nested-y += stream.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 57 | block-nested-$(CONFIG_WIN32) += raw-win32.o |
| 58 | block-nested-$(CONFIG_POSIX) += raw-posix.o |
Ronnie Sahlberg | c589b24 | 2011-10-25 19:24:24 +1100 | [diff] [blame] | 59 | block-nested-$(CONFIG_LIBISCSI) += iscsi.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 60 | block-nested-$(CONFIG_CURL) += curl.o |
Christian Brunner | f27aaf4 | 2010-12-06 20:53:01 +0100 | [diff] [blame] | 61 | block-nested-$(CONFIG_RBD) += rbd.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 |
Andreas Färber | 3ee66df | 2010-09-20 00:50:47 +0200 | [diff] [blame] | 75 | net-nested-$(CONFIG_HAIKU) += tap-haiku.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 76 | net-nested-$(CONFIG_SLIRP) += slirp.o |
| 77 | net-nested-$(CONFIG_VDE) += vde.o |
| 78 | net-obj-y += $(addprefix net/, $(net-nested-y)) |
| 79 | |
Aneesh Kumar K.V | 9fe1ebe | 2011-06-01 12:35:13 +0530 | [diff] [blame] | 80 | ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy) |
Paul Brook | 01af7da | 2010-11-26 22:08:48 +0000 | [diff] [blame] | 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 |
M. Mohan Kumar | 10925bf | 2011-12-14 13:49:06 +0530 | [diff] [blame] | 84 | fsdev-nested-y = qemu-fsdev.o virtio-9p-marshal.o |
Aneesh Kumar K.V | 1c88c71 | 2011-06-01 12:35:13 +0530 | [diff] [blame] | 85 | else |
| 86 | fsdev-nested-y = qemu-fsdev-dummy.o |
Paul Brook | 01af7da | 2010-11-26 22:08:48 +0000 | [diff] [blame] | 87 | endif |
Venkateswararao Jujjuri (JV) | 758e8e3 | 2010-06-14 13:34:41 -0700 | [diff] [blame] | 88 | fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y)) |
Gautham R Shenoy | 74db920 | 2010-04-29 17:44:43 +0530 | [diff] [blame] | 89 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 90 | ###################################################################### |
Chen Wei-Ren | 050d994 | 2011-11-15 20:47:11 +0800 | [diff] [blame] | 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. |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 94 | |
Anthony Liguori | ef749d0 | 2011-06-01 12:14:50 -0500 | [diff] [blame] | 95 | common-obj-y = $(block-obj-y) blockdev.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 96 | common-obj-y += $(net-obj-y) |
Andreas Färber | dd83b06 | 2012-01-28 16:39:52 +0100 | [diff] [blame] | 97 | common-obj-y += $(qom-obj-twice-y) |
Gautham R Shenoy | 74db920 | 2010-04-29 17:44:43 +0530 | [diff] [blame] | 98 | common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX)) |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 99 | common-obj-y += readline.o console.o cursor.o |
Jes Sorensen | c1b0b93 | 2010-10-26 10:39:19 +0200 | [diff] [blame] | 100 | common-obj-y += $(oslib-obj-y) |
Blue Swirl | b0cb640a | 2010-06-12 05:49:30 +0000 | [diff] [blame] | 101 | common-obj-$(CONFIG_WIN32) += os-win32.o |
| 102 | common-obj-$(CONFIG_POSIX) += os-posix.o |
Gerd Hoffmann | 254e595 | 2010-05-21 11:54:32 +0200 | [diff] [blame] | 103 | |
Paolo Bonzini | d3b12f5 | 2011-09-13 10:30:52 +0200 | [diff] [blame] | 104 | common-obj-y += tcg-runtime.o host-utils.o main-loop.o |
Avi Kivity | 6bf9fd4 | 2011-09-26 14:52:26 +0300 | [diff] [blame] | 105 | common-obj-y += irq.o input.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 |
Gerd Hoffmann | dcfda67 | 2011-07-15 15:08:01 +0200 | [diff] [blame] | 123 | common-obj-y += hid.o |
Gerd Hoffmann | f1ae32a | 2012-03-07 14:55:18 +0100 | [diff] [blame] | 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 |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 128 | common-obj-$(CONFIG_SSI) += ssi.o |
| 129 | common-obj-$(CONFIG_SSI_SD) += ssi-sd.o |
| 130 | common-obj-$(CONFIG_SD) += sd.o |
Gerd Hoffmann | f1ae32a | 2012-03-07 14:55:18 +0100 | [diff] [blame] | 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 |
Nick Thomas | c12504c | 2011-02-22 15:44:53 +0000 | [diff] [blame] | 133 | common-obj-y += buffered_file.o migration.o migration-tcp.o |
Avi Kivity | c5705a7 | 2011-12-20 15:59:12 +0200 | [diff] [blame] | 134 | common-obj-y += qemu-char.o #aio.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 135 | common-obj-y += msmouse.o ps2.o |
Anthony Liguori | ee46d8a | 2011-12-22 15:24:20 -0600 | [diff] [blame] | 136 | common-obj-y += qdev.o qdev-properties.o qdev-monitor.o |
Paolo Bonzini | 0298141 | 2011-03-09 18:21:09 +0100 | [diff] [blame] | 137 | common-obj-y += block-migration.o iohandler.o |
Gerd Hoffmann | d6d94fc | 2010-06-14 09:54:27 +0200 | [diff] [blame] | 138 | common-obj-y += pflib.o |
Corentin Chary | e0e53b2 | 2011-02-04 09:06:04 +0100 | [diff] [blame] | 139 | common-obj-y += bitmap.o bitops.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 140 | |
| 141 | common-obj-$(CONFIG_BRLAPI) += baum.o |
| 142 | common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o |
Blue Swirl | 9fe6de9 | 2010-09-26 16:07:57 +0000 | [diff] [blame] | 143 | common-obj-$(CONFIG_WIN32) += version.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 144 | |
Alon Levy | cbcc633 | 2011-01-19 10:49:50 +0200 | [diff] [blame] | 145 | common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o |
Gerd Hoffmann | 29b0040 | 2010-03-11 11:13:27 -0300 | [diff] [blame] | 146 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 |
Gerd Hoffmann | 3e31375 | 2010-11-09 17:29:46 +0100 | [diff] [blame] | 150 | audio-obj-$(CONFIG_SPICE) += spiceaudio.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 | |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 163 | ui-obj-y += keymaps.o |
| 164 | ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o |
Andreas Färber | e949467 | 2011-06-02 20:51:22 +0200 | [diff] [blame] | 165 | ui-obj-$(CONFIG_COCOA) += cocoa.o |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 166 | ui-obj-$(CONFIG_CURSES) += curses.o |
Jes Sorensen | 821601e | 2011-03-16 13:33:36 +0100 | [diff] [blame] | 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 |
Corentin Chary | bd023f9 | 2010-07-07 20:58:02 +0200 | [diff] [blame] | 173 | ifdef CONFIG_VNC_THREAD |
Jes Sorensen | 821601e | 2011-03-16 13:33:36 +0100 | [diff] [blame] | 174 | vnc-obj-y += vnc-jobs-async.o |
Corentin Chary | bd023f9 | 2010-07-07 20:58:02 +0200 | [diff] [blame] | 175 | else |
Jes Sorensen | 821601e | 2011-03-16 13:33:36 +0100 | [diff] [blame] | 176 | vnc-obj-y += vnc-jobs-sync.o |
Corentin Chary | bd023f9 | 2010-07-07 20:58:02 +0200 | [diff] [blame] | 177 | endif |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 178 | common-obj-y += $(addprefix ui/, $(ui-obj-y)) |
Jes Sorensen | 821601e | 2011-03-16 13:33:36 +0100 | [diff] [blame] | 179 | common-obj-$(CONFIG_VNC) += $(addprefix ui/, $(vnc-obj-y)) |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 180 | |
| 181 | common-obj-y += iov.o acl.o |
Paolo Bonzini | 6774e44 | 2011-05-02 09:54:03 +0200 | [diff] [blame] | 182 | common-obj-$(CONFIG_POSIX) += compatfd.o |
Blue Swirl | d3538b4 | 2010-04-19 19:47:49 +0000 | [diff] [blame] | 183 | common-obj-y += notify.o event_notifier.o |
Blue Swirl | c57c846 | 2010-10-23 15:24:07 +0000 | [diff] [blame] | 184 | common-obj-y += qemu-timer.o qemu-timer-common.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 |
Fabien Chouteau | 1a0ca1e | 2011-08-03 12:52:54 +0200 | [diff] [blame] | 188 | slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o arp_table.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 189 | common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y)) |
| 190 | |
| 191 | # xen backend driver support |
Jan Kiszka | 6dbd588 | 2011-06-21 22:59:07 +0200 | [diff] [blame] | 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 |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 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 |
Andreas Färber | ce008c1 | 2012-03-04 21:32:36 +0100 | [diff] [blame] | 202 | user-obj-y += module.o |
| 203 | user-obj-y += qemu-user.o |
Lluís Vilanova | 937b125 | 2011-09-15 22:45:42 +0200 | [diff] [blame] | 204 | user-obj-y += $(trace-obj-y) |
Andreas Färber | dd83b06 | 2012-01-28 16:39:52 +0100 | [diff] [blame] | 205 | user-obj-y += $(qom-obj-twice-y) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 206 | |
| 207 | ###################################################################### |
| 208 | # libhw |
| 209 | |
| 210 | hw-obj-y = |
Blue Swirl | 04c9a0c | 2010-04-19 19:46:13 +0000 | [diff] [blame] | 211 | hw-obj-y += vl.o loader.o |
Blue Swirl | 21673cd | 2011-07-14 15:22:20 +0000 | [diff] [blame] | 212 | hw-obj-$(CONFIG_VIRTIO) += virtio-console.o |
Gerd Hoffmann | f1ae32a | 2012-03-07 14:55:18 +0100 | [diff] [blame] | 213 | hw-obj-y += usb/libhw.o |
Jan Kiszka | 7665385 | 2011-04-26 01:32:08 +0000 | [diff] [blame] | 214 | hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o |
Paul Brook | bd9141b | 2010-11-26 18:47:45 +0000 | [diff] [blame] | 215 | hw-obj-y += fw_cfg.o |
Michael S. Tsirkin | 4eb812f | 2011-07-03 16:00:09 +0300 | [diff] [blame] | 216 | hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o pci_bridge_dev.o |
Michael S. Tsirkin | 624c716 | 2010-12-08 17:46:24 +0900 | [diff] [blame] | 217 | hw-obj-$(CONFIG_PCI) += msix.o msi.o |
Michael S. Tsirkin | 1dc324d | 2012-02-12 14:12:21 +0200 | [diff] [blame] | 218 | hw-obj-$(CONFIG_PCI) += shpc.o |
Michael S. Tsirkin | 762833b | 2012-02-15 19:17:59 +0200 | [diff] [blame] | 219 | hw-obj-$(CONFIG_PCI) += slotid_cap.o |
Paul Brook | f8f5cfb | 2010-11-26 21:39:42 +0000 | [diff] [blame] | 220 | hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o |
| 221 | hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 222 | hw-obj-y += watchdog.o |
Blue Swirl | 84108e1 | 2010-03-21 19:47:09 +0000 | [diff] [blame] | 223 | hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 224 | hw-obj-$(CONFIG_ECC) += ecc.o |
| 225 | hw-obj-$(CONFIG_NAND) += nand.o |
Blue Swirl | 3d08ff6 | 2010-03-29 19:23:56 +0000 | [diff] [blame] | 226 | hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o |
Blue Swirl | 5f9fc5a | 2010-03-29 19:23:55 +0000 | [diff] [blame] | 227 | hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 228 | |
| 229 | hw-obj-$(CONFIG_M48T59) += m48t59.o |
| 230 | hw-obj-$(CONFIG_ESCC) += escc.o |
Artyom Tarasenko | 676d9b9 | 2010-04-18 00:34:03 +0200 | [diff] [blame] | 231 | hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 232 | |
Blue Swirl | 2d48377 | 2010-03-21 19:47:11 +0000 | [diff] [blame] | 233 | hw-obj-$(CONFIG_SERIAL) += serial.o |
Blue Swirl | b994504 | 2010-03-21 19:47:01 +0000 | [diff] [blame] | 234 | hw-obj-$(CONFIG_PARALLEL) += parallel.o |
Jan Kiszka | d11e859 | 2012-03-02 20:28:46 +0100 | [diff] [blame] | 235 | hw-obj-$(CONFIG_I8254) += i8254_common.o i8254.o |
Blue Swirl | 7109371 | 2010-03-21 19:47:02 +0000 | [diff] [blame] | 236 | hw-obj-$(CONFIG_PCSPK) += pcspk.o |
Blue Swirl | 956a3e6 | 2010-05-22 07:59:01 +0000 | [diff] [blame] | 237 | hw-obj-$(CONFIG_PCKBD) += pckbd.o |
Gerd Hoffmann | f1ae32a | 2012-03-07 14:55:18 +0100 | [diff] [blame] | 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 |
Blue Swirl | 35da37e | 2010-03-21 19:47:06 +0000 | [diff] [blame] | 242 | hw-obj-$(CONFIG_FDC) += fdc.o |
Blue Swirl | c69ea0d | 2010-05-17 19:32:37 +0000 | [diff] [blame] | 243 | hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o |
| 244 | hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o |
Blue Swirl | 4556bd8 | 2010-05-22 08:00:52 +0000 | [diff] [blame] | 245 | hw-obj-$(CONFIG_DMA) += dma.o |
Andreas Färber | 23b96cd | 2010-12-25 05:29:37 +0100 | [diff] [blame] | 246 | hw-obj-$(CONFIG_I82374) += i82374.o |
Blue Swirl | dd703b9 | 2011-02-05 14:35:00 +0000 | [diff] [blame] | 247 | hw-obj-$(CONFIG_HPET) += hpet.o |
Blue Swirl | 1c9c5fc | 2011-02-13 12:31:28 +0000 | [diff] [blame] | 248 | hw-obj-$(CONFIG_APPLESMC) += applesmc.o |
Gerd Hoffmann | f1ae32a | 2012-03-07 14:55:18 +0100 | [diff] [blame] | 249 | hw-obj-$(CONFIG_SMARTCARD) += usb/dev-smartcard-reader.o ccid-card-passthru.o |
Alon Levy | 585738a | 2010-10-24 12:09:18 +0200 | [diff] [blame] | 250 | hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o |
Gerd Hoffmann | f1ae32a | 2012-03-07 14:55:18 +0100 | [diff] [blame] | 251 | hw-obj-$(CONFIG_USB_REDIR) += usb/redirect.o |
Jan Kiszka | 512709f | 2011-10-16 14:38:45 +0200 | [diff] [blame] | 252 | hw-obj-$(CONFIG_I8259) += i8259_common.o i8259.o |
Blue Swirl | add85a7 | 2010-03-29 19:24:04 +0000 | [diff] [blame] | 253 | |
| 254 | # PPC devices |
Blue Swirl | add85a7 | 2010-03-29 19:24:04 +0000 | [diff] [blame] | 255 | hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o |
Andreas Färber | a04ff94 | 2010-12-25 06:01:41 +0100 | [diff] [blame] | 256 | hw-obj-$(CONFIG_I82378) += i82378.o |
Blue Swirl | 2b5eb37 | 2010-03-30 17:36:23 +0000 | [diff] [blame] | 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 |
Blue Swirl | b994504 | 2010-03-21 19:47:01 +0000 | [diff] [blame] | 271 | |
Blue Swirl | 08af49d | 2010-07-03 06:49:47 +0000 | [diff] [blame] | 272 | # MIPS devices |
| 273 | hw-obj-$(CONFIG_PIIX4) += piix4.o |
Blue Swirl | 1213406 | 2011-09-04 20:51:28 +0000 | [diff] [blame] | 274 | hw-obj-$(CONFIG_G364FB) += g364fb.o |
Hervé Poussineau | 78207d8 | 2012-02-17 20:27:17 +0100 | [diff] [blame] | 275 | hw-obj-$(CONFIG_JAZZ_LED) += jazz_led.o |
Blue Swirl | 08af49d | 2010-07-03 06:49:47 +0000 | [diff] [blame] | 276 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 277 | # PCI watchdog devices |
Paul Brook | f8f5cfb | 2010-11-26 21:39:42 +0000 | [diff] [blame] | 278 | hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 279 | |
Michael S. Tsirkin | c924f36 | 2010-12-01 07:11:51 +0200 | [diff] [blame] | 280 | hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 281 | |
| 282 | # PCI network cards |
Paul Brook | f8f5cfb | 2010-11-26 21:39:42 +0000 | [diff] [blame] | 283 | hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o |
| 284 | hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o |
Paul Brook | a4c75a2 | 2010-11-27 11:23:34 +0000 | [diff] [blame] | 285 | hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o |
| 286 | hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o |
Alexander Graf | 32600a3 | 2010-12-08 12:05:42 +0100 | [diff] [blame] | 287 | hw-obj-$(CONFIG_E1000_PCI) += e1000.o |
Alexander Graf | 5cf7a3c | 2010-12-08 12:05:47 +0100 | [diff] [blame] | 288 | hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 289 | |
| 290 | hw-obj-$(CONFIG_SMC91C111) += smc91c111.o |
| 291 | hw-obj-$(CONFIG_LAN9118) += lan9118.o |
Blue Swirl | d3ffc7a | 2010-03-21 19:47:10 +0000 | [diff] [blame] | 292 | hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o |
Max Filippov | 342407f | 2011-10-16 02:56:45 +0400 | [diff] [blame] | 293 | hw-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 294 | |
Blue Swirl | 9953b2f | 2010-03-21 19:47:05 +0000 | [diff] [blame] | 295 | # IDE |
Kevin Wolf | 33231e0 | 2011-04-18 16:45:49 +0200 | [diff] [blame] | 296 | hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o |
Blue Swirl | 9953b2f | 2010-03-21 19:47:05 +0000 | [diff] [blame] | 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 |
Blue Swirl | 02c7c99 | 2010-03-29 19:23:57 +0000 | [diff] [blame] | 302 | hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o |
Huacai Chen | 016512f | 2010-06-29 10:49:50 +0800 | [diff] [blame] | 303 | hw-obj-$(CONFIG_IDE_VIA) += ide/via.o |
Alexander Graf | f6ad2e3 | 2010-12-14 01:34:40 +0100 | [diff] [blame] | 304 | hw-obj-$(CONFIG_AHCI) += ide/ahci.o |
Sebastian Herbszt | 03c7a6a | 2011-02-01 15:51:26 +0100 | [diff] [blame] | 305 | hw-obj-$(CONFIG_AHCI) += ide/ich.o |
Blue Swirl | 9953b2f | 2010-03-21 19:47:05 +0000 | [diff] [blame] | 306 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 307 | # SCSI layer |
Paul Brook | f8f5cfb | 2010-11-26 21:39:42 +0000 | [diff] [blame] | 308 | hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 309 | hw-obj-$(CONFIG_ESP) += esp.o |
| 310 | |
| 311 | hw-obj-y += dma-helpers.o sysbus.o isa-bus.o |
Anthony Liguori | 8b45d44 | 2011-12-23 09:08:05 -0600 | [diff] [blame] | 312 | hw-obj-y += qdev-addr.o |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 313 | |
Blue Swirl | 1afdfdd | 2010-03-21 19:47:00 +0000 | [diff] [blame] | 314 | # VGA |
| 315 | hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o |
Blue Swirl | 7f55c7c | 2010-03-21 19:47:03 +0000 | [diff] [blame] | 316 | hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o |
Blue Swirl | b970ea8 | 2010-03-27 07:26:16 +0000 | [diff] [blame] | 317 | hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o |
Blue Swirl | 57448a9 | 2010-03-27 18:18:17 +0000 | [diff] [blame] | 318 | hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o |
Blue Swirl | 86d8641 | 2011-02-05 14:34:52 +0000 | [diff] [blame] | 319 | hw-obj-$(CONFIG_VMMOUSE) += vmmouse.o |
Blue Swirl | 3316364 | 2011-10-09 09:58:00 +0000 | [diff] [blame] | 320 | hw-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o |
Blue Swirl | b970ea8 | 2010-03-27 07:26:16 +0000 | [diff] [blame] | 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 |
Blue Swirl | 1afdfdd | 2010-03-21 19:47:00 +0000 | [diff] [blame] | 326 | |
Anthony Liguori | c7f0f3b | 2012-03-28 15:42:02 +0200 | [diff] [blame] | 327 | hw-obj-y += qtest.o |
| 328 | |
Blue Swirl | 70615c3 | 2010-03-22 20:18:40 +0000 | [diff] [blame] | 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 |
Gerd Hoffmann | d61a4ce | 2010-11-01 13:05:32 +0100 | [diff] [blame] | 337 | sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o |
Blue Swirl | 70615c3 | 2010-03-22 20:18:40 +0000 | [diff] [blame] | 338 | |
| 339 | adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0 |
| 340 | hw-obj-$(CONFIG_SOUND) += $(sound-obj-y) |
| 341 | |
Harsh Prateek Bora | 46604b3 | 2011-09-30 16:06:14 +0530 | [diff] [blame] | 342 | 9pfs-nested-$(CONFIG_VIRTFS) = virtio-9p.o |
Aneesh Kumar K.V | 5f54222 | 2011-08-02 11:35:54 +0530 | [diff] [blame] | 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 |
Aneesh Kumar K.V | 172198d | 2011-05-18 16:04:13 -0700 | [diff] [blame] | 345 | 9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-coth.o cofs.o codir.o cofile.o |
Aneesh Kumar K.V | 77eec1b | 2011-12-04 22:35:27 +0530 | [diff] [blame] | 346 | 9pfs-nested-$(CONFIG_VIRTFS) += coxattr.o virtio-9p-synth.o |
| 347 | 9pfs-nested-$(CONFIG_OPEN_BY_HANDLE) += virtio-9p-handle.o |
M. Mohan Kumar | 4c793dd | 2011-12-14 13:49:28 +0530 | [diff] [blame] | 348 | 9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-proxy.o |
Aneesh Kumar K.V | 353ac78 | 2011-01-28 18:09:08 +0530 | [diff] [blame] | 349 | |
Aneesh Kumar K.V | 1c88c71 | 2011-06-01 12:35:13 +0530 | [diff] [blame] | 350 | hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y)) |
Blue Swirl | d08555c | 2010-05-14 19:31:53 +0000 | [diff] [blame] | 351 | |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 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 |
Aurelien Jarno | 903ec55 | 2010-03-29 02:12:51 +0200 | [diff] [blame] | 362 | libdis-$(CONFIG_IA64_DIS) += ia64-dis.o |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 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 |
Michael Walle | 79368f4 | 2012-03-31 19:54:20 +0200 | [diff] [blame] | 370 | libdis-$(CONFIG_LM32_DIS) += lm32-dis.o |
Blue Swirl | ad96090 | 2010-03-29 19:23:52 +0000 | [diff] [blame] | 371 | |
Stefan Hajnoczi | 94a420b | 2010-05-22 17:52:39 +0100 | [diff] [blame] | 372 | ###################################################################### |
| 373 | # trace |
| 374 | |
Daniel P. Berrange | b3d08c0 | 2010-11-12 13:20:24 +0000 | [diff] [blame] | 375 | ifeq ($(TRACE_BACKEND),dtrace) |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 376 | TRACE_H_EXTRA_DEPS=trace-dtrace.h |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 377 | endif |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 378 | trace.h: trace.h-timestamp $(TRACE_H_EXTRA_DEPS) |
Lluís Vilanova | 937b125 | 2011-09-15 22:45:42 +0200 | [diff] [blame] | 379 | trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 380 | $(call quiet-command,$(TRACETOOL) \ |
| 381 | --format=h \ |
| 382 | --backend=$(TRACE_BACKEND) \ |
| 383 | < $< > $@," GEN trace.h") |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 384 | @cmp -s $@ trace.h || cp $@ trace.h |
| 385 | |
| 386 | trace.c: trace.c-timestamp |
Lluís Vilanova | 937b125 | 2011-09-15 22:45:42 +0200 | [diff] [blame] | 387 | trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 388 | $(call quiet-command,$(TRACETOOL) \ |
| 389 | --format=c \ |
| 390 | --backend=$(TRACE_BACKEND) \ |
| 391 | < $< > $@," GEN trace.c") |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 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 |
Stefan Weil | cbae086 | 2011-04-28 17:20:25 +0200 | [diff] [blame] | 400 | # but that gets picked up by QEMU's Makefile as an external dependency |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 401 | # rule file. So we use '.dtrace' instead |
| 402 | trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp |
Lluís Vilanova | 937b125 | 2011-09-15 22:45:42 +0200 | [diff] [blame] | 403 | trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 404 | $(call quiet-command,$(TRACETOOL) \ |
| 405 | --format=d \ |
| 406 | --backend=$(TRACE_BACKEND) \ |
| 407 | < $< > $@," GEN trace-dtrace.dtrace") |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 408 | @cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace |
| 409 | |
| 410 | trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS) |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 411 | $(call quiet-command,dtrace -o $@ -G -s $<, " GEN trace-dtrace.o") |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 412 | |
Alon Levy | 44dc0ca | 2011-05-15 11:51:28 +0300 | [diff] [blame] | 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 |
Brad | 3f53458 | 2011-08-13 20:30:14 -0400 | [diff] [blame] | 418 | $(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, " lt GEN trace-dtrace.o") |
Alon Levy | 44dc0ca | 2011-05-15 11:51:28 +0300 | [diff] [blame] | 419 | endif |
| 420 | |
Lluís | edb47ec | 2011-08-31 20:30:57 +0200 | [diff] [blame] | 421 | trace/simple.o: trace/simple.c $(GENERATED_HEADERS) |
Alon Levy | f20600f | 2011-03-16 17:30:21 +0200 | [diff] [blame] | 422 | |
Lluís | 09001ee | 2011-08-31 20:30:50 +0200 | [diff] [blame] | 423 | trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o |
| 424 | ifneq ($(TRACE_BACKEND),dtrace) |
Stefan Hajnoczi | 94a420b | 2010-05-22 17:52:39 +0100 | [diff] [blame] | 425 | trace-obj-y = trace.o |
Stefan Hajnoczi | 26f7227 | 2010-05-22 19:24:51 +0100 | [diff] [blame] | 426 | endif |
Lluís | 09001ee | 2011-08-31 20:30:50 +0200 | [diff] [blame] | 427 | |
Lluís | e485897 | 2011-08-31 20:31:03 +0200 | [diff] [blame] | 428 | trace-nested-$(CONFIG_TRACE_DEFAULT) += default.o |
| 429 | |
Lluís | edb47ec | 2011-08-31 20:30:57 +0200 | [diff] [blame] | 430 | trace-nested-$(CONFIG_TRACE_SIMPLE) += simple.o |
Lluís | 09001ee | 2011-08-31 20:30:50 +0200 | [diff] [blame] | 431 | trace-obj-$(CONFIG_TRACE_SIMPLE) += qemu-timer-common.o |
Stefan Hajnoczi | 94a420b | 2010-05-22 17:52:39 +0100 | [diff] [blame] | 432 | |
Lluís | 9a82b6a | 2011-08-31 20:31:51 +0200 | [diff] [blame] | 433 | trace-nested-$(CONFIG_TRACE_STDERR) += stderr.o |
| 434 | |
Lluís | 23d15e8 | 2011-08-31 20:31:31 +0200 | [diff] [blame] | 435 | trace-nested-y += control.o |
| 436 | |
Lluís | edb47ec | 2011-08-31 20:30:57 +0200 | [diff] [blame] | 437 | trace-obj-y += $(addprefix trace/, $(trace-nested-y)) |
| 438 | |
Michael Roth | 5689dc6 | 2011-09-07 18:40:51 -0500 | [diff] [blame] | 439 | $(trace-obj-y): $(GENERATED_HEADERS) |
| 440 | |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 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 | |
Michael Roth | 2345c77 | 2011-07-19 14:50:32 -0500 | [diff] [blame] | 446 | ###################################################################### |
| 447 | # qapi |
| 448 | |
Paolo Bonzini | a020f98 | 2012-02-09 09:36:37 +0100 | [diff] [blame] | 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 |
Michael Roth | 2345c77 | 2011-07-19 14:50:32 -0500 | [diff] [blame] | 452 | qapi-obj-y = $(addprefix qapi/, $(qapi-nested-y)) |
| 453 | |
Andreas Färber | ce008c1 | 2012-03-04 21:32:36 +0100 | [diff] [blame] | 454 | common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o |
Anthony Liguori | 48a32be | 2011-09-02 12:34:48 -0500 | [diff] [blame] | 455 | common-obj-y += qmp.o hmp.o |
Anthony Liguori | e319360 | 2011-09-02 12:34:47 -0500 | [diff] [blame] | 456 | |
Andreas Färber | ce008c1 | 2012-03-04 21:32:36 +0100 | [diff] [blame] | 457 | universal-obj-y += $(qapi-obj-y) |
| 458 | |
Michael Roth | 957f1f9 | 2011-08-11 15:38:12 -0500 | [diff] [blame] | 459 | ###################################################################### |
| 460 | # guest agent |
| 461 | |
Michael Roth | d8ca685 | 2012-01-19 22:04:34 -0600 | [diff] [blame] | 462 | qga-nested-y = commands.o guest-agent-command-state.o |
| 463 | qga-nested-$(CONFIG_POSIX) += commands-posix.o channel-posix.o |
Michael Roth | bc62fa0 | 2012-01-21 16:42:27 -0600 | [diff] [blame] | 464 | qga-nested-$(CONFIG_WIN32) += commands-win32.o channel-win32.o service-win32.o |
Michael Roth | 957f1f9 | 2011-08-11 15:38:12 -0500 | [diff] [blame] | 465 | qga-obj-y = $(addprefix qga/, $(qga-nested-y)) |
Michael Roth | d8ca685 | 2012-01-19 22:04:34 -0600 | [diff] [blame] | 466 | qga-obj-y += qemu-ga.o module.o |
Michael Roth | 957f1f9 | 2011-08-11 15:38:12 -0500 | [diff] [blame] | 467 | qga-obj-$(CONFIG_WIN32) += oslib-win32.o |
Michael Roth | d8ca685 | 2012-01-19 22:04:34 -0600 | [diff] [blame] | 468 | qga-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-sockets.o qemu-option.o |
Michael Roth | 957f1f9 | 2011-08-11 15:38:12 -0500 | [diff] [blame] | 469 | |
Blue Swirl | ad96090 | 2010-03-29 19:23:52 +0000 | [diff] [blame] | 470 | vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) |
| 471 | |
| 472 | vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) |
| 473 | |
Anthony Liguori | 1401530 | 2011-08-20 22:18:37 -0500 | [diff] [blame] | 474 | QEMU_CFLAGS+=$(GLIB_CFLAGS) |
| 475 | |