Statistics
| Branch: | Revision:

root / Makefile.target @ 64dc9c31

History | View | Annotate | Download (10.3 kB)

1 562593aa Anthony Liguori
# -*- Mode: makefile -*-
2 562593aa Anthony Liguori
3 a992fe3d Paul Brook
GENERATED_HEADERS = config-target.h
4 f527c579 Juan Quintela
5 deed3ccf Juan Quintela
include ../config-host.mak
6 1f3d3c8f Juan Quintela
include config-devices.mak
7 25be210f Juan Quintela
include config-target.mak
8 17759187 aliguori
include $(SRC_PATH)/rules.mak
9 0e8c9214 Andreas Färber
ifneq ($(HWDIR),)
10 0e8c9214 Andreas Färber
include $(HWDIR)/config.mak
11 0e8c9214 Andreas Färber
endif
12 626df76a bellard
13 0b0babc6 bellard
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
14 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw)
15 6c90361a Juan Quintela
QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H
16 40293e58 bellard
17 0e8c9214 Andreas Färber
include $(SRC_PATH)/Makefile.objs
18 0e8c9214 Andreas Färber
19 40293e58 bellard
ifdef CONFIG_USER_ONLY
20 40293e58 bellard
# user emulator name
21 40293e58 bellard
QEMU_PROG=qemu-$(TARGET_ARCH2)
22 40293e58 bellard
else
23 1e43adfc bellard
# system emulator name
24 a541f297 bellard
ifeq ($(TARGET_ARCH), i386)
25 40293e58 bellard
QEMU_PROG=qemu$(EXESUF)
26 0db63474 bellard
else
27 40293e58 bellard
QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
28 a541f297 bellard
endif
29 de5eaa64 bellard
endif
30 626df76a bellard
31 40293e58 bellard
PROGS=$(QEMU_PROG)
32 626df76a bellard
33 626df76a bellard
LIBS+=-lm
34 831b7825 ths
35 b248a85d Juan Quintela
kvm.o kvm-all.o: QEMU_CFLAGS+=$(KVM_CFLAGS)
36 7ba1e619 aliguori
37 91880d96 Juan Quintela
config-target.h: config-target.h-timestamp
38 91880d96 Juan Quintela
config-target.h-timestamp: config-target.mak
39 91880d96 Juan Quintela
40 f527c579 Juan Quintela
all: $(PROGS)
41 91880d96 Juan Quintela
42 c2fb2637 Paul Brook
# Dummy command so that make thinks it has done something
43 c2fb2637 Paul Brook
	@true
44 626df76a bellard
45 40293e58 bellard
#########################################################
46 626df76a bellard
# cpu emulator library
47 c2b023b6 Blue Swirl
libobj-y = exec.o translate-all.o cpu-exec.o translate.o
48 96e132e2 Blue Swirl
libobj-y += tcg/tcg.o
49 d6b38939 Juan Quintela
libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o
50 d6b38939 Juan Quintela
libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o
51 c9e0df73 Juan Quintela
libobj-y += op_helper.o helper.o
52 c6dc6f63 Andre Przywara
ifeq ($(TARGET_BASE_ARCH), i386)
53 c6dc6f63 Andre Przywara
libobj-y += cpuid.o
54 c6dc6f63 Andre Przywara
endif
55 471857dd Juan Quintela
libobj-$(CONFIG_NEED_MMU) += mmu.o
56 e18ea868 Juan Quintela
libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o
57 cf6c1b16 j_mayer
58 c9e0df73 Juan Quintela
libobj-y += disas.o
59 626df76a bellard
60 0e8c9214 Andreas Färber
$(libobj-y): $(GENERATED_HEADERS)
61 40293e58 bellard
62 0e8c9214 Andreas Färber
# libqemu
63 40293e58 bellard
64 86e840ee aurel32
translate.o: translate.c cpu.h
65 40293e58 bellard
66 86e840ee aurel32
translate-all.o: translate-all.c cpu.h
67 40293e58 bellard
68 86e840ee aurel32
tcg/tcg.o: cpu.h
69 40293e58 bellard
70 40293e58 bellard
# HELPER_CFLAGS is used for all the code compiled with static register
71 40293e58 bellard
# variables
72 864de24a Juan Quintela
op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
73 40293e58 bellard
74 c81da56e Juan Quintela
# Note: this is a workaround. The real fix is to avoid compiling
75 c81da56e Juan Quintela
# cpu_signal_handler() in cpu-exec.c.
76 c81da56e Juan Quintela
signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
77 c81da56e Juan Quintela
78 40293e58 bellard
#########################################################
79 40293e58 bellard
# Linux user emulator target
80 40293e58 bellard
81 40293e58 bellard
ifdef CONFIG_LINUX_USER
82 40293e58 bellard
83 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR))
84 076d2471 Paolo Bonzini
85 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
86 37022086 Blue Swirl
obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
87 da79030f Loïc Minier
      elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o
