root / Makefile.target @ 997e690a
History | View | Annotate | Download (12.7 kB)
1 |
include config.mak |
---|---|
2 |
include $(SRC_PATH)/rules.mak |
3 |
|
4 |
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH) |
5 |
VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw |
6 |
QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H |
7 |
|
8 |
ifdef CONFIG_USER_ONLY |
9 |
# user emulator name |
10 |
QEMU_PROG=qemu-$(TARGET_ARCH2) |
11 |
else |
12 |
# system emulator name |
13 |
ifeq ($(TARGET_ARCH), i386) |
14 |
QEMU_PROG=qemu$(EXESUF) |
15 |
else |
16 |
QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF) |
17 |
endif |
18 |
endif |
19 |
|
20 |
PROGS=$(QEMU_PROG) |
21 |
|
22 |
ifeq ($(subst ppc64,ppc,$(ARCH))$(TARGET_BASE_ARCH),ppcppc) |
23 |
translate.o: QEMU_CFLAGS := $(QEMU_CFLAGS) $(call cc-option, $(QEMU_CFLAGS), -fno-unit-at-a-time,) |
24 |
endif |
25 |
|
26 |
ifeq ($(ARCH),alpha) |
27 |
# Ensure there's only a single GP |
28 |
QEMU_CFLAGS+=-msmall-data |
29 |
endif |
30 |
|
31 |
ifeq ($(ARCH),ia64) |
32 |
QEMU_CFLAGS+=-mno-sdata |
33 |
endif |
34 |
|
35 |
LIBS+=-lm |
36 |
ifdef CONFIG_SOLARIS |
37 |
ifdef CONFIG_NEEDS_LIBSUNMATH |
38 |
LIBS+=-lsunmath |
39 |
LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib |
40 |
QEMU_CFLAGS+=-I/opt/SUNWspro/prod/include/cc |
41 |
endif |
42 |
endif |
43 |
|
44 |
kvm.o: QEMU_CFLAGS+=$(KVM_CFLAGS) |
45 |
kvm-all.o: QEMU_CFLAGS+=$(KVM_CFLAGS) |
46 |
|
47 |
all: $(PROGS) |
48 |
# Dummy command so that make thinks it has done something |
49 |
@true |
50 |
|
51 |
######################################################### |
52 |
# cpu emulator library |
53 |
libobj-y = exec.o translate-all.o cpu-exec.o translate.o host-utils.o |
54 |
libobj-$(CONFIG_KQEMU) += kqemu.o |
55 |
# TCG code generator |
56 |
libobj-y += tcg/tcg.o tcg/tcg-runtime.o |
57 |
QEMU_CFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH) |
58 |
ifeq ($(ARCH),sparc64) |
59 |
QEMU_CFLAGS+=-I$(SRC_PATH)/tcg/sparc |
60 |
endif |
61 |
ifdef CONFIG_SOFTFLOAT |
62 |
libobj-y += fpu/softfloat.o |
63 |
else |
64 |
libobj-y += fpu/softfloat-native.o |
65 |
endif |
66 |
QEMU_CFLAGS+=-I$(SRC_PATH)/fpu |
67 |
libobj-y += op_helper.o helper.o |
68 |
|
69 |
ifeq ($(TARGET_BASE_ARCH), arm) |
70 |
libobj-y += neon_helper.o iwmmxt_helper.o |
71 |
endif |
72 |
|
73 |
ifeq ($(TARGET_BASE_ARCH), alpha) |
74 |
libobj-y += alpha_palcode.o |
75 |
endif |
76 |
|
77 |
ifeq ($(TARGET_BASE_ARCH), cris) |
78 |
libobj-y += cris-dis.o |
79 |
|
80 |
ifndef CONFIG_USER_ONLY |
81 |
libobj-y += mmu.o |
82 |
endif |
83 |
endif |
84 |
|
85 |
# NOTE: the disassembler code is only needed for debugging |
86 |
libobj-y += disas.o |
87 |
ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386) |
88 |
USE_I386_DIS=y |
89 |
endif |
90 |
ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64) |
91 |
USE_I386_DIS=y |
92 |
endif |
93 |
libobj-$(USE_I386_DIS) += i386-dis.o |
94 |
ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha) |
95 |
libobj-y += alpha-dis.o |
96 |
endif |
97 |
ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc) |
98 |
libobj-y += ppc-dis.o |
99 |
endif |
100 |
ifeq ($(findstring microblaze, $(TARGET_BASE_ARCH) $(ARCH)),microblaze) |
101 |
libobj-y += microblaze-dis.o |
102 |
ifndef CONFIG_USER_ONLY |
103 |
libobj-y += mmu.o |
104 |
endif |
105 |
endif |
106 |
ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips) |
107 |
libobj-y += mips-dis.o |
108 |
endif |
109 |
ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc) |
110 |
libobj-y += sparc-dis.o |
111 |
endif |
112 |
ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm) |
113 |
libobj-y += arm-dis.o |
114 |
endif |
115 |
ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k) |
116 |
libobj-y += m68k-dis.o |
117 |
endif |
118 |
ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4) |
119 |
libobj-y += sh4-dis.o |
120 |
endif |
121 |
ifeq ($(findstring hppa, $(TARGET_BASE_ARCH) $(ARCH)),hppa) |
122 |
libobj-y += hppa-dis.o |
123 |
endif |
124 |
ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390) |
125 |
libobj-y += s390-dis.o |
126 |
endif |
127 |
|
128 |
# libqemu |
129 |
|
130 |
libqemu.a: $(libobj-y) |
131 |
|
132 |
translate.o: translate.c cpu.h |
133 |
|
134 |
translate-all.o: translate-all.c cpu.h |
135 |
|
136 |
tcg/tcg.o: cpu.h |
137 |
|
138 |
# HELPER_CFLAGS is used for all the code compiled with static register |
139 |
# variables |
140 |
op_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
141 |
|
142 |
cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
143 |
|
144 |
# Note: this is a workaround. The real fix is to avoid compiling |
145 |
# cpu_signal_handler() in cpu-exec.c. |
146 |
signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
147 |
|
148 |
######################################################### |
149 |
# Linux user emulator target |
150 |
|
151 |
ifdef CONFIG_LINUX_USER |
152 |
|
153 |
VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) |
154 |
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) |
155 |
|
156 |
# profiling code |
157 |
ifdef TARGET_GPROF |
158 |
LDFLAGS+=-p |
159 |
QEMU_CFLAGS+=-p |
160 |
endif |
161 |
|
162 |
obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \ |
163 |
elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \ |
164 |
ioport-user.o |
165 |
obj-$(TARGET_HAS_BFLT) += flatload.o |
166 |
obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o |
167 |
|
168 |
ifeq ($(TARGET_ARCH), i386) |
169 |
obj-y += vm86.o |
170 |
endif |
171 |
|
172 |
nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o |
173 |
nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o |
174 |
obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y)) |
175 |
obj-arm-y += arm-semi.o |
176 |
|
177 |
obj-m68k-y += m68k-sim.o m68k-semi.o |
178 |
|
179 |
ARLIBS=../libqemu_user.a libqemu.a |
180 |
endif #CONFIG_LINUX_USER |
181 |
|
182 |
######################################################### |
183 |
# Darwin user emulator target |
184 |
|
185 |
ifdef CONFIG_DARWIN_USER |
186 |
|
187 |
VPATH+=:$(SRC_PATH)/darwin-user |
188 |
QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH) |
189 |
|
190 |
# Leave some space for the regular program loading zone |
191 |
LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000 |
192 |
|
193 |
LIBS+=-lmx |
194 |
|
195 |
obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \ |
196 |
gdbstub.o gdbstub-xml.o ioport-user.o |
197 |
|
198 |
ARLIBS=libqemu.a |
199 |
|
200 |
endif #CONFIG_DARWIN_USER |
201 |
|
202 |
######################################################### |
203 |
# BSD user emulator target |
204 |
|
205 |
ifdef CONFIG_BSD_USER |
206 |
|
207 |
VPATH+=:$(SRC_PATH)/bsd-user |
208 |
QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH) |
209 |
|
210 |
obj-y = main.o bsdload.o elfload.o mmap.o path.o signal.o strace.o syscall.o \ |
211 |
gdbstub.o gdbstub-xml.o ioport-user.o |
212 |
obj-y += uaccess.o |
213 |
|
214 |
ARLIBS=libqemu.a ../libqemu_user.a |
215 |
|
216 |
endif #CONFIG_BSD_USER |
217 |
|
218 |
######################################################### |
219 |
# System emulator target |
220 |
ifndef CONFIG_USER_ONLY |
221 |
|
222 |
obj-y = vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o \ |
223 |
gdbstub.o gdbstub-xml.o msix.o ioport.o qemu-config.o |
224 |
# virtio has to be here due to weird dependency between PCI and virtio-net. |
225 |
# need to fix this properly |
226 |
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o |
227 |
obj-$(CONFIG_KVM) += kvm.o kvm-all.o |
228 |
|
229 |
LIBS+=-lz |
230 |
ifdef CONFIG_ALSA |
231 |
LIBS += -lasound |
232 |
endif |
233 |
ifdef CONFIG_ESD |
234 |
LIBS += -lesd |
235 |
endif |
236 |
ifdef CONFIG_PA |
237 |
LIBS += -lpulse-simple |
238 |
endif |
239 |
ifdef CONFIG_DSOUND |
240 |
LIBS += -lole32 -ldxguid |
241 |
endif |
242 |
ifdef CONFIG_FMOD |
243 |
LIBS += $(FMOD_LIBS) |
244 |
endif |
245 |
ifdef CONFIG_OSS |
246 |
LIBS += $(OSS_LIBS) |
247 |
endif |
248 |
|
249 |
sound-obj-y = |
250 |
sound-obj-$(CONFIG_SB16) += sb16.o |
251 |
sound-obj-$(CONFIG_ES1370) += es1370.o |
252 |
sound-obj-$(CONFIG_AC97) += ac97.o |
253 |
sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o |
254 |
sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o |
255 |
sound-obj-$(CONFIG_CS4231A) += cs4231a.o |
256 |
|
257 |
ifdef CONFIG_ADLIB |
258 |
adlib.o fmopl.o: QEMU_CFLAGS := ${QEMU_CFLAGS} -DBUILD_Y8950=0 |
259 |
endif |
260 |
|
261 |
ifdef CONFIG_VNC_TLS |
262 |
QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
263 |
LIBS += $(VNC_TLS_LIBS) |
264 |
endif |
265 |
|
266 |
ifdef CONFIG_VNC_SASL |
267 |
QEMU_CFLAGS += $(VNC_SASL_CFLAGS) |
268 |
LIBS += $(VNC_SASL_LIBS) |
269 |
endif |
270 |
|
271 |
ifdef CONFIG_BLUEZ |
272 |
LIBS += $(BLUEZ_LIBS) |
273 |
endif |
274 |
|
275 |
# xen backend driver support |
276 |
obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o |
277 |
ifeq ($(CONFIG_XEN), y) |
278 |
LIBS += $(XEN_LIBS) |
279 |
endif |
280 |
|
281 |
# USB layer |
282 |
obj-y += usb-ohci.o |
283 |
|
284 |
# PCI network cards |
285 |
obj-y += eepro100.o |
286 |
obj-y += ne2000.o |
287 |
obj-y += pcnet.o |
288 |
obj-y += rtl8139.o |
289 |
obj-y += e1000.o |
290 |
|
291 |
# Generic watchdog support and some watchdog devices |
292 |
obj-y += wdt_ib700.o wdt_i6300esb.o |
293 |
|
294 |
# Hardware support |
295 |
obj-i386-y = ide.o pckbd.o vga.o $(sound-obj-y) dma.o isa-bus.o |
296 |
obj-i386-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o |
297 |
obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o |
298 |
obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o |
299 |
obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o |
300 |
|
301 |
ifeq ($(TARGET_BASE_ARCH), i386) |
302 |
QEMU_CFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE |
303 |
endif |
304 |
|
305 |
# shared objects |
306 |
obj-ppc-y = ppc.o ide.o vga.o $(sound-obj-y) dma.o isa-bus.o openpic.o |
307 |
# PREP target |
308 |
obj-ppc-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o |
309 |
obj-ppc-y += prep_pci.o ppc_prep.o |
310 |
# Mac shared devices |
311 |
obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o |
312 |
# OldWorld PowerMac |
313 |
obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o |
314 |
# NewWorld PowerMac |
315 |
obj-ppc-y += unin_pci.o ppc_newworld.o |
316 |
# PowerPC 4xx boards |
317 |
obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o |
318 |
obj-ppc-y += ppc440.o ppc440_bamboo.o |
319 |
# PowerPC E500 boards |
320 |
obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o |
321 |
obj-ppc-$(CONFIG_KVM) += kvm_ppc.o |
322 |
|
323 |
ifeq ($(TARGET_BASE_ARCH), ppc) |
324 |
QEMU_CFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE |
325 |
endif |
326 |
|
327 |
obj-ppc-$(CONFIG_FDT) += device_tree.o |
328 |
LIBS+= $(FDT_LIBS) |
329 |
|
330 |
obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o |
331 |
obj-mips-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o |
332 |
obj-mips-y += g364fb.o jazz_led.o dp8393x.o |
333 |
obj-mips-y += ide.o gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o |
334 |
obj-mips-y += piix_pci.o parallel.o cirrus_vga.o isa-bus.o pcspk.o $(sound-obj-y) |
335 |
obj-mips-y += mipsnet.o |
336 |
obj-mips-y += pflash_cfi01.o |
337 |
obj-mips-y += vmware_vga.o |
338 |
|
339 |
ifeq ($(TARGET_BASE_ARCH), mips) |
340 |
QEMU_CFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE |
341 |
endif |
342 |
|
343 |
obj-microblaze-y = petalogix_s3adsp1800_mmu.o |
344 |
|
345 |
obj-microblaze-y += microblaze_pic_cpu.o |
346 |
obj-microblaze-y += xilinx_intc.o |
347 |
obj-microblaze-y += xilinx_timer.o |
348 |
obj-microblaze-y += xilinx_uartlite.o |
349 |
obj-microblaze-y += xilinx_ethlite.o |
350 |
|
351 |
obj-microblaze-y += pflash_cfi02.o |
352 |
|
353 |
obj-microblaze-$(CONFIG_FDT) += device_tree.o |
354 |
LIBS+= $(FDT_LIBS) |
355 |
|
356 |
# Boards |
357 |
obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o |
358 |
|
359 |
# IO blocks |
360 |
obj-cris-y += etraxfs_dma.o |
361 |
obj-cris-y += etraxfs_pic.o |
362 |
obj-cris-y += etraxfs_eth.o |
363 |
obj-cris-y += etraxfs_timer.o |
364 |
obj-cris-y += etraxfs_ser.o |
365 |
|
366 |
obj-cris-y += pflash_cfi02.o |
367 |
|
368 |
ifeq ($(TARGET_ARCH), sparc64) |
369 |
obj-sparc-y = sun4u.o ide.o isa-bus.o pckbd.o vga.o apb_pci.o |
370 |
obj-sparc-y += fdc.o mc146818rtc.o serial.o |
371 |
obj-sparc-y += cirrus_vga.o parallel.o |
372 |
else |
373 |
obj-sparc-y = sun4m.o tcx.o iommu.o slavio_intctl.o |
374 |
obj-sparc-y += slavio_timer.o slavio_misc.o fdc.o isa-bus.o sparc32_dma.o |
375 |
obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o |
376 |
endif |
377 |
|
378 |
obj-arm-y = integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o |
379 |
obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o |
380 |
obj-arm-y += versatile_pci.o |
381 |
obj-arm-y += realview_gic.o realview.o arm_sysctl.o mpcore.o |
382 |
obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o |
383 |
obj-arm-y += pl061.o |
384 |
obj-arm-y += arm-semi.o |
385 |
obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o |
386 |
obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o |
387 |
obj-arm-y += pflash_cfi01.o gumstix.o |
388 |
obj-arm-y += zaurus.o ide.o serial.o spitz.o tosa.o tc6393xb.o |
389 |
obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o |
390 |
obj-arm-y += omap2.o omap_dss.o soc_dma.o |
391 |
obj-arm-y += omap_sx1.o palm.o tsc210x.o |
392 |
obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o |
393 |
obj-arm-y += mst_fpga.o mainstone.o |
394 |
obj-arm-y += musicpal.o pflash_cfi02.o |
395 |
obj-arm-y += framebuffer.o |
396 |
obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o |
397 |
obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o |
398 |
obj-arm-y += syborg_virtio.o |
399 |
|
400 |
ifeq ($(TARGET_BASE_ARCH), arm) |
401 |
QEMU_CFLAGS += -DHAS_AUDIO |
402 |
endif |
403 |
|
404 |
obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o |
405 |
obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o |
406 |
obj-sh4-y += ide.o |
407 |
|
408 |
obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o |
409 |
obj-m68k-y += m68k-semi.o dummy_m68k.o |
410 |
|
411 |
ifdef CONFIG_COCOA |
412 |
COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit |
413 |
endif |
414 |
ifdef CONFIG_SLIRP |
415 |
QEMU_CFLAGS+=-I$(SRC_PATH)/slirp |
416 |
endif |
417 |
|
418 |
# specific flags are needed for non soft mmu emulator |
419 |
ifndef CONFIG_DARWIN |
420 |
ifndef CONFIG_WIN32 |
421 |
ifndef CONFIG_SOLARIS |
422 |
ifndef CONFIG_AIX |
423 |
LIBS+=-lutil |
424 |
endif |
425 |
endif |
426 |
endif |
427 |
endif |
428 |
ifdef TARGET_GPROF |
429 |
vl.o: QEMU_CFLAGS+=-p |
430 |
LDFLAGS+=-p |
431 |
endif |
432 |
|
433 |
ifeq ($(ARCH),ia64) |
434 |
LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld |
435 |
endif |
436 |
|
437 |
# profiling code |
438 |
ifdef TARGET_GPROF |
439 |
LDFLAGS+=-p |
440 |
main.o: QEMU_CFLAGS+=-p |
441 |
endif |
442 |
|
443 |
vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) |
444 |
|
445 |
vl.o: qemu-options.h |
446 |
|
447 |
monitor.o: qemu-monitor.h |
448 |
|
449 |
LIBS += $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS) |
450 |
ARLIBS=../libqemu_common.a libqemu.a $(HWLIB) |
451 |
|
452 |
endif # !CONFIG_USER_ONLY |
453 |
|
454 |
$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS) |
455 |
$(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)) |
456 |
|
457 |
|
458 |
gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh |
459 |
ifeq ($(TARGET_XML_FILES),) |
460 |
$(call quiet-command,rm -f $@ && echo > $@," GEN $(TARGET_DIR)$@") |
461 |
else |
462 |
$(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@") |
463 |
endif |
464 |
|
465 |
qemu-options.h: $(SRC_PATH)/qemu-options.hx |
466 |
$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
467 |
|
468 |
qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx |
469 |
$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
470 |
|
471 |
clean: |
472 |
rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o |
473 |
rm -f *.d */*.d tcg/*.o |
474 |
rm -f qemu-options.h qemu-monitor.h gdbstub-xml.c |
475 |
|
476 |
install: all |
477 |
ifneq ($(PROGS),) |
478 |
$(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)" |
479 |
endif |
480 |
|
481 |
# Include automatically generated dependency files |
482 |
-include $(wildcard *.d */*.d) |