Statistics
| Branch: | Revision:

root / Makefile.target @ f19410ca

History | View | Annotate | Download (11 kB)

1 562593aa Anthony Liguori
# -*- Mode: makefile -*-
2 562593aa Anthony Liguori
3 a992fe3d Paul Brook
GENERATED_HEADERS = config-target.h
4 b3a29fd5 Isaku Yamahata
CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y)
5 98c8573e Paolo Bonzini
CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
6 f527c579 Juan Quintela
7 deed3ccf Juan Quintela
include ../config-host.mak
8 1f3d3c8f Juan Quintela
include config-devices.mak
9 25be210f Juan Quintela
include config-target.mak
10 17759187 aliguori
include $(SRC_PATH)/rules.mak
11 0e8c9214 Andreas Färber
ifneq ($(HWDIR),)
12 0e8c9214 Andreas Färber
include $(HWDIR)/config.mak
13 0e8c9214 Andreas Färber
endif
14 626df76a bellard
15 0b0babc6 bellard
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
16 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw)
17 6c90361a Juan Quintela
QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H
18 40293e58 bellard
19 0e8c9214 Andreas Färber
include $(SRC_PATH)/Makefile.objs
20 0e8c9214 Andreas Färber
21 40293e58 bellard
ifdef CONFIG_USER_ONLY
22 40293e58 bellard
# user emulator name
23 40293e58 bellard
QEMU_PROG=qemu-$(TARGET_ARCH2)
24 40293e58 bellard
else
25 1e43adfc bellard
# system emulator name
26 a541f297 bellard
ifeq ($(TARGET_ARCH), i386)
27 40293e58 bellard
QEMU_PROG=qemu$(EXESUF)
28 0db63474 bellard
else
29 40293e58 bellard
QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
30 a541f297 bellard
endif
31 de5eaa64 bellard
endif
32 626df76a bellard
33 40293e58 bellard
PROGS=$(QEMU_PROG)
34 b8841706 Peter Maydell
STPFILES=
35 626df76a bellard
36 aff447c9 Andreas Färber
ifndef CONFIG_HAIKU
37 626df76a bellard
LIBS+=-lm
38 aff447c9 Andreas Färber
endif
39 831b7825 ths
40 0ec329da Jan Kiszka
kvm.o kvm-all.o vhost.o vhost_net.o kvmclock.o: QEMU_CFLAGS+=$(KVM_CFLAGS)
41 7ba1e619 aliguori
42 91880d96 Juan Quintela
config-target.h: config-target.h-timestamp
43 91880d96 Juan Quintela
config-target.h-timestamp: config-target.mak
44 91880d96 Juan Quintela
45 c276b17d Daniel P. Berrange
ifdef CONFIG_SYSTEMTAP_TRACE
46 c276b17d Daniel P. Berrange
stap: $(QEMU_PROG).stp
47 c276b17d Daniel P. Berrange
48 c276b17d Daniel P. Berrange
ifdef CONFIG_USER_ONLY
49 c276b17d Daniel P. Berrange
TARGET_TYPE=user
50 c276b17d Daniel P. Berrange
else
51 c276b17d Daniel P. Berrange
TARGET_TYPE=system
52 c276b17d Daniel P. Berrange
endif
53 c276b17d Daniel P. Berrange
54 c276b17d Daniel P. Berrange
$(QEMU_PROG).stp:
55 4c3b5a48 Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool \
56 c276b17d Daniel P. Berrange
		--$(TRACE_BACKEND) \
57 c276b17d Daniel P. Berrange
		--binary $(bindir)/$(QEMU_PROG) \
58 c276b17d Daniel P. Berrange
		--target-arch $(TARGET_ARCH) \
59 c276b17d Daniel P. Berrange
		--target-type $(TARGET_TYPE) \
60 c276b17d Daniel P. Berrange
		--stap < $(SRC_PATH)/trace-events > $(QEMU_PROG).stp,"  GEN   $(QEMU_PROG).stp")