88 5ba65319 Blue Swirl
89 943e0a31 Juan Quintela
obj-$(TARGET_HAS_BFLT) += flatload.o
90 943e0a31 Juan Quintela
obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
91 40293e58 bellard
92 e18ea868 Juan Quintela
obj-$(TARGET_I386) += vm86.o
93 1c872672 Juan Quintela
94 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
95 5ba65319 Blue Swirl
96 ed69c30d Juan Quintela
nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
97 9c1dd99b Juan Quintela
nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
98 1c872672 Juan Quintela
obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))
99 1c872672 Juan Quintela
obj-arm-y += arm-semi.o
100 1c872672 Juan Quintela
101 1c872672 Juan Quintela
obj-m68k-y += m68k-sim.o m68k-semi.o
102 40293e58 bellard
103 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
104 0e8c9214 Andreas Färber
105 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
106 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
107 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
108 add16157 Blue Swirl
109 40293e58 bellard
endif #CONFIG_LINUX_USER
110 40293e58 bellard
111 40293e58 bellard
#########################################################
112 40293e58 bellard
# Darwin user emulator target
113 40293e58 bellard
114 40293e58 bellard
ifdef CONFIG_DARWIN_USER
115 40293e58 bellard
116 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/darwin-user)
117 076d2471 Paolo Bonzini
118 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
119 40293e58 bellard
120 40293e58 bellard
# Leave some space for the regular program loading zone
121 40293e58 bellard
LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
122 40293e58 bellard
123 40293e58 bellard
LIBS+=-lmx
124 40293e58 bellard
125 a8e492c0 Juan Quintela
obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
126 3d0f1517 Juan Quintela
        gdbstub.o
127 5ba65319 Blue Swirl
128 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
129 40293e58 bellard
130 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
131 0e8c9214 Andreas Färber
132 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
133 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
134 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
135 40293e58 bellard
136 40293e58 bellard
endif #CONFIG_DARWIN_USER
137 40293e58 bellard
138 40293e58 bellard
#########################################################
139 84778508 blueswir1
# BSD user emulator target
140 84778508 blueswir1
141 84778508 blueswir1
ifdef CONFIG_BSD_USER
142 84778508 blueswir1
143 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/bsd-user)
144 076d2471 Paolo Bonzini
145 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
146 84778508 blueswir1
147 37022086 Blue Swirl
obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
148 3d0f1517 Juan Quintela
        gdbstub.o uaccess.o
