Anthony Liguori | 562593a | 2009-08-04 08:24:23 -0500 | [diff] [blame] | 1 | # -*- Mode: makefile -*- |
| 2 | |
Juan Quintela | deed3cc | 2009-10-07 02:40:57 +0200 | [diff] [blame] | 3 | include ../config-host.mak |
Juan Quintela | 1f3d3c8 | 2009-10-07 02:41:02 +0200 | [diff] [blame] | 4 | include config-devices.mak |
Juan Quintela | 25be210f | 2009-10-07 02:41:00 +0200 | [diff] [blame] | 5 | include config-target.mak |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 6 | include $(SRC_PATH)/rules.mak |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 7 | |
bellard | 0b0babc | 2005-01-03 23:38:40 +0000 | [diff] [blame] | 8 | TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH) |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 9 | VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw |
Juan Quintela | 6c90361 | 2009-08-03 14:46:23 +0200 | [diff] [blame] | 10 | QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 11 | |
bellard | 16e9b7d | 2003-10-27 21:09:52 +0000 | [diff] [blame] | 12 | ifdef CONFIG_USER_ONLY |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 13 | # user emulator name |
| 14 | QEMU_PROG=qemu-$(TARGET_ARCH2) |
bellard | 16e9b7d | 2003-10-27 21:09:52 +0000 | [diff] [blame] | 15 | else |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 16 | # system emulator name |
| 17 | ifeq ($(TARGET_ARCH), i386) |
| 18 | QEMU_PROG=qemu$(EXESUF) |
| 19 | else |
| 20 | QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF) |
bellard | de5eaa6 | 2003-11-16 23:18:17 +0000 | [diff] [blame] | 21 | endif |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 22 | endif |
bellard | 728c9fd | 2004-01-05 00:08:14 +0000 | [diff] [blame] | 23 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 24 | PROGS=$(QEMU_PROG) |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 25 | |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 26 | LIBS+=-lm |
| 27 | |
Juan Quintela | b248a85 | 2009-08-03 14:46:54 +0200 | [diff] [blame] | 28 | kvm.o kvm-all.o: QEMU_CFLAGS+=$(KVM_CFLAGS) |
aliguori | 7ba1e61 | 2008-11-05 16:04:33 +0000 | [diff] [blame] | 29 | |
Juan Quintela | 91880d9 | 2009-10-07 02:41:01 +0200 | [diff] [blame] | 30 | config-target.h: config-target.h-timestamp |
| 31 | config-target.h-timestamp: config-target.mak |
| 32 | |
Juan Quintela | fe0d4d3 | 2009-10-07 02:41:03 +0200 | [diff] [blame] | 33 | config-devices.h: config-devices.h-timestamp |
| 34 | config-devices.h-timestamp: config-devices.mak |
| 35 | |
| 36 | all: config-target.h config-devices.h |
Juan Quintela | 91880d9 | 2009-10-07 02:41:01 +0200 | [diff] [blame] | 37 | $(call quiet-command, $(MAKE) $(PROGS),) |
| 38 | |
Paul Brook | c2fb263 | 2009-05-25 18:54:53 +0100 | [diff] [blame] | 39 | # Dummy command so that make thinks it has done something |
| 40 | @true |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 41 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 42 | ######################################################### |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 43 | # cpu emulator library |
Blue Swirl | c2b023b | 2009-09-20 19:20:05 +0000 | [diff] [blame] | 44 | libobj-y = exec.o translate-all.o cpu-exec.o translate.o |
Blue Swirl | 96e132e | 2009-09-20 19:06:34 +0000 | [diff] [blame] | 45 | libobj-y += tcg/tcg.o |
Juan Quintela | d6b3893 | 2009-08-03 14:46:42 +0200 | [diff] [blame] | 46 | libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o |
| 47 | libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o |
Juan Quintela | c9e0df7 | 2009-06-25 00:08:00 +0200 | [diff] [blame] | 48 | libobj-y += op_helper.o helper.o |
Juan Quintela | 471857d | 2009-08-03 14:46:52 +0200 | [diff] [blame] | 49 | libobj-$(CONFIG_NEED_MMU) += mmu.o |
Juan Quintela | e18ea86 | 2009-08-03 14:47:04 +0200 | [diff] [blame] | 50 | libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o |
| 51 | libobj-$(TARGET_ALPHA) += alpha_palcode.o |
j_mayer | cf6c1b1 | 2007-04-05 20:46:02 +0000 | [diff] [blame] | 52 | |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 53 | # NOTE: the disassembler code is only needed for debugging |
Juan Quintela | c9e0df7 | 2009-06-25 00:08:00 +0200 | [diff] [blame] | 54 | libobj-y += disas.o |
Juan Quintela | 6465602 | 2009-08-03 14:46:53 +0200 | [diff] [blame] | 55 | libobj-$(CONFIG_ALPHA_DIS) += alpha-dis.o |
| 56 | libobj-$(CONFIG_ARM_DIS) += arm-dis.o |
| 57 | libobj-$(CONFIG_CRIS_DIS) += cris-dis.o |
| 58 | libobj-$(CONFIG_HPPA_DIS) += hppa-dis.o |
| 59 | libobj-$(CONFIG_I386_DIS) += i386-dis.o |
| 60 | libobj-$(CONFIG_M68K_DIS) += m68k-dis.o |
| 61 | libobj-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o |
| 62 | libobj-$(CONFIG_MIPS_DIS) += mips-dis.o |
| 63 | libobj-$(CONFIG_PPC_DIS) += ppc-dis.o |
| 64 | libobj-$(CONFIG_S390_DIS) += s390-dis.o |
| 65 | libobj-$(CONFIG_SH4_DIS) += sh4-dis.o |
| 66 | libobj-$(CONFIG_SPARC_DIS) += sparc-dis.o |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 67 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 68 | # libqemu |
| 69 | |
Juan Quintela | c9e0df7 | 2009-06-25 00:08:00 +0200 | [diff] [blame] | 70 | libqemu.a: $(libobj-y) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 71 | |
aurel32 | 86e840e | 2008-12-07 15:21:23 +0000 | [diff] [blame] | 72 | translate.o: translate.c cpu.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 73 | |
aurel32 | 86e840e | 2008-12-07 15:21:23 +0000 | [diff] [blame] | 74 | translate-all.o: translate-all.c cpu.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 75 | |
aurel32 | 86e840e | 2008-12-07 15:21:23 +0000 | [diff] [blame] | 76 | tcg/tcg.o: cpu.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 77 | |
| 78 | # HELPER_CFLAGS is used for all the code compiled with static register |
| 79 | # variables |
Juan Quintela | 864de24 | 2009-08-03 14:46:55 +0200 | [diff] [blame] | 80 | op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 81 | |
Juan Quintela | c81da56 | 2009-08-03 14:46:24 +0200 | [diff] [blame] | 82 | # Note: this is a workaround. The real fix is to avoid compiling |
| 83 | # cpu_signal_handler() in cpu-exec.c. |
| 84 | signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
| 85 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 86 | ######################################################### |
| 87 | # Linux user emulator target |
| 88 | |
| 89 | ifdef CONFIG_LINUX_USER |
| 90 | |
aurel32 | 3ebdd11 | 2008-04-09 06:53:01 +0000 | [diff] [blame] | 91 | VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 92 | QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) |
Blue Swirl | 3702208 | 2009-08-15 07:51:59 +0000 | [diff] [blame] | 93 | obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \ |
Juan Quintela | 3d0f151 | 2009-10-07 02:41:04 +0200 | [diff] [blame] | 94 | elfload.o linuxload.o uaccess.o gdbstub.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 95 | |
Juan Quintela | 943e0a3 | 2009-06-25 00:08:10 +0200 | [diff] [blame] | 96 | obj-$(TARGET_HAS_BFLT) += flatload.o |
Juan Quintela | 943e0a3 | 2009-06-25 00:08:10 +0200 | [diff] [blame] | 97 | obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 98 | |
Juan Quintela | e18ea86 | 2009-08-03 14:47:04 +0200 | [diff] [blame] | 99 | obj-$(TARGET_I386) += vm86.o |
Juan Quintela | 1c87267 | 2009-07-16 18:34:03 +0200 | [diff] [blame] | 100 | |
Blue Swirl | e27b27b | 2009-08-16 07:39:33 +0000 | [diff] [blame] | 101 | obj-i386-y += ioport-user.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 102 | |
Juan Quintela | ed69c30 | 2009-08-03 14:47:01 +0200 | [diff] [blame] | 103 | nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o |
Juan Quintela | 9c1dd99 | 2009-07-16 17:57:04 +0200 | [diff] [blame] | 104 | nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o |
Juan Quintela | 1c87267 | 2009-07-16 18:34:03 +0200 | [diff] [blame] | 105 | obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y)) |
| 106 | obj-arm-y += arm-semi.o |
| 107 | |
| 108 | obj-m68k-y += m68k-sim.o m68k-semi.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 109 | |
Blue Swirl | add1615 | 2009-09-27 16:26:02 +0000 | [diff] [blame] | 110 | ARLIBS=../libuser/libuser.a libqemu.a |
| 111 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 112 | endif #CONFIG_LINUX_USER |
| 113 | |
| 114 | ######################################################### |
| 115 | # Darwin user emulator target |
| 116 | |
| 117 | ifdef CONFIG_DARWIN_USER |
| 118 | |
| 119 | VPATH+=:$(SRC_PATH)/darwin-user |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 120 | QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 121 | |
| 122 | # Leave some space for the regular program loading zone |
| 123 | LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000 |
| 124 | |
| 125 | LIBS+=-lmx |
| 126 | |
Juan Quintela | a8e492c | 2009-06-25 00:08:01 +0200 | [diff] [blame] | 127 | obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \ |
Juan Quintela | 3d0f151 | 2009-10-07 02:41:04 +0200 | [diff] [blame] | 128 | gdbstub.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 129 | |
Blue Swirl | e27b27b | 2009-08-16 07:39:33 +0000 | [diff] [blame] | 130 | obj-i386-y += ioport-user.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 131 | |
Blue Swirl | add1615 | 2009-09-27 16:26:02 +0000 | [diff] [blame] | 132 | ARLIBS=../libuser/libuser.a libqemu.a |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 133 | |
| 134 | endif #CONFIG_DARWIN_USER |
| 135 | |
| 136 | ######################################################### |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 137 | # BSD user emulator target |
| 138 | |
| 139 | ifdef CONFIG_BSD_USER |
| 140 | |
| 141 | VPATH+=:$(SRC_PATH)/bsd-user |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 142 | QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH) |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 143 | |
Blue Swirl | 3702208 | 2009-08-15 07:51:59 +0000 | [diff] [blame] | 144 | obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \ |
Juan Quintela | 3d0f151 | 2009-10-07 02:41:04 +0200 | [diff] [blame] | 145 | gdbstub.o uaccess.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 146 | |
Blue Swirl | e27b27b | 2009-08-16 07:39:33 +0000 | [diff] [blame] | 147 | obj-i386-y += ioport-user.o |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 148 | |
Blue Swirl | add1615 | 2009-09-27 16:26:02 +0000 | [diff] [blame] | 149 | ARLIBS=../libuser/libuser.a libqemu.a |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 150 | |
| 151 | endif #CONFIG_BSD_USER |
| 152 | |
| 153 | ######################################################### |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 154 | # System emulator target |
Juan Quintela | 76dfdd2 | 2009-08-03 14:46:41 +0200 | [diff] [blame] | 155 | ifdef CONFIG_SOFTMMU |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 156 | |
Kevin Wolf | 4f999d0 | 2009-10-22 17:54:37 +0200 | [diff] [blame] | 157 | obj-y = vl.o async.o monitor.o pci.o machine.o gdbstub.o |
aliguori | 1fd31ad | 2008-12-18 01:56:22 +0000 | [diff] [blame] | 158 | # virtio has to be here due to weird dependency between PCI and virtio-net. |
| 159 | # need to fix this properly |
Michael S. Tsirkin | 3987e1c | 2009-08-10 22:30:24 +0300 | [diff] [blame] | 160 | obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o virtio-pci.o |
Juan Quintela | a8e492c | 2009-06-25 00:08:01 +0200 | [diff] [blame] | 161 | obj-$(CONFIG_KVM) += kvm.o kvm-all.o |
Juan Quintela | 185c66c | 2009-10-07 02:41:06 +0200 | [diff] [blame] | 162 | obj-$(CONFIG_ISA_MMIO) += isa_mmio.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 163 | LIBS+=-lz |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 164 | |
Juan Quintela | b6271b4 | 2009-06-25 00:08:12 +0200 | [diff] [blame] | 165 | sound-obj-y = |
| 166 | sound-obj-$(CONFIG_SB16) += sb16.o |
| 167 | sound-obj-$(CONFIG_ES1370) += es1370.o |
| 168 | sound-obj-$(CONFIG_AC97) += ac97.o |
| 169 | sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o |
| 170 | sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o |
malc | 57a943c | 2009-06-30 18:46:46 +0400 | [diff] [blame] | 171 | sound-obj-$(CONFIG_CS4231A) += cs4231a.o |
Juan Quintela | b6271b4 | 2009-06-25 00:08:12 +0200 | [diff] [blame] | 172 | |
Juan Quintela | ed69c30 | 2009-08-03 14:47:01 +0200 | [diff] [blame] | 173 | adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0 |
bellard | 85571bc | 2004-11-07 18:04:02 +0000 | [diff] [blame] | 174 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 175 | QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 176 | QEMU_CFLAGS += $(VNC_SASL_CFLAGS) |
aliguori | 2f9606b | 2009-03-06 20:27:28 +0000 | [diff] [blame] | 177 | |
aliguori | e37630c | 2009-04-22 15:19:10 +0000 | [diff] [blame] | 178 | # xen backend driver support |
Juan Quintela | 943e0a3 | 2009-06-25 00:08:10 +0200 | [diff] [blame] | 179 | obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o |
aliguori | e37630c | 2009-04-22 15:19:10 +0000 | [diff] [blame] | 180 | |
bellard | a594cfb | 2005-11-06 16:13:29 +0000 | [diff] [blame] | 181 | # USB layer |
Juan Quintela | 6425758 | 2009-10-07 02:41:05 +0200 | [diff] [blame] | 182 | obj-$(CONFIG_USB_OHCI) += usb-ohci.o |
bellard | a594cfb | 2005-11-06 16:13:29 +0000 | [diff] [blame] | 183 | |
pbrook | a41b2ff | 2006-02-05 04:14:41 +0000 | [diff] [blame] | 184 | # PCI network cards |
Juan Quintela | a8e492c | 2009-06-25 00:08:01 +0200 | [diff] [blame] | 185 | obj-y += eepro100.o |
Juan Quintela | a8e492c | 2009-06-25 00:08:01 +0200 | [diff] [blame] | 186 | obj-y += pcnet.o |
| 187 | obj-y += rtl8139.o |
| 188 | obj-y += e1000.o |
pbrook | a41b2ff | 2006-02-05 04:14:41 +0000 | [diff] [blame] | 189 | |
bellard | a541f29 | 2004-04-12 20:39:29 +0000 | [diff] [blame] | 190 | # Hardware support |
Juan Quintela | 4c3df0e | 2009-10-07 16:56:24 +0200 | [diff] [blame] | 191 | obj-i386-y = ide/core.o ide/qdev.o ide/isa.o ide/pci.o ide/piix.o |
Gerd Hoffmann | feef310 | 2009-09-15 20:04:24 +0000 | [diff] [blame] | 192 | obj-i386-y += pckbd.o $(sound-obj-y) dma.o |
Juan Quintela | 7632391 | 2009-08-31 16:07:16 +0200 | [diff] [blame] | 193 | obj-i386-y += vga.o vga-pci.o vga-isa.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 194 | obj-i386-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o |
| 195 | obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o |
| 196 | obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o |
Markus Armbruster | 09aaa16 | 2009-08-21 10:31:34 +0200 | [diff] [blame] | 197 | obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o |
Gerd Hoffmann | 9453c5b | 2009-09-10 11:43:33 +0200 | [diff] [blame] | 198 | obj-i386-y += ne2000-isa.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 199 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 200 | # shared objects |
Gerd Hoffmann | feef310 | 2009-09-15 20:04:24 +0000 | [diff] [blame] | 201 | obj-ppc-y = ppc.o ide/core.o ide/qdev.o ide/isa.o ide/pci.o ide/macio.o |
Juan Quintela | 4c3df0e | 2009-10-07 16:56:24 +0200 | [diff] [blame] | 202 | obj-ppc-y += ide/cmd646.o |
Blue Swirl | 5c637a2 | 2009-09-14 18:34:54 +0000 | [diff] [blame] | 203 | obj-ppc-y += vga.o vga-pci.o $(sound-obj-y) dma.o openpic.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 204 | # PREP target |
| 205 | obj-ppc-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o |
Gerd Hoffmann | 9453c5b | 2009-09-10 11:43:33 +0200 | [diff] [blame] | 206 | obj-ppc-y += prep_pci.o ppc_prep.o ne2000-isa.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 207 | # Mac shared devices |
| 208 | obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o |
| 209 | # OldWorld PowerMac |
| 210 | obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o |
| 211 | # NewWorld PowerMac |
| 212 | obj-ppc-y += unin_pci.o ppc_newworld.o |
| 213 | # PowerPC 4xx boards |
| 214 | obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o |
| 215 | obj-ppc-y += ppc440.o ppc440_bamboo.o |
| 216 | # PowerPC E500 boards |
| 217 | obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o |
| 218 | obj-ppc-$(CONFIG_KVM) += kvm_ppc.o |
Juan Quintela | 3f0855b | 2009-07-27 16:12:52 +0200 | [diff] [blame] | 219 | obj-ppc-$(CONFIG_FDT) += device_tree.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 220 | |
| 221 | obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o |
| 222 | obj-mips-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o |
Juan Quintela | 79b97bf | 2009-08-31 16:07:18 +0200 | [diff] [blame] | 223 | obj-mips-y += vga-pci.o vga-isa.o vga-isa-mm.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 224 | obj-mips-y += g364fb.o jazz_led.o dp8393x.o |
Juan Quintela | 4c3df0e | 2009-10-07 16:56:24 +0200 | [diff] [blame] | 225 | obj-mips-y += ide/core.o ide/qdev.o ide/isa.o ide/pci.o ide/piix.o |
Gerd Hoffmann | ec82026 | 2009-08-20 15:22:19 +0200 | [diff] [blame] | 226 | obj-mips-y += gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o |
Blue Swirl | 5c637a2 | 2009-09-14 18:34:54 +0000 | [diff] [blame] | 227 | obj-mips-y += piix4.o parallel.o cirrus_vga.o pcspk.o $(sound-obj-y) |
Gerd Hoffmann | 9453c5b | 2009-09-10 11:43:33 +0200 | [diff] [blame] | 228 | obj-mips-y += mipsnet.o ne2000-isa.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 229 | obj-mips-y += pflash_cfi01.o |
| 230 | obj-mips-y += vmware_vga.o |
| 231 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 232 | obj-microblaze-y = petalogix_s3adsp1800_mmu.o |
Edgar E. Iglesias | 72b675c | 2009-05-20 21:17:31 +0200 | [diff] [blame] | 233 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 234 | obj-microblaze-y += microblaze_pic_cpu.o |
| 235 | obj-microblaze-y += xilinx_intc.o |
| 236 | obj-microblaze-y += xilinx_timer.o |
| 237 | obj-microblaze-y += xilinx_uartlite.o |
| 238 | obj-microblaze-y += xilinx_ethlite.o |
| 239 | |
| 240 | obj-microblaze-y += pflash_cfi02.o |
| 241 | |
Juan Quintela | 3f0855b | 2009-07-27 16:12:52 +0200 | [diff] [blame] | 242 | obj-microblaze-$(CONFIG_FDT) += device_tree.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 243 | |
edgar_igl | 10c144e | 2009-01-07 12:19:50 +0000 | [diff] [blame] | 244 | # Boards |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 245 | obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o |
edgar_igl | 10c144e | 2009-01-07 12:19:50 +0000 | [diff] [blame] | 246 | |
| 247 | # IO blocks |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 248 | obj-cris-y += etraxfs_dma.o |
| 249 | obj-cris-y += etraxfs_pic.o |
| 250 | obj-cris-y += etraxfs_eth.o |
| 251 | obj-cris-y += etraxfs_timer.o |
| 252 | obj-cris-y += etraxfs_ser.o |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 253 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 254 | obj-cris-y += pflash_cfi02.o |
| 255 | |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 256 | ifeq ($(TARGET_ARCH), sparc64) |
Gerd Hoffmann | feef310 | 2009-09-15 20:04:24 +0000 | [diff] [blame] | 257 | obj-sparc-y = sun4u.o pckbd.o apb_pci.o |
Juan Quintela | 4c3df0e | 2009-10-07 16:56:24 +0200 | [diff] [blame] | 258 | obj-sparc-y += ide/core.o ide/qdev.o ide/pci.o ide/cmd646.o |
Juan Quintela | 47d37dd | 2009-08-31 16:07:15 +0200 | [diff] [blame] | 259 | obj-sparc-y += vga.o vga-pci.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 260 | obj-sparc-y += fdc.o mc146818rtc.o serial.o |
| 261 | obj-sparc-y += cirrus_vga.o parallel.o |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 262 | else |
Gerd Hoffmann | 94e1a91 | 2009-10-21 15:25:33 +0200 | [diff] [blame] | 263 | obj-sparc-y = sun4m.o lance.o tcx.o iommu.o slavio_intctl.o |
Blue Swirl | 5c637a2 | 2009-09-14 18:34:54 +0000 | [diff] [blame] | 264 | obj-sparc-y += slavio_timer.o slavio_misc.o fdc.o sparc32_dma.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 265 | obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 266 | endif |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 267 | |
| 268 | obj-arm-y = integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o |
| 269 | obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o |
| 270 | obj-arm-y += versatile_pci.o |
| 271 | obj-arm-y += realview_gic.o realview.o arm_sysctl.o mpcore.o |
| 272 | obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o |
| 273 | obj-arm-y += pl061.o |
| 274 | obj-arm-y += arm-semi.o |
| 275 | obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o |
| 276 | obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o |
| 277 | obj-arm-y += pflash_cfi01.o gumstix.o |
Blue Swirl | 5c637a2 | 2009-09-14 18:34:54 +0000 | [diff] [blame] | 278 | obj-arm-y += zaurus.o ide/core.o ide/microdrive.o serial.o spitz.o tosa.o tc6393xb.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 279 | obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o |
| 280 | obj-arm-y += omap2.o omap_dss.o soc_dma.o |
| 281 | obj-arm-y += omap_sx1.o palm.o tsc210x.o |
| 282 | obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o |
| 283 | obj-arm-y += mst_fpga.o mainstone.o |
Andrzej Zaborowski | ef07b49 | 2009-08-23 15:44:15 +0200 | [diff] [blame] | 284 | obj-arm-y += musicpal.o pflash_cfi02.o bitbang_i2c.o marvell_88w8618_audio.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 285 | obj-arm-y += framebuffer.o |
| 286 | obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o |
| 287 | obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o |
| 288 | obj-arm-y += syborg_virtio.o |
| 289 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 290 | obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o |
| 291 | obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o |
Blue Swirl | 5c637a2 | 2009-09-14 18:34:54 +0000 | [diff] [blame] | 292 | obj-sh4-y += ide/core.o ide/mmio.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 293 | |
| 294 | obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o |
| 295 | obj-m68k-y += m68k-semi.o dummy_m68k.o |
| 296 | |
Juan Quintela | f622d8a | 2009-08-03 14:47:10 +0200 | [diff] [blame] | 297 | main.o vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) |
bellard | 6e1b3e4 | 2006-08-17 17:41:26 +0000 | [diff] [blame] | 298 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 299 | vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) |
Anthony Liguori | 537fe2d | 2009-06-16 15:17:22 -0500 | [diff] [blame] | 300 | |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 301 | vl.o: qemu-options.h |
| 302 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 303 | monitor.o: qemu-monitor.h |
| 304 | |
Juan Quintela | 1639448 | 2009-07-16 18:34:04 +0200 | [diff] [blame] | 305 | ARLIBS=../libqemu_common.a libqemu.a $(HWLIB) |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 306 | |
Juan Quintela | 76dfdd2 | 2009-08-03 14:46:41 +0200 | [diff] [blame] | 307 | endif # CONFIG_SOFTMMU |
bellard | 00a67ba | 2006-10-28 12:19:07 +0000 | [diff] [blame] | 308 | |
Juan Quintela | 3d0f151 | 2009-10-07 02:41:04 +0200 | [diff] [blame] | 309 | obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o |
| 310 | |
Juan Quintela | 1639448 | 2009-07-16 18:34:04 +0200 | [diff] [blame] | 311 | $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS) |
| 312 | $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)) |
| 313 | |
| 314 | |
pbrook | 56aebc8 | 2008-10-11 17:55:29 +0000 | [diff] [blame] | 315 | gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh |
aurel32 | 1aef4c5 | 2009-03-28 23:46:00 +0000 | [diff] [blame] | 316 | $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@") |
pbrook | 56aebc8 | 2008-10-11 17:55:29 +0000 | [diff] [blame] | 317 | |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 318 | qemu-options.h: $(SRC_PATH)/qemu-options.hx |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 319 | $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 320 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 321 | qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx |
| 322 | $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
| 323 | |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 324 | clean: |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 325 | rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o |
Juan Quintela | befb031 | 2009-09-21 15:10:55 +0200 | [diff] [blame] | 326 | rm -f *.d */*.d tcg/*.o ide/*.o |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 327 | rm -f qemu-options.h qemu-monitor.h gdbstub-xml.c |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 328 | |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 329 | install: all |
bellard | 9b14bb0 | 2004-03-26 22:43:34 +0000 | [diff] [blame] | 330 | ifneq ($(PROGS),) |
aliguori | 1625af8 | 2009-04-05 17:41:02 +0000 | [diff] [blame] | 331 | $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)" |
bellard | 9b14bb0 | 2004-03-26 22:43:34 +0000 | [diff] [blame] | 332 | endif |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 333 | |
j_mayer | 2f96c28 | 2007-10-28 13:07:12 +0000 | [diff] [blame] | 334 | # Include automatically generated dependency files |
| 335 | -include $(wildcard *.d */*.d) |