61 c276b17d Daniel P. Berrange
else
62 c276b17d Daniel P. Berrange
stap:
63 c276b17d Daniel P. Berrange
endif
64 c276b17d Daniel P. Berrange
65 c276b17d Daniel P. Berrange
all: $(PROGS) stap
66 91880d96 Juan Quintela
67 c2fb2637 Paul Brook
# Dummy command so that make thinks it has done something
68 c2fb2637 Paul Brook
	@true
69 626df76a bellard
70 40293e58 bellard
#########################################################
71 626df76a bellard
# cpu emulator library
72 c2b023b6 Blue Swirl
libobj-y = exec.o translate-all.o cpu-exec.o translate.o
73 96e132e2 Blue Swirl
libobj-y += tcg/tcg.o
74 d6b38939 Juan Quintela
libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o
75 d6b38939 Juan Quintela
libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o
76 c9e0df73 Juan Quintela
libobj-y += op_helper.o helper.o
77 c6dc6f63 Andre Przywara
ifeq ($(TARGET_BASE_ARCH), i386)
78 c6dc6f63 Andre Przywara
libobj-y += cpuid.o
79 c6dc6f63 Andre Przywara
endif
80 471857dd Juan Quintela
libobj-$(CONFIG_NEED_MMU) += mmu.o
81 e18ea868 Juan Quintela
libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o
82 cf6c1b16 j_mayer
83 c9e0df73 Juan Quintela
libobj-y += disas.o
84 626df76a bellard
85 0e8c9214 Andreas Färber
$(libobj-y): $(GENERATED_HEADERS)
86 40293e58 bellard
87 0e8c9214 Andreas Färber
# libqemu
88 40293e58 bellard
89 86e840ee aurel32
translate.o: translate.c cpu.h
90 40293e58 bellard
91 86e840ee aurel32
translate-all.o: translate-all.c cpu.h
92 40293e58 bellard
93 86e840ee aurel32
tcg/tcg.o: cpu.h
94 40293e58 bellard
95 40293e58 bellard
# HELPER_CFLAGS is used for all the code compiled with static register
96 40293e58 bellard
# variables
97 864de24a Juan Quintela
op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
98 40293e58 bellard
99 c81da56e Juan Quintela
# Note: this is a workaround. The real fix is to avoid compiling
100 c81da56e Juan Quintela
# cpu_signal_handler() in cpu-exec.c.
101 c81da56e Juan Quintela
signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
102 c81da56e Juan Quintela
103 40293e58 bellard
#########################################################
104 40293e58 bellard
# Linux user emulator target
105 40293e58 bellard
106 40293e58 bellard
ifdef CONFIG_LINUX_USER
107 40293e58 bellard
108 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR))
109 076d2471 Paolo Bonzini
110 c3109ba1 Mike Frysinger
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) -I$(SRC_PATH)/linux-user
111 37022086 Blue Swirl
obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
112 680c877a Richard Henderson
      elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o \
113 b152aa84 Jes Sorensen
      qemu-malloc.o $(oslib-obj-y)
114 5ba65319 Blue Swirl
115 943e0a31 Juan Quintela
obj-$(TARGET_HAS_BFLT) += flatload.o
116 40293e58 bellard
117 e18ea868 Juan Quintela
obj-$(TARGET_I386) += vm86.o
118 1c872672 Juan Quintela
119 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
120 5ba65319 Blue Swirl
121 ed69c30d Juan Quintela
nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
122 9c1dd99b Juan Quintela
nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
123 1c872672 Juan Quintela
obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))
124 1c872672 Juan Quintela
obj-arm-y += arm-semi.o
125 1c872672 Juan Quintela
126 1c872672 Juan Quintela
obj-m68k-y += m68k-sim.o m68k-semi.o
127 40293e58 bellard
128 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
129 0e8c9214 Andreas Färber
130 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
131 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
132 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
133 add16157 Blue Swirl
134 40293e58 bellard
endif #CONFIG_LINUX_USER
135 40293e58 bellard
136 40293e58 bellard
#########################################################
137 40293e58 bellard
# Darwin user emulator target
138 40293e58 bellard
139 40293e58 bellard
ifdef CONFIG_DARWIN_USER
140 40293e58 bellard
141 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/darwin-user)
142 076d2471 Paolo Bonzini
143 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
144 40293e58 bellard
145 40293e58 bellard
# Leave some space for the regular program loading zone
146 40293e58 bellard
LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
147 40293e58 bellard
148 40293e58 bellard
LIBS+=-lmx
149 40293e58 bellard
150 a8e492c0 Juan Quintela
obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
151 3d0f1517 Juan Quintela
        gdbstub.o
