Statistics
| Branch: | Revision:

root / Makefile.target @ a992fe3d

History | View | Annotate | Download (10.3 kB)

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