Statistics
| Branch: | Revision:

root / Makefile.target @ 2834c3e0

History | View | Annotate | Download (10.5 kB)

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