152 5ba65319 Blue Swirl
153 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
154 40293e58 bellard
155 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
156 0e8c9214 Andreas Färber
157 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
158 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
159 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
160 40293e58 bellard
161 40293e58 bellard
endif #CONFIG_DARWIN_USER
162 40293e58 bellard
163 40293e58 bellard
#########################################################
164 84778508 blueswir1
# BSD user emulator target
165 84778508 blueswir1
166 84778508 blueswir1
ifdef CONFIG_BSD_USER
167 84778508 blueswir1
168 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/bsd-user)
169 076d2471 Paolo Bonzini
170 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
171 84778508 blueswir1
172 37022086 Blue Swirl
obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
173 3d0f1517 Juan Quintela
        gdbstub.o uaccess.o
174 5ba65319 Blue Swirl
175 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
176 84778508 blueswir1
177 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
178 0e8c9214 Andreas Färber
179 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
180 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
181 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
182 84778508 blueswir1
183 84778508 blueswir1
endif #CONFIG_BSD_USER
184 84778508 blueswir1
185 84778508 blueswir1
#########################################################
186 40293e58 bellard
# System emulator target
187 76dfdd24 Juan Quintela
ifdef CONFIG_SOFTMMU
188 40293e58 bellard
189 04c9a0cb Blue Swirl
obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
190 1fd31ad7 aliguori
# virtio has to be here due to weird dependency between PCI and virtio-net.
191 1fd31ad7 aliguori
# need to fix this properly
192 b3a29fd5 Isaku Yamahata
obj-$(CONFIG_NO_PCI) += pci-stub.o
193 01af7daf Paul Brook
obj-$(CONFIG_VIRTIO) += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
194 e9d0fc74 Alexander Graf
obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
195 d5970055 Michael S. Tsirkin
obj-y += vhost_net.o
196 d5970055 Michael S. Tsirkin
obj-$(CONFIG_VHOST_NET) += vhost.o
197 01af7daf Paul Brook
obj-$(CONFIG_REALLY_VIRTFS) += virtio-9p.o
198 51464faf Blue Swirl
obj-y += rwhandler.o
199 a8e492c0 Juan Quintela
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
200 98c8573e Paolo Bonzini
obj-$(CONFIG_NO_KVM) += kvm-stub.o
201 40293e58 bellard
LIBS+=-lz
202 4fb240a4 bellard
203 a558ee17 Juan Quintela
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
204 a558ee17 Juan Quintela
QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
205 2f6f5c7a Corentin Chary
QEMU_CFLAGS += $(VNC_JPEG_CFLAGS)
206 efe556ad Corentin Chary
QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
207 2f9606b3 aliguori
208 e37630ca aliguori
# xen backend driver support
209 943e0a31 Juan Quintela
obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
210 e37630ca aliguori
211 6cbf4c8c Cam Macdonell
# Inter-VM PCI shared memory
212 3dcbf8f9 Cam Macdonell
obj-$(CONFIG_KVM) += ivshmem.o
213 6cbf4c8c Cam Macdonell
214 a541f297 bellard
# Hardware support
215 7f55c7ce Blue Swirl
obj-i386-y += vga.o
216 2d48377a Blue Swirl
obj-i386-y += mc146818rtc.o i8259.o pc.o
217 53b67b30 Blue Swirl
obj-i386-y += cirrus_vga.o apic.o ioapic.o piix_pci.o
218 1c9c5fcd Blue Swirl
obj-i386-y += vmport.o
219 09aaa160 Markus Armbruster
obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
220 d3ffc7a6 Blue Swirl
obj-i386-y += debugcon.o multiboot.o
221 0ec329da Jan Kiszka
obj-i386-y += pc_piix.o kvmclock.o
222 a19cbfb3 Gerd Hoffmann
obj-i386-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o
223 9637443f Juan Quintela
224 3cbee15b j_mayer
# shared objects
225 02c7c992 Blue Swirl
obj-ppc-y = ppc.o
226 4556bd8b Blue Swirl
obj-ppc-y += vga.o
227 3cbee15b j_mayer
# PREP target
228 956a3e6b Blue Swirl
obj-ppc-y += i8259.o mc146818rtc.o
229 add85a76 Blue Swirl
obj-ppc-y += ppc_prep.o
230 3cbee15b j_mayer
# OldWorld PowerMac
231 2b5eb371 Blue Swirl
obj-ppc-y += ppc_oldworld.o
232 3cbee15b j_mayer
# NewWorld PowerMac
233 2b5eb371 Blue Swirl
obj-ppc-y += ppc_newworld.o
234 3cbee15b j_mayer
# PowerPC 4xx boards
235 5f9fc5ad Blue Swirl
obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
236 9637443f Juan Quintela
obj-ppc-y += ppc440.o ppc440_bamboo.o
237 74c62ba8 aurel32
# PowerPC E500 boards
238 2b5eb371 Blue Swirl
obj-ppc-y += ppce500_mpc8544ds.o
239 2c50e26e Edgar E. Iglesias
# PowerPC 440 Xilinx ML507 reference board.
240 2c50e26e Edgar E. Iglesias
obj-ppc-y += virtex_ml507.o
241 9637443f Juan Quintela
obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
242 3f0855b1 Juan Quintela
obj-ppc-$(CONFIG_FDT) += device_tree.o
243 9637443f Juan Quintela
244 2c50e26e Edgar E. Iglesias
# Xilinx PPC peripherals
245 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_intc.o
246 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_timer.o
247 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_uartlite.o
248 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_ethlite.o
249 2c50e26e Edgar E. Iglesias
250 81ea0e13 Michael Walle
# LM32 peripherals
251 4ef66fa7 Michael Walle
obj-lm32-y += lm32_pic.o
252 15d7dc4f Michael Walle
obj-lm32-y += lm32_juart.o
253 ea7924dc Michael Walle
obj-lm32-y += lm32_timer.o
254 770ae571 Michael Walle
obj-lm32-y += lm32_uart.o
255 f19410ca Michael Walle
obj-lm32-y += lm32_sys.o
256 81ea0e13 Michael Walle
257 9637443f Juan Quintela
obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
258 409dbce5 Aurelien Jarno
obj-mips-y += mips_addr.o mips_timer.o mips_int.o
259 4556bd8b Blue Swirl
obj-mips-y += vga.o i8259.o
260 b970ea8f Blue Swirl
obj-mips-y += g364fb.o jazz_led.o
261 956a3e6b Blue Swirl
obj-mips-y += gt64xxx.o mc146818rtc.o
262 08af49da Blue Swirl
obj-mips-y += cirrus_vga.o
263 051c190b Huacai Chen
obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o
264 9637443f Juan Quintela
265 9637443f Juan Quintela
obj-microblaze-y = petalogix_s3adsp1800_mmu.o
266 9637443f Juan Quintela
267 9637443f Juan Quintela
obj-microblaze-y += microblaze_pic_cpu.o
268 9637443f Juan Quintela
obj-microblaze-y += xilinx_intc.o
269 9637443f Juan Quintela
obj-microblaze-y += xilinx_timer.o
270 9637443f Juan Quintela
obj-microblaze-y += xilinx_uartlite.o
271 9637443f Juan Quintela
obj-microblaze-y += xilinx_ethlite.o
272 9637443f Juan Quintela
273 3f0855b1 Juan Quintela
obj-microblaze-$(CONFIG_FDT) += device_tree.o
274 9637443f Juan Quintela
275 10c144e2 edgar_igl
# Boards
276 77d4f95e Edgar E. Iglesias
obj-cris-y = cris_pic_cpu.o
277 77d4f95e Edgar E. Iglesias
obj-cris-y += cris-boot.o
278 77d4f95e Edgar E. Iglesias
obj-cris-y += etraxfs.o axis_dev88.o
279 77d4f95e Edgar E. Iglesias
obj-cris-y += axis_dev88.o
280 10c144e2 edgar_igl
281 10c144e2 edgar_igl
# IO blocks
282 9637443f Juan Quintela
obj-cris-y += etraxfs_dma.o
283 9637443f Juan Quintela
obj-cris-y += etraxfs_pic.o
284 9637443f Juan Quintela
obj-cris-y += etraxfs_eth.o
285 9637443f Juan Quintela
obj-cris-y += etraxfs_timer.o
286 9637443f Juan Quintela
obj-cris-y += etraxfs_ser.o
287 9637443f Juan Quintela
288 3475187d bellard
ifeq ($(TARGET_ARCH), sparc64)
289 956a3e6b Blue Swirl
obj-sparc-y = sun4u.o apb_pci.o
290 1afdfddc Blue Swirl
obj-sparc-y += vga.o
291 2d48377a Blue Swirl
obj-sparc-y += mc146818rtc.o
292 b9945046 Blue Swirl
obj-sparc-y += cirrus_vga.o
293 3475187d bellard
else
294 24056690 Blue Swirl
obj-sparc-y = sun4m.o lance.o tcx.o sun4m_iommu.o slavio_intctl.o
295 35da37e1 Blue Swirl
obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o
296 b04d9890 Fabien Chouteau
obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o leon3.o
297 b04d9890 Fabien Chouteau
298 b04d9890 Fabien Chouteau
# GRLIB
299 b04d9890 Fabien Chouteau
obj-sparc-y += grlib_gptimer.o grlib_irqmp.o grlib_apbuart.o
300 9637443f Juan Quintela
endif
301 9637443f Juan Quintela
302 f165b53a Paul Brook
obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o
303 9637443f Juan Quintela
obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
304 9637443f Juan Quintela
obj-arm-y += versatile_pci.o
305 f7c70325 Paul Brook
obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o
306 9637443f Juan Quintela
obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
307 9637443f Juan Quintela
obj-arm-y += pl061.o
308 9637443f Juan Quintela
obj-arm-y += arm-semi.o
309 9637443f Juan Quintela
obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
310 9637443f Juan Quintela
obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
311 3d08ff69 Blue Swirl
obj-arm-y += gumstix.o
312 f7736b91 Blue Swirl
obj-arm-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o
313 02d74341 cmchao
obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \
314 02d74341 cmchao
		omap_gpio.o omap_intc.o omap_uart.o
