blob: 18826bb3567e40a83bfe1022ce1a2e6523fb9c9a [file] [log] [blame]
Anthony Liguori562593a2009-08-04 08:24:23 -05001# -*- Mode: makefile -*-
2
Paul Brooka992fe32009-11-22 16:25:30 +00003GENERATED_HEADERS = config-target.h
Paolo Bonzini98c85732010-04-19 18:59:30 +00004CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
Juan Quintelaf527c572009-11-05 17:19:57 +01005
Juan Quinteladeed3cc2009-10-07 02:40:57 +02006include ../config-host.mak
Juan Quintela1f3d3c82009-10-07 02:41:02 +02007include config-devices.mak
Juan Quintela25be210f2009-10-07 02:41:00 +02008include config-target.mak
aliguori17759182009-01-21 18:12:52 +00009include $(SRC_PATH)/rules.mak
Andreas Färber0e8c9212010-01-06 20:24:05 +010010ifneq ($(HWDIR),)
11include $(HWDIR)/config.mak
12endif
bellard626df762003-08-10 21:39:31 +000013
bellard0b0babc2005-01-03 23:38:40 +000014TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
Paolo Bonzini076d2472009-12-21 10:06:55 +010015$(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw)
Juan Quintela6c903612009-08-03 14:46:23 +020016QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H
bellard1e43adf2003-09-30 20:54:24 +000017
Andreas Färber0e8c9212010-01-06 20:24:05 +010018include $(SRC_PATH)/Makefile.objs
19
bellard16e9b7d2003-10-27 21:09:52 +000020ifdef CONFIG_USER_ONLY
bellard40293e52008-01-31 11:32:10 +000021# user emulator name
22QEMU_PROG=qemu-$(TARGET_ARCH2)
bellard16e9b7d2003-10-27 21:09:52 +000023else
bellard40293e52008-01-31 11:32:10 +000024# system emulator name
25ifeq ($(TARGET_ARCH), i386)
26QEMU_PROG=qemu$(EXESUF)
27else
28QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
bellardde5eaa62003-11-16 23:18:17 +000029endif
bellard40293e52008-01-31 11:32:10 +000030endif
bellard728c9fd2004-01-05 00:08:14 +000031
bellard40293e52008-01-31 11:32:10 +000032PROGS=$(QEMU_PROG)
bellard626df762003-08-10 21:39:31 +000033
bellard626df762003-08-10 21:39:31 +000034LIBS+=-lm
35
Jan Kiszka0e1a2752010-04-06 13:31:29 +020036kvm.o kvm-all.o vhost.o vhost_net.o: QEMU_CFLAGS+=$(KVM_CFLAGS)
aliguori7ba1e612008-11-05 16:04:33 +000037
Juan Quintela91880d92009-10-07 02:41:01 +020038config-target.h: config-target.h-timestamp
39config-target.h-timestamp: config-target.mak
40
Juan Quintelaf527c572009-11-05 17:19:57 +010041all: $(PROGS)
Juan Quintela91880d92009-10-07 02:41:01 +020042
Paul Brookc2fb2632009-05-25 18:54:53 +010043# Dummy command so that make thinks it has done something
44 @true
bellard626df762003-08-10 21:39:31 +000045
bellard40293e52008-01-31 11:32:10 +000046#########################################################
bellard626df762003-08-10 21:39:31 +000047# cpu emulator library
Blue Swirlc2b023b2009-09-20 19:20:05 +000048libobj-y = exec.o translate-all.o cpu-exec.o translate.o
Blue Swirl96e132e2009-09-20 19:06:34 +000049libobj-y += tcg/tcg.o
Juan Quintelad6b38932009-08-03 14:46:42 +020050libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o
51libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o
Juan Quintelac9e0df72009-06-25 00:08:00 +020052libobj-y += op_helper.o helper.o
Andre Przywarac6dc6f62010-03-11 14:38:55 +010053ifeq ($(TARGET_BASE_ARCH), i386)
54libobj-y += cpuid.o
55endif
Juan Quintela471857d2009-08-03 14:46:52 +020056libobj-$(CONFIG_NEED_MMU) += mmu.o
Juan Quintelae18ea862009-08-03 14:47:04 +020057libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o
j_mayercf6c1b12007-04-05 20:46:02 +000058
Juan Quintelac9e0df72009-06-25 00:08:00 +020059libobj-y += disas.o
bellard626df762003-08-10 21:39:31 +000060
Andreas Färber0e8c9212010-01-06 20:24:05 +010061$(libobj-y): $(GENERATED_HEADERS)
bellard40293e52008-01-31 11:32:10 +000062
Andreas Färber0e8c9212010-01-06 20:24:05 +010063# libqemu
bellard40293e52008-01-31 11:32:10 +000064
aurel3286e840e2008-12-07 15:21:23 +000065translate.o: translate.c cpu.h
bellard40293e52008-01-31 11:32:10 +000066
aurel3286e840e2008-12-07 15:21:23 +000067translate-all.o: translate-all.c cpu.h
bellard40293e52008-01-31 11:32:10 +000068
aurel3286e840e2008-12-07 15:21:23 +000069tcg/tcg.o: cpu.h
bellard40293e52008-01-31 11:32:10 +000070
71# HELPER_CFLAGS is used for all the code compiled with static register
72# variables
Juan Quintela864de242009-08-03 14:46:55 +020073op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
bellard40293e52008-01-31 11:32:10 +000074
Juan Quintelac81da562009-08-03 14:46:24 +020075# Note: this is a workaround. The real fix is to avoid compiling
76# cpu_signal_handler() in cpu-exec.c.
77signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
78
bellard40293e52008-01-31 11:32:10 +000079#########################################################
80# Linux user emulator target
81
82ifdef CONFIG_LINUX_USER
83
Paolo Bonzini076d2472009-12-21 10:06:55 +010084$(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR))
85
Juan Quintelaa558ee12009-08-03 14:46:21 +020086QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
Blue Swirl37022082009-08-15 07:51:59 +000087obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
Richard Henderson680c8772010-05-21 10:37:52 -070088 elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o \
89 qemu-malloc.o
Blue Swirl5ba65312009-08-15 07:52:19 +000090
Juan Quintela943e0a32009-06-25 00:08:10 +020091obj-$(TARGET_HAS_BFLT) += flatload.o
bellard40293e52008-01-31 11:32:10 +000092
Juan Quintelae18ea862009-08-03 14:47:04 +020093obj-$(TARGET_I386) += vm86.o
Juan Quintela1c872672009-07-16 18:34:03 +020094
Blue Swirle27b27b2009-08-16 07:39:33 +000095obj-i386-y += ioport-user.o
Blue Swirl5ba65312009-08-15 07:52:19 +000096
Juan Quintelaed69c302009-08-03 14:47:01 +020097nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
Juan Quintela9c1dd992009-07-16 17:57:04 +020098nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
Juan Quintela1c872672009-07-16 18:34:03 +020099obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
100obj-arm-y += arm-semi.o
101
102obj-m68k-y += m68k-sim.o m68k-semi.o
bellard40293e52008-01-31 11:32:10 +0000103
Andreas Färber0e8c9212010-01-06 20:24:05 +0100104$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
105
106obj-y += $(addprefix ../libuser/, $(user-obj-y))
Blue Swirl4d904532010-03-21 08:28:47 +0000107obj-y += $(addprefix ../libdis-user/, $(libdis-y))
Andreas Färber0e8c9212010-01-06 20:24:05 +0100108obj-y += $(libobj-y)
Blue Swirladd16152009-09-27 16:26:02 +0000109
bellard40293e52008-01-31 11:32:10 +0000110endif #CONFIG_LINUX_USER
111
112#########################################################
113# Darwin user emulator target
114
115ifdef CONFIG_DARWIN_USER
116
Paolo Bonzini076d2472009-12-21 10:06:55 +0100117$(call set-vpath, $(SRC_PATH)/darwin-user)
118
Juan Quintelaa558ee12009-08-03 14:46:21 +0200119QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
bellard40293e52008-01-31 11:32:10 +0000120
121# Leave some space for the regular program loading zone
122LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
123
124LIBS+=-lmx
125
Juan Quintelaa8e492c2009-06-25 00:08:01 +0200126obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
Juan Quintela3d0f1512009-10-07 02:41:04 +0200127 gdbstub.o
Blue Swirl5ba65312009-08-15 07:52:19 +0000128
Blue Swirle27b27b2009-08-16 07:39:33 +0000129obj-i386-y += ioport-user.o
bellard40293e52008-01-31 11:32:10 +0000130
Andreas Färber0e8c9212010-01-06 20:24:05 +0100131$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
132
133obj-y += $(addprefix ../libuser/, $(user-obj-y))
Blue Swirl4d904532010-03-21 08:28:47 +0000134obj-y += $(addprefix ../libdis-user/, $(libdis-y))
Andreas Färber0e8c9212010-01-06 20:24:05 +0100135obj-y += $(libobj-y)
bellard40293e52008-01-31 11:32:10 +0000136
137endif #CONFIG_DARWIN_USER
138
139#########################################################
blueswir184778502008-10-26 20:33:16 +0000140# BSD user emulator target
141
142ifdef CONFIG_BSD_USER
143
Paolo Bonzini076d2472009-12-21 10:06:55 +0100144$(call set-vpath, $(SRC_PATH)/bsd-user)
145
Juan Quintelaa558ee12009-08-03 14:46:21 +0200146QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
blueswir184778502008-10-26 20:33:16 +0000147
Blue Swirl37022082009-08-15 07:51:59 +0000148obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
Juan Quintela3d0f1512009-10-07 02:41:04 +0200149 gdbstub.o uaccess.o
Blue Swirl5ba65312009-08-15 07:52:19 +0000150
Blue Swirle27b27b2009-08-16 07:39:33 +0000151obj-i386-y += ioport-user.o
blueswir184778502008-10-26 20:33:16 +0000152
Andreas Färber0e8c9212010-01-06 20:24:05 +0100153$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
154
155obj-y += $(addprefix ../libuser/, $(user-obj-y))
Blue Swirl4d904532010-03-21 08:28:47 +0000156obj-y += $(addprefix ../libdis-user/, $(libdis-y))
Andreas Färber0e8c9212010-01-06 20:24:05 +0100157obj-y += $(libobj-y)
blueswir184778502008-10-26 20:33:16 +0000158
159endif #CONFIG_BSD_USER
160
161#########################################################
bellard40293e52008-01-31 11:32:10 +0000162# System emulator target
Juan Quintela76dfdd22009-08-03 14:46:41 +0200163ifdef CONFIG_SOFTMMU
bellard40293e52008-01-31 11:32:10 +0000164
Blue Swirl04c9a0c2010-04-19 19:46:13 +0000165obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
aliguori1fd31ad2008-12-18 01:56:22 +0000166# virtio has to be here due to weird dependency between PCI and virtio-net.
167# need to fix this properly
Alexander Grafe9d0fc72010-04-06 12:11:43 +0200168obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
169obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
Michael S. Tsirkind5970052010-03-17 13:08:17 +0200170obj-y += vhost_net.o
171obj-$(CONFIG_VHOST_NET) += vhost.o
Venkateswararao Jujjuri (JV)758e8e32010-06-14 13:34:41 -0700172obj-$(CONFIG_VIRTFS) += virtio-9p.o
Blue Swirl51464fa2010-02-20 09:27:38 +0000173obj-y += rwhandler.o
Juan Quintelaa8e492c2009-06-25 00:08:01 +0200174obj-$(CONFIG_KVM) += kvm.o kvm-all.o
Paolo Bonzini98c85732010-04-19 18:59:30 +0000175obj-$(CONFIG_NO_KVM) += kvm-stub.o
bellard40293e52008-01-31 11:32:10 +0000176LIBS+=-lz
bellard4fb240a2007-11-07 19:24:02 +0000177
Juan Quintelaa558ee12009-08-03 14:46:21 +0200178QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
Juan Quintelaa558ee12009-08-03 14:46:21 +0200179QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
Corentin Chary2f6f5c72010-07-07 20:57:49 +0200180QEMU_CFLAGS += $(VNC_JPEG_CFLAGS)
Corentin Charyefe556a2010-07-07 20:57:56 +0200181QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
aliguori2f9606b2009-03-06 20:27:28 +0000182
aliguorie37630c2009-04-22 15:19:10 +0000183# xen backend driver support
Juan Quintela943e0a32009-06-25 00:08:10 +0200184obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
aliguorie37630c2009-04-22 15:19:10 +0000185
Paul Brooka67ba3b2010-04-04 21:18:26 +0100186# USB layer
187obj-$(CONFIG_USB_OHCI) += usb-ohci.o
188
pbrooka41b2ff2006-02-05 04:14:41 +0000189# PCI network cards
Juan Quintelaa8e492c2009-06-25 00:08:01 +0200190obj-y += rtl8139.o
191obj-y += e1000.o
pbrooka41b2ff2006-02-05 04:14:41 +0000192
Cam Macdonell6cbf4c82010-07-27 10:54:13 -0600193# Inter-VM PCI shared memory
Cam Macdonell3dcbf8f2010-08-14 17:47:31 -0600194obj-$(CONFIG_KVM) += ivshmem.o
Cam Macdonell6cbf4c82010-07-27 10:54:13 -0600195
bellarda541f292004-04-12 20:39:29 +0000196# Hardware support
Blue Swirl7f55c7c2010-03-21 19:47:03 +0000197obj-i386-y += vga.o
Blue Swirl2d483772010-03-21 19:47:11 +0000198obj-i386-y += mc146818rtc.o i8259.o pc.o
Blue Swirl53b67b32010-03-29 19:23:52 +0000199obj-i386-y += cirrus_vga.o apic.o ioapic.o piix_pci.o
Alexander Graf1ddda5c2010-06-30 10:41:12 +0200200obj-i386-y += vmmouse.o vmport.o hpet.o applesmc.o
Markus Armbruster09aaa162009-08-21 10:31:34 +0200201obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
Blue Swirld3ffc7a2010-03-21 19:47:10 +0000202obj-i386-y += debugcon.o multiboot.o
Blue Swirlc69ea0d2010-05-17 19:32:37 +0000203obj-i386-y += pc_piix.o
Juan Quintela96374432009-07-16 18:33:58 +0200204
Juan Quintela96374432009-07-16 18:33:58 +0200205# shared objects
Blue Swirl02c7c992010-03-29 19:23:57 +0000206obj-ppc-y = ppc.o
Blue Swirl4556bd82010-05-22 08:00:52 +0000207obj-ppc-y += vga.o
Juan Quintela96374432009-07-16 18:33:58 +0200208# PREP target
Blue Swirl956a3e62010-05-22 07:59:01 +0000209obj-ppc-y += i8259.o mc146818rtc.o
Blue Swirladd85a72010-03-29 19:24:04 +0000210obj-ppc-y += ppc_prep.o
Juan Quintela96374432009-07-16 18:33:58 +0200211# OldWorld PowerMac
Blue Swirl2b5eb372010-03-30 17:36:23 +0000212obj-ppc-y += ppc_oldworld.o
Juan Quintela96374432009-07-16 18:33:58 +0200213# NewWorld PowerMac
Blue Swirl2b5eb372010-03-30 17:36:23 +0000214obj-ppc-y += ppc_newworld.o
Juan Quintela96374432009-07-16 18:33:58 +0200215# PowerPC 4xx boards
Blue Swirl5f9fc5a2010-03-29 19:23:55 +0000216obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
Juan Quintela96374432009-07-16 18:33:58 +0200217obj-ppc-y += ppc440.o ppc440_bamboo.o
218# PowerPC E500 boards
Blue Swirl2b5eb372010-03-30 17:36:23 +0000219obj-ppc-y += ppce500_mpc8544ds.o
Juan Quintela96374432009-07-16 18:33:58 +0200220obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
Juan Quintela3f0855b2009-07-27 16:12:52 +0200221obj-ppc-$(CONFIG_FDT) += device_tree.o
Juan Quintela96374432009-07-16 18:33:58 +0200222
223obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
Aurelien Jarno409dbce2010-03-14 21:20:59 +0100224obj-mips-y += mips_addr.o mips_timer.o mips_int.o
Blue Swirl4556bd82010-05-22 08:00:52 +0000225obj-mips-y += vga.o i8259.o
Blue Swirlb970ea82010-03-27 07:26:16 +0000226obj-mips-y += g364fb.o jazz_led.o
Blue Swirl956a3e62010-05-22 07:59:01 +0000227obj-mips-y += gt64xxx.o mc146818rtc.o
Blue Swirl08af49d2010-07-03 06:49:47 +0000228obj-mips-y += cirrus_vga.o
Huacai Chen051c1902010-06-29 10:50:43 +0800229obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o
Juan Quintela96374432009-07-16 18:33:58 +0200230
Juan Quintela96374432009-07-16 18:33:58 +0200231obj-microblaze-y = petalogix_s3adsp1800_mmu.o
Edgar E. Iglesias72b675c2009-05-20 21:17:31 +0200232
Juan Quintela96374432009-07-16 18:33:58 +0200233obj-microblaze-y += microblaze_pic_cpu.o
234obj-microblaze-y += xilinx_intc.o
235obj-microblaze-y += xilinx_timer.o
236obj-microblaze-y += xilinx_uartlite.o
237obj-microblaze-y += xilinx_ethlite.o
238
Juan Quintela3f0855b2009-07-27 16:12:52 +0200239obj-microblaze-$(CONFIG_FDT) += device_tree.o
Juan Quintela96374432009-07-16 18:33:58 +0200240
edgar_igl10c144e2009-01-07 12:19:50 +0000241# Boards
Edgar E. Iglesias77d4f952010-06-10 14:45:46 +0200242obj-cris-y = cris_pic_cpu.o
243obj-cris-y += cris-boot.o
244obj-cris-y += etraxfs.o axis_dev88.o
245obj-cris-y += axis_dev88.o
edgar_igl10c144e2009-01-07 12:19:50 +0000246
247# IO blocks
Juan Quintela96374432009-07-16 18:33:58 +0200248obj-cris-y += etraxfs_dma.o
249obj-cris-y += etraxfs_pic.o
250obj-cris-y += etraxfs_eth.o
251obj-cris-y += etraxfs_timer.o
252obj-cris-y += etraxfs_ser.o
edgar_igle62b5b12008-03-14 01:04:24 +0000253
bellard34751872005-07-02 14:31:34 +0000254ifeq ($(TARGET_ARCH), sparc64)
Blue Swirl956a3e62010-05-22 07:59:01 +0000255obj-sparc-y = sun4u.o apb_pci.o
Blue Swirl1afdfdd2010-03-21 19:47:00 +0000256obj-sparc-y += vga.o
Blue Swirl2d483772010-03-21 19:47:11 +0000257obj-sparc-y += mc146818rtc.o
Blue Swirlb9945042010-03-21 19:47:01 +0000258obj-sparc-y += cirrus_vga.o
bellard34751872005-07-02 14:31:34 +0000259else
Blue Swirl24056692010-04-03 07:35:50 +0000260obj-sparc-y = sun4m.o lance.o tcx.o sun4m_iommu.o slavio_intctl.o
Blue Swirl35da37e2010-03-21 19:47:06 +0000261obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o
Juan Quintela96374432009-07-16 18:33:58 +0200262obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
bellard34751872005-07-02 14:31:34 +0000263endif
Juan Quintela96374432009-07-16 18:33:58 +0200264
Paul Brookf165b532009-11-19 16:42:45 +0000265obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o
Juan Quintela96374432009-07-16 18:33:58 +0200266obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
267obj-arm-y += versatile_pci.o
Paul Brookf7c70322009-11-19 16:45:21 +0000268obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o
Juan Quintela96374432009-07-16 18:33:58 +0200269obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
270obj-arm-y += pl061.o
271obj-arm-y += arm-semi.o
272obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
273obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
Blue Swirl3d08ff62010-03-29 19:23:56 +0000274obj-arm-y += gumstix.o
Blue Swirlf7736b92010-03-27 06:20:53 +0000275obj-arm-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o
cmchao02d74342010-05-31 23:54:23 +0800276obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \
277 omap_gpio.o omap_intc.o omap_uart.o
cmchao2c1d9ec2010-05-31 23:54:22 +0800278obj-arm-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \
279 omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o
Juan Quintela96374432009-07-16 18:33:58 +0200280obj-arm-y += omap_sx1.o palm.o tsc210x.o
281obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
282obj-arm-y += mst_fpga.o mainstone.o
Blue Swirl5f9fc5a2010-03-29 19:23:55 +0000283obj-arm-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o
Juan Quintela96374432009-07-16 18:33:58 +0200284obj-arm-y += framebuffer.o
285obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
286obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
287obj-arm-y += syborg_virtio.o
288
Juan Quintela96374432009-07-16 18:33:58 +0200289obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
Blue Swirl2d483772010-03-21 19:47:11 +0000290obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o
Blue Swirlf7736b92010-03-27 06:20:53 +0000291obj-sh4-y += ide/mmio.o
Juan Quintela96374432009-07-16 18:33:58 +0200292
293obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
294obj-m68k-y += m68k-semi.o dummy_m68k.o
295
Alexander Graf8cb310e2009-12-05 12:44:28 +0100296obj-s390x-y = s390-virtio-bus.o s390-virtio.o
Alexander Graff3304ee2009-12-05 12:44:27 +0100297
Richard Henderson6049f4f2009-12-27 18:30:03 -0800298obj-alpha-y = alpha_palcode.o
299
Blue Swirlad960902010-03-29 19:23:52 +0000300main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
blueswir15824d652009-03-28 06:44:27 +0000301
Blue Swirl23130862009-06-06 08:22:04 +0000302monitor.o: qemu-monitor.h
303
Andreas Färber0e8c9212010-01-06 20:24:05 +0100304$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
305
306obj-y += $(addprefix ../, $(common-obj-y))
Blue Swirl4d904532010-03-21 08:28:47 +0000307obj-y += $(addprefix ../libdis/, $(libdis-y))
Andreas Färber0e8c9212010-01-06 20:24:05 +0100308obj-y += $(libobj-y)
309obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
bellard626df762003-08-10 21:39:31 +0000310
Juan Quintela76dfdd22009-08-03 14:46:41 +0200311endif # CONFIG_SOFTMMU
bellard00a67ba2006-10-28 12:19:07 +0000312
Juan Quintela3d0f1512009-10-07 02:41:04 +0200313obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
314
Andreas Färber0e8c9212010-01-06 20:24:05 +0100315$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
Juan Quintela16394482009-07-16 18:34:04 +0200316 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
317
318
Paolo Bonzini59bc10e2010-01-04 11:02:28 +0100319gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/feature_to_c.sh
aurel321aef4c52009-03-28 23:46:00 +0000320 $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@")
pbrook56aebc82008-10-11 17:55:29 +0000321
Blue Swirl23130862009-06-06 08:22:04 +0000322qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx
323 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
324
bellard626df762003-08-10 21:39:31 +0000325clean:
Blue Swirl23130862009-06-06 08:22:04 +0000326 rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
Juan Quintelabefb0312009-09-21 15:10:55 +0200327 rm -f *.d */*.d tcg/*.o ide/*.o
Blue Swirlad960902010-03-29 19:23:52 +0000328 rm -f qemu-monitor.h gdbstub-xml.c
bellard1e43adf2003-09-30 20:54:24 +0000329
ths5fafdf22007-09-16 21:08:06 +0000330install: all
bellard9b14bb02004-03-26 22:43:34 +0000331ifneq ($(PROGS),)
Hollis Blanchard52ba7842010-08-04 17:21:34 -0700332 $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
333ifneq ($(STRIP),)
334 $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS))
335endif
bellard9b14bb02004-03-26 22:43:34 +0000336endif
bellard626df762003-08-10 21:39:31 +0000337
j_mayer2f96c282007-10-28 13:07:12 +0000338# Include automatically generated dependency files
339-include $(wildcard *.d */*.d)