149 5ba65319 Blue Swirl
150 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
151 84778508 blueswir1
152 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
153 0e8c9214 Andreas Färber
154 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
155 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
156 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
157 84778508 blueswir1
158 84778508 blueswir1
endif #CONFIG_BSD_USER
159 84778508 blueswir1
160 84778508 blueswir1
#########################################################
161 40293e58 bellard
# System emulator target
162 76dfdd24 Juan Quintela
ifdef CONFIG_SOFTMMU
163 40293e58 bellard
164 64dc9c31 Blue Swirl
obj-y = vl.o monitor.o pci.o pci_host.o pcie_host.o machine.o gdbstub.o
165 db1a4972 Paolo Bonzini
obj-y += qemu-error.o qemu-timer.o
166 1fd31ad7 aliguori
# virtio has to be here due to weird dependency between PCI and virtio-net.
167 1fd31ad7 aliguori
# need to fix this properly
168 4d3053a3 Amit Shah
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-pci.o virtio-serial-bus.o
169 51464faf Blue Swirl
obj-y += rwhandler.o
170 a8e492c0 Juan Quintela
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
171 185c66c8 Juan Quintela
obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
172 40293e58 bellard
LIBS+=-lz
173 4fb240a4 bellard
174 b6271b48 Juan Quintela
sound-obj-y =
175 b6271b48 Juan Quintela
sound-obj-$(CONFIG_SB16) += sb16.o
176 b6271b48 Juan Quintela
sound-obj-$(CONFIG_ES1370) += es1370.o
177 b6271b48 Juan Quintela
sound-obj-$(CONFIG_AC97) += ac97.o
178 b6271b48 Juan Quintela
sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
179 b6271b48 Juan Quintela
sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
180 57a943c4 malc
sound-obj-$(CONFIG_CS4231A) += cs4231a.o
181 b6271b48 Juan Quintela
182 ed69c30d Juan Quintela
adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
183 85571bc7 bellard
184 a558ee17 Juan Quintela
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
185 a558ee17 Juan Quintela
QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
186 2f9606b3 aliguori
187 e37630ca aliguori
# xen backend driver support
188 943e0a31 Juan Quintela
obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
189 e37630ca aliguori
190 a594cfbf bellard
# USB layer
191 64257584 Juan Quintela
obj-$(CONFIG_USB_OHCI) += usb-ohci.o
192 a594cfbf bellard
193 a41b2ff2 pbrook
# PCI network cards
194 a8e492c0 Juan Quintela
obj-y += eepro100.o
195 a8e492c0 Juan Quintela
obj-y += pcnet.o
196 a8e492c0 Juan Quintela
obj-y += rtl8139.o
197 a8e492c0 Juan Quintela
obj-y += e1000.o
198 a41b2ff2 pbrook
199 a541f297 bellard
# Hardware support
200 9953b2fc Blue Swirl
obj-i386-y = ide/core.o
201 feef3102 Gerd Hoffmann
obj-i386-y += pckbd.o $(sound-obj-y) dma.o
202 7f55c7ce Blue Swirl
obj-i386-y += vga.o
203 35da37e1 Blue Swirl
obj-i386-y += mc146818rtc.o serial.o i8259.o pc.o
204 b9945046 Blue Swirl
obj-i386-y += cirrus_vga.o apic.o ioapic.o acpi.o piix_pci.o
205 4c65f1e5 Blue Swirl
obj-i386-y += vmmouse.o vmport.o vmware_vga.o hpet.o
206 09aaa160 Markus Armbruster
obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
207 52001445 Adam Lackorzynski
obj-i386-y += ne2000-isa.o debugcon.o multiboot.o
208 9637443f Juan Quintela
209 3cbee15b j_mayer
# shared objects
210 9953b2fc Blue Swirl
obj-ppc-y = ppc.o ide/core.o ide/macio.o
211 1afdfddc Blue Swirl
obj-ppc-y += vga.o $(sound-obj-y) dma.o openpic.o
212 3cbee15b j_mayer
# PREP target
213 35da37e1 Blue Swirl
obj-ppc-y += pckbd.o serial.o i8259.o mc146818rtc.o
214 9453c5bc Gerd Hoffmann
obj-ppc-y += prep_pci.o ppc_prep.o ne2000-isa.o
215 3cbee15b j_mayer
# Mac shared devices
216 9637443f Juan Quintela
obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
217 3cbee15b j_mayer
# OldWorld PowerMac
218 9637443f Juan Quintela
obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
219 3cbee15b j_mayer
# NewWorld PowerMac
220 e1c6bbab Blue Swirl
obj-ppc-y += unin_pci.o ppc_newworld.o dec_pci.o
221 3cbee15b j_mayer
# PowerPC 4xx boards
222 9637443f Juan Quintela
obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
223 9637443f Juan Quintela
obj-ppc-y += ppc440.o ppc440_bamboo.o
224 74c62ba8 aurel32
# PowerPC E500 boards
225 9637443f Juan Quintela
obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o
226 9637443f Juan Quintela
obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
227 3f0855b1 Juan Quintela
obj-ppc-$(CONFIG_FDT) += device_tree.o
228 9637443f Juan Quintela
229 9637443f Juan Quintela
obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
230 409dbce5 Aurelien Jarno
obj-mips-y += mips_addr.o mips_timer.o mips_int.o
231 df632778 Blue Swirl
obj-mips-y += dma.o vga.o serial.o i8259.o rc4030.o
232 7f55c7ce Blue Swirl
obj-mips-y += vga-isa-mm.o
233 9637443f Juan Quintela
obj-mips-y += g364fb.o jazz_led.o dp8393x.o
234 9953b2fc Blue Swirl
obj-mips-y += ide/core.o
235 35da37e1 Blue Swirl
obj-mips-y += gt64xxx.o pckbd.o mc146818rtc.o acpi.o ds1225y.o
236 71093711 Blue Swirl
obj-mips-y += piix4.o cirrus_vga.o $(sound-obj-y)
237 9453c5bc Gerd Hoffmann
obj-mips-y += mipsnet.o ne2000-isa.o
238 9637443f Juan Quintela
obj-mips-y += pflash_cfi01.o
239 9637443f Juan Quintela
obj-mips-y += vmware_vga.o
240 9637443f Juan Quintela
241 9637443f Juan Quintela
obj-microblaze-y = petalogix_s3adsp1800_mmu.o
242 9637443f Juan Quintela
243 9637443f Juan Quintela
obj-microblaze-y += microblaze_pic_cpu.o
244 9637443f Juan Quintela
obj-microblaze-y += xilinx_intc.o
245 9637443f Juan Quintela
obj-microblaze-y += xilinx_timer.o
246 9637443f Juan Quintela
obj-microblaze-y += xilinx_uartlite.o
247 9637443f Juan Quintela
obj-microblaze-y += xilinx_ethlite.o
248 9637443f Juan Quintela
249 2548de3a Edgar E. Iglesias
obj-microblaze-y += pflash_cfi01.o
250 72b675ca Edgar E. Iglesias
251 3f0855b1 Juan Quintela
obj-microblaze-$(CONFIG_FDT) += device_tree.o
252 9637443f Juan Quintela
253 10c144e2 edgar_igl
# Boards
254 9637443f Juan Quintela
obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o
255 10c144e2 edgar_igl
256 10c144e2 edgar_igl
# IO blocks
257 9637443f Juan Quintela
obj-cris-y += etraxfs_dma.o
258 9637443f Juan Quintela
obj-cris-y += etraxfs_pic.o
259 9637443f Juan Quintela
obj-cris-y += etraxfs_eth.o
260 9637443f Juan Quintela
obj-cris-y += etraxfs_timer.o
261 9637443f Juan Quintela
obj-cris-y += etraxfs_ser.o
262 9637443f Juan Quintela
263 9637443f Juan Quintela
obj-cris-y += pflash_cfi02.o
264 e62b5b13 edgar_igl
265 3475187d bellard
ifeq ($(TARGET_ARCH), sparc64)
266 feef3102 Gerd Hoffmann
obj-sparc-y = sun4u.o pckbd.o apb_pci.o
267 9953b2fc Blue Swirl
obj-sparc-y += ide/core.o
268 1afdfddc Blue Swirl
obj-sparc-y += vga.o
269 35da37e1 Blue Swirl
obj-sparc-y += mc146818rtc.o serial.o
270 b9945046 Blue Swirl
obj-sparc-y += cirrus_vga.o
271 3475187d bellard
else
272 94e1a912 Gerd Hoffmann
obj-sparc-y = sun4m.o lance.o tcx.o iommu.o slavio_intctl.o
273 35da37e1 Blue Swirl
obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o
274 9637443f Juan Quintela
obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
275 9637443f Juan Quintela
endif
276 9637443f Juan Quintela
277 f165b53a Paul Brook
obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o
278 9637443f Juan Quintela
obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
279 9637443f Juan Quintela
obj-arm-y += versatile_pci.o
280 f7c70325 Paul Brook
obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o
281 9637443f Juan Quintela
obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
282 9637443f Juan Quintela
obj-arm-y += pl061.o
283 9637443f Juan Quintela
obj-arm-y += arm-semi.o
284 9637443f Juan Quintela
obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
285 9637443f Juan Quintela
obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
286 9637443f Juan Quintela
obj-arm-y += pflash_cfi01.o gumstix.o
287 5c637a20 Blue Swirl
obj-arm-y += zaurus.o ide/core.o ide/microdrive.o serial.o spitz.o tosa.o tc6393xb.o
288 9637443f Juan Quintela
obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
289 9637443f Juan Quintela
obj-arm-y += omap2.o omap_dss.o soc_dma.o
290 9637443f Juan Quintela
obj-arm-y += omap_sx1.o palm.o tsc210x.o
291 9637443f Juan Quintela
obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
292 9637443f Juan Quintela
obj-arm-y += mst_fpga.o mainstone.o
293 ef07b491 Andrzej Zaborowski
obj-arm-y += musicpal.o pflash_cfi02.o bitbang_i2c.o marvell_88w8618_audio.o
294 9637443f Juan Quintela
obj-arm-y += framebuffer.o
295 9637443f Juan Quintela
obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
296 9637443f Juan Quintela
obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
297 9637443f Juan Quintela
obj-arm-y += syborg_virtio.o
298 9637443f Juan Quintela
299 9637443f Juan Quintela
obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
300 9637443f Juan Quintela
obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
301 5c637a20 Blue Swirl
obj-sh4-y += ide/core.o ide/mmio.o
302 9637443f Juan Quintela
303 9637443f Juan Quintela
obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
304 9637443f Juan Quintela
obj-m68k-y += m68k-semi.o dummy_m68k.o
305 9637443f Juan Quintela
306 8cb310e1 Alexander Graf
obj-s390x-y = s390-virtio-bus.o s390-virtio.o
307 f3304eea Alexander Graf
308 6049f4f8 Richard Henderson
obj-alpha-y = alpha_palcode.o
309 6049f4f8 Richard Henderson
310 f622d8a3 Juan Quintela
main.o vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
311 6e1b3e4d bellard
312 a558ee17 Juan Quintela
vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
313 537fe2d6 Anthony Liguori
314 5824d651 blueswir1
vl.o: qemu-options.h
315 5824d651 blueswir1
316 2313086a Blue Swirl
monitor.o: qemu-monitor.h
317 2313086a Blue Swirl
318 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
319 0e8c9214 Andreas Färber
320 0e8c9214 Andreas Färber
obj-y += $(addprefix ../, $(common-obj-y))
321 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis/, $(libdis-y))
322 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
323 0e8c9214 Andreas Färber
obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
324 626df76a bellard
325 76dfdd24 Juan Quintela
endif # CONFIG_SOFTMMU
326 00a67ba1 bellard
327 3d0f1517 Juan Quintela
obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
328 3d0f1517 Juan Quintela
329 0e8c9214 Andreas Färber
$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
330 16394485 Juan Quintela
	$(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
331 16394485 Juan Quintela
332 16394485 Juan Quintela
333 59bc10ee Paolo Bonzini
gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/feature_to_c.sh
334 1aef4c57 aurel32
	$(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES),"  GEN   $(TARGET_DIR)$@")
335 56aebc89 pbrook
336 5824d651 blueswir1
qemu-options.h: $(SRC_PATH)/qemu-options.hx
337 0d00e563 aliguori
	$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
338 5824d651 blueswir1
339 2313086a Blue Swirl
qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx
340 2313086a Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
341 2313086a Blue Swirl
342 626df76a bellard
clean:
343 2313086a Blue Swirl
	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
344 befb0316 Juan Quintela
	rm -f *.d */*.d tcg/*.o ide/*.o
345 2313086a Blue Swirl
	rm -f qemu-options.h qemu-monitor.h gdbstub-xml.c
346 1e43adfc bellard
347 5fafdf24 ths
install: all
348 9b14bb04 bellard
ifneq ($(PROGS),)
349 1625af87 aliguori
	$(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)"
350 9b14bb04 bellard
endif
351 626df76a bellard
352 2f96c28d j_mayer
# Include automatically generated dependency files
353 2f96c28d j_mayer
-include $(wildcard *.d */*.d)