315 2c1d9ecb cmchao
obj-arm-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \
316 2c1d9ecb cmchao
		omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o
317 9637443f Juan Quintela
obj-arm-y += omap_sx1.o palm.o tsc210x.o
318 9637443f Juan Quintela
obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
319 9637443f Juan Quintela
obj-arm-y += mst_fpga.o mainstone.o
320 5f9fc5ad Blue Swirl
obj-arm-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o
321 9637443f Juan Quintela
obj-arm-y += framebuffer.o
322 9637443f Juan Quintela
obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
323 9637443f Juan Quintela
obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
324 9637443f Juan Quintela
obj-arm-y += syborg_virtio.o
325 9637443f Juan Quintela
326 9637443f Juan Quintela
obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
327 2d48377a Blue Swirl
obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o
328 f7736b91 Blue Swirl
obj-sh4-y += ide/mmio.o
329 9637443f Juan Quintela
330 9637443f Juan Quintela
obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
331 9637443f Juan Quintela
obj-m68k-y += m68k-semi.o dummy_m68k.o
332 9637443f Juan Quintela
333 8cb310e1 Alexander Graf
obj-s390x-y = s390-virtio-bus.o s390-virtio.o
334 f3304eea Alexander Graf
335 6049f4f8 Richard Henderson
obj-alpha-y = alpha_palcode.o
336 6049f4f8 Richard Henderson
337 ad96090a Blue Swirl
main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
338 5824d651 blueswir1
339 acd0a093 Luiz Capitulino
monitor.o: hmp-commands.h qmp-commands.h
340 2313086a Blue Swirl
341 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
342 0e8c9214 Andreas Färber
343 0e8c9214 Andreas Färber
obj-y += $(addprefix ../, $(common-obj-y))
344 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis/, $(libdis-y))
345 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
346 0e8c9214 Andreas Färber
obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
347 626df76a bellard
348 76dfdd24 Juan Quintela
endif # CONFIG_SOFTMMU
349 00a67ba1 bellard
350 94a420b1 Stefan Hajnoczi
obj-y += $(addprefix ../, $(trace-obj-y))
351 3d0f1517 Juan Quintela
obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
352 3d0f1517 Juan Quintela
353 0e8c9214 Andreas Färber
$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
354 16394485 Juan Quintela
	$(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
355 16394485 Juan Quintela
356 16394485 Juan Quintela
357 4c3b5a48 Blue Swirl
gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh
358 4c3b5a48 Blue Swirl
	$(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/scripts/feature_to_c.sh $@ $(TARGET_XML_FILES),"  GEN   $(TARGET_DIR)$@")
359 56aebc89 pbrook
360 acd0a093 Luiz Capitulino
hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
361 4c3b5a48 Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
362 2313086a Blue Swirl
363 f36b4afb Luiz Capitulino
qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
364 4c3b5a48 Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
365 2313086a Blue Swirl
366 626df76a bellard
clean:
367 2313086a Blue Swirl
	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
368 befb0316 Juan Quintela
	rm -f *.d */*.d tcg/*.o ide/*.o
369 acd0a093 Luiz Capitulino
	rm -f hmp-commands.h qmp-commands.h gdbstub-xml.c
370 c276b17d Daniel P. Berrange
ifdef CONFIG_SYSTEMTAP_TRACE
371 c276b17d Daniel P. Berrange
	rm -f *.stp
372 c276b17d Daniel P. Berrange
endif
373 1e43adfc bellard
374 5fafdf24 ths
install: all
375 9b14bb04 bellard
ifneq ($(PROGS),)
376 52ba784d Hollis Blanchard
	$(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
377 52ba784d Hollis Blanchard
ifneq ($(STRIP),)
378 52ba784d Hollis Blanchard
	$(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS))
379 52ba784d Hollis Blanchard
endif
380 9b14bb04 bellard
endif
381 c276b17d Daniel P. Berrange
ifdef CONFIG_SYSTEMTAP_TRACE
382 c276b17d Daniel P. Berrange
	$(INSTALL_DIR) "$(DESTDIR)$(datadir)/../systemtap/tapset"
383 c276b17d Daniel P. Berrange
	$(INSTALL_DATA) $(QEMU_PROG).stp "$(DESTDIR)$(datadir)/../systemtap/tapset"
384 c276b17d Daniel P. Berrange
endif
385 626df76a bellard
386 2f96c28d j_mayer
# Include automatically generated dependency files
387 2f96c28d j_mayer
-include $(wildcard *.d */*.d)