Statistics
| Branch: | Revision:

root / Makefile.target @ a4773324

History | View | Annotate | Download (12.4 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 6dbd588a Jan Kiszka
CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y)
7 f527c579 Juan Quintela
8 deed3ccf Juan Quintela
include ../config-host.mak
9 1f3d3c8f Juan Quintela
include config-devices.mak
10 25be210f Juan Quintela
include config-target.mak
11 17759187 aliguori
include $(SRC_PATH)/rules.mak
12 0e8c9214 Andreas Färber
ifneq ($(HWDIR),)
13 0e8c9214 Andreas Färber
include $(HWDIR)/config.mak
14 0e8c9214 Andreas Färber
endif
15 626df76a bellard
16 0b0babc6 bellard
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
17 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw)
18 af2be207 Jan Kiszka
ifdef CONFIG_LINUX
19 af2be207 Jan Kiszka
QEMU_CFLAGS += -I../linux-headers
20 af2be207 Jan Kiszka
endif
21 af2be207 Jan Kiszka
QEMU_CFLAGS += -I.. -I$(TARGET_PATH) -DNEED_CPU_H
22 40293e58 bellard
23 0e8c9214 Andreas Färber
include $(SRC_PATH)/Makefile.objs
24 0e8c9214 Andreas Färber
25 40293e58 bellard
ifdef CONFIG_USER_ONLY
26 40293e58 bellard
# user emulator name
27 40293e58 bellard
QEMU_PROG=qemu-$(TARGET_ARCH2)
28 40293e58 bellard
else
29 1e43adfc bellard
# system emulator name
30 40293e58 bellard
QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
31 a541f297 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 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 6d8a764e Lluís
ifdef CONFIG_TRACE_SYSTEMTAP
44 c276b17d Daniel P. Berrange
stap: $(QEMU_PROG).stp
45 c276b17d Daniel P. Berrange
46 c276b17d Daniel P. Berrange
ifdef CONFIG_USER_ONLY
47 c276b17d Daniel P. Berrange
TARGET_TYPE=user
48 c276b17d Daniel P. Berrange
else
49 c276b17d Daniel P. Berrange
TARGET_TYPE=system
50 c276b17d Daniel P. Berrange
endif
51 c276b17d Daniel P. Berrange
52 c276b17d Daniel P. Berrange
$(QEMU_PROG).stp:
53 4c3b5a48 Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool \
54 c276b17d Daniel P. Berrange
		--$(TRACE_BACKEND) \
55 c276b17d Daniel P. Berrange
		--binary $(bindir)/$(QEMU_PROG) \
56 c276b17d Daniel P. Berrange
		--target-arch $(TARGET_ARCH) \
57 c276b17d Daniel P. Berrange
		--target-type $(TARGET_TYPE) \
58 c276b17d Daniel P. Berrange
		--stap < $(SRC_PATH)/trace-events > $(QEMU_PROG).stp,"  GEN   $(QEMU_PROG).stp")
59 c276b17d Daniel P. Berrange
else
60 c276b17d Daniel P. Berrange
stap:
61 c276b17d Daniel P. Berrange
endif
62 c276b17d Daniel P. Berrange
63 c276b17d Daniel P. Berrange
all: $(PROGS) stap
64 91880d96 Juan Quintela
65 c2fb2637 Paul Brook
# Dummy command so that make thinks it has done something
66 c2fb2637 Paul Brook
	@true
67 626df76a bellard
68 40293e58 bellard
#########################################################
69 626df76a bellard
# cpu emulator library
70 c2b023b6 Blue Swirl
libobj-y = exec.o translate-all.o cpu-exec.o translate.o
71 8f2e8c07 Kirill Batuzov
libobj-y += tcg/tcg.o tcg/optimize.o
72 cf67c6ba Aurelien Jarno
libobj-y += fpu/softfloat.o
73 c9e0df73 Juan Quintela
libobj-y += op_helper.o helper.o
74 c6dc6f63 Andre Przywara
ifeq ($(TARGET_BASE_ARCH), i386)
75 c6dc6f63 Andre Przywara
libobj-y += cpuid.o
76 c6dc6f63 Andre Przywara
endif
77 471857dd Juan Quintela
libobj-$(CONFIG_NEED_MMU) += mmu.o
78 e18ea868 Juan Quintela
libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o
79 cf6c1b16 j_mayer
80 c9e0df73 Juan Quintela
libobj-y += disas.o
81 626df76a bellard
82 0e8c9214 Andreas Färber
$(libobj-y): $(GENERATED_HEADERS)
83 40293e58 bellard
84 0e8c9214 Andreas Färber
# libqemu
85 40293e58 bellard
86 86e840ee aurel32
translate.o: translate.c cpu.h
87 40293e58 bellard
88 86e840ee aurel32
translate-all.o: translate-all.c cpu.h
89 40293e58 bellard
90 86e840ee aurel32
tcg/tcg.o: cpu.h
91 40293e58 bellard
92 40293e58 bellard
# HELPER_CFLAGS is used for all the code compiled with static register
93 40293e58 bellard
# variables
94 a3ce3668 Blue Swirl
op_helper.o user-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
95 40293e58 bellard
96 c81da56e Juan Quintela
# Note: this is a workaround. The real fix is to avoid compiling
97 42a623c7 Blue Swirl
# cpu_signal_handler() in user-exec.c.
98 c81da56e Juan Quintela
signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
99 c81da56e Juan Quintela
100 40293e58 bellard
#########################################################
101 40293e58 bellard
# Linux user emulator target
102 40293e58 bellard
103 40293e58 bellard
ifdef CONFIG_LINUX_USER
104 40293e58 bellard
105 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR))
106 076d2471 Paolo Bonzini
107 c3109ba1 Mike Frysinger
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) -I$(SRC_PATH)/linux-user
108 37022086 Blue Swirl
obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
109 680c877a Richard Henderson
      elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o \
110 41a74826 Anthony Liguori
      user-exec.o $(oslib-obj-y)
111 5ba65319 Blue Swirl
112 943e0a31 Juan Quintela
obj-$(TARGET_HAS_BFLT) += flatload.o
113 40293e58 bellard
114 e18ea868 Juan Quintela
obj-$(TARGET_I386) += vm86.o
115 1c872672 Juan Quintela
116 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
117 5ba65319 Blue Swirl
118 ed69c30d Juan Quintela
nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
119 9c1dd99b Juan Quintela
nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
120 1c872672 Juan Quintela
obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))
121 1c872672 Juan Quintela
obj-arm-y += arm-semi.o
122 1c872672 Juan Quintela
123 1c872672 Juan Quintela
obj-m68k-y += m68k-sim.o m68k-semi.o
124 40293e58 bellard
125 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
126 0e8c9214 Andreas Färber
127 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
128 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
129 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
130 add16157 Blue Swirl
131 40293e58 bellard
endif #CONFIG_LINUX_USER
132 40293e58 bellard
133 40293e58 bellard
#########################################################
134 40293e58 bellard
# Darwin user emulator target
135 40293e58 bellard
136 40293e58 bellard
ifdef CONFIG_DARWIN_USER
137 40293e58 bellard
138 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/darwin-user)
139 076d2471 Paolo Bonzini
140 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
141 40293e58 bellard
142 40293e58 bellard
# Leave some space for the regular program loading zone
143 40293e58 bellard
LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
144 40293e58 bellard
145 40293e58 bellard
LIBS+=-lmx
146 40293e58 bellard
147 a8e492c0 Juan Quintela
obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
148 42a623c7 Blue Swirl
        gdbstub.o user-exec.o
149 5ba65319 Blue Swirl
150 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
151 40293e58 bellard
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 40293e58 bellard
158 40293e58 bellard
endif #CONFIG_DARWIN_USER
159 40293e58 bellard
160 40293e58 bellard
#########################################################
161 84778508 blueswir1
# BSD user emulator target
162 84778508 blueswir1
163 84778508 blueswir1
ifdef CONFIG_BSD_USER
164 84778508 blueswir1
165 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/bsd-user)
166 076d2471 Paolo Bonzini
167 a558ee17 Juan Quintela
QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
168 84778508 blueswir1
169 37022086 Blue Swirl
obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
170 42a623c7 Blue Swirl
        gdbstub.o uaccess.o user-exec.o
171 5ba65319 Blue Swirl
172 e27b27b3 Blue Swirl
obj-i386-y += ioport-user.o
173 84778508 blueswir1
174 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
175 0e8c9214 Andreas Färber
176 0e8c9214 Andreas Färber
obj-y += $(addprefix ../libuser/, $(user-obj-y))
177 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis-user/, $(libdis-y))
178 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
179 84778508 blueswir1
180 84778508 blueswir1
endif #CONFIG_BSD_USER
181 84778508 blueswir1
182 84778508 blueswir1
#########################################################
183 40293e58 bellard
# System emulator target
184 76dfdd24 Juan Quintela
ifdef CONFIG_SOFTMMU
185 40293e58 bellard
186 04c9a0cb Blue Swirl
obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
187 1fd31ad7 aliguori
# virtio has to be here due to weird dependency between PCI and virtio-net.
188 1fd31ad7 aliguori
# need to fix this properly
189 b3a29fd5 Isaku Yamahata
obj-$(CONFIG_NO_PCI) += pci-stub.o
190 21673cde Blue Swirl
obj-$(CONFIG_VIRTIO) += virtio.o virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
191 d5970055 Michael S. Tsirkin
obj-y += vhost_net.o
192 d5970055 Michael S. Tsirkin
obj-$(CONFIG_VHOST_NET) += vhost.o
193 f4f61d27 Aneesh Kumar K.V
obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/virtio-9p-device.o
194 a8e492c0 Juan Quintela
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
195 98c8573e Paolo Bonzini
obj-$(CONFIG_NO_KVM) += kvm-stub.o
196 093bc2cd Avi Kivity
obj-y += memory.o
197 40293e58 bellard
LIBS+=-lz
198 4fb240a4 bellard
199 a558ee17 Juan Quintela
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
200 a558ee17 Juan Quintela
QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
201 2f6f5c7a Corentin Chary
QEMU_CFLAGS += $(VNC_JPEG_CFLAGS)
202 efe556ad Corentin Chary
QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
203 e18df141 Anthony Liguori
QEMU_CFLAGS += $(GLIB_CFLAGS)
204 2f9606b3 aliguori
205 3285cf4f Anthony PERARD
# xen support
206 868bb33f Jan Kiszka
obj-$(CONFIG_XEN) += xen-all.o xen_machine_pv.o xen_domainbuild.o xen-mapcache.o
207 3285cf4f Anthony PERARD
obj-$(CONFIG_NO_XEN) += xen-stub.o
208 3285cf4f Anthony PERARD
209 01195b73 Steven Smith
obj-i386-$(CONFIG_XEN) += xen_platform.o
210 01195b73 Steven Smith
211 6cbf4c8c Cam Macdonell
# Inter-VM PCI shared memory
212 1b01b4e7 Alexander Graf
CONFIG_IVSHMEM =
213 1b01b4e7 Alexander Graf
ifeq ($(CONFIG_KVM), y)
214 1b01b4e7 Alexander Graf
  ifeq ($(CONFIG_PCI), y)
215 1b01b4e7 Alexander Graf
    CONFIG_IVSHMEM = y
216 1b01b4e7 Alexander Graf
  endif
217 1b01b4e7 Alexander Graf
endif
218 1b01b4e7 Alexander Graf
obj-$(CONFIG_IVSHMEM) += ivshmem.o
219 6cbf4c8c Cam Macdonell
220 a541f297 bellard
# Hardware support
221 7f55c7ce Blue Swirl
obj-i386-y += vga.o
222 2d48377a Blue Swirl
obj-i386-y += mc146818rtc.o i8259.o pc.o
223 a90d4690 Glauber Costa
obj-i386-y += cirrus_vga.o sga.o apic.o ioapic.o piix_pci.o
224 1c9c5fcd Blue Swirl
obj-i386-y += vmport.o
225 09aaa160 Markus Armbruster
obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
226 d3ffc7a6 Blue Swirl
obj-i386-y += debugcon.o multiboot.o
227 af2be207 Jan Kiszka
obj-i386-y += pc_piix.o
228 af2be207 Jan Kiszka
obj-i386-$(CONFIG_KVM) += kvmclock.o
229 a19cbfb3 Gerd Hoffmann
obj-i386-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o
230 9637443f Juan Quintela
231 3cbee15b j_mayer
# shared objects
232 02c7c992 Blue Swirl
obj-ppc-y = ppc.o
233 4556bd8b Blue Swirl
obj-ppc-y += vga.o
234 3cbee15b j_mayer
# PREP target
235 956a3e6b Blue Swirl
obj-ppc-y += i8259.o mc146818rtc.o
236 add85a76 Blue Swirl
obj-ppc-y += ppc_prep.o
237 3cbee15b j_mayer
# OldWorld PowerMac
238 2b5eb371 Blue Swirl
obj-ppc-y += ppc_oldworld.o
239 3cbee15b j_mayer
# NewWorld PowerMac
240 2b5eb371 Blue Swirl
obj-ppc-y += ppc_newworld.o
241 4040ab72 David Gibson
# IBM pSeries (sPAPR)
242 9fdf0c29 David Gibson
ifeq ($(CONFIG_FDT)$(TARGET_PPC64),yy)
243 39ac8455 David Gibson
obj-ppc-y += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o
244 6e270446 Ben Herrenschmidt
obj-ppc-y += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o
245 9fdf0c29 David Gibson
endif
246 3cbee15b j_mayer
# PowerPC 4xx boards
247 5f9fc5ad Blue Swirl
obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
248 9637443f Juan Quintela
obj-ppc-y += ppc440.o ppc440_bamboo.o
249 74c62ba8 aurel32
# PowerPC E500 boards
250 b0fb8423 Alexander Graf
obj-ppc-y += ppce500_mpc8544ds.o mpc8544_guts.o
251 2c50e26e Edgar E. Iglesias
# PowerPC 440 Xilinx ML507 reference board.
252 2c50e26e Edgar E. Iglesias
obj-ppc-y += virtex_ml507.o
253 9637443f Juan Quintela
obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
254 3f0855b1 Juan Quintela
obj-ppc-$(CONFIG_FDT) += device_tree.o
255 9637443f Juan Quintela
256 2c50e26e Edgar E. Iglesias
# Xilinx PPC peripherals
257 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_intc.o
258 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_timer.o
259 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_uartlite.o
260 2c50e26e Edgar E. Iglesias
obj-ppc-y += xilinx_ethlite.o
261 2c50e26e Edgar E. Iglesias
262 d821732a Michael Walle
# LM32 boards
263 d821732a Michael Walle
obj-lm32-y += lm32_boards.o
264 5052d227 Michael Walle
obj-lm32-y += milkymist.o
265 d821732a Michael Walle
266 81ea0e13 Michael Walle
# LM32 peripherals
267 4ef66fa7 Michael Walle
obj-lm32-y += lm32_pic.o
268 15d7dc4f Michael Walle
obj-lm32-y += lm32_juart.o
269 ea7924dc Michael Walle
obj-lm32-y += lm32_timer.o
270 770ae571 Michael Walle
obj-lm32-y += lm32_uart.o
271 f19410ca Michael Walle
obj-lm32-y += lm32_sys.o
272 25a8bb96 Michael Walle
obj-lm32-y += milkymist-ac97.o
273 e4dc6d2c Michael Walle
obj-lm32-y += milkymist-hpdmc.o
274 b4e37d98 Michael Walle
obj-lm32-y += milkymist-memcard.o
275 57aa265d Michael Walle
obj-lm32-y += milkymist-minimac2.o
276 5ee18b9c Michael Walle
obj-lm32-y += milkymist-pfpu.o
277 87a381ec Michael Walle
obj-lm32-y += milkymist-softusb.o
278 96832424 Michael Walle
obj-lm32-y += milkymist-sysctl.o
279 0670dadd Michael Walle
obj-lm32-$(CONFIG_OPENGL) += milkymist-tmu2.o
280 883de16b Michael Walle
obj-lm32-y += milkymist-uart.o
281 d23948b1 Michael Walle
obj-lm32-y += milkymist-vgafb.o
282 d23948b1 Michael Walle
obj-lm32-y += framebuffer.o
283 81ea0e13 Michael Walle
284 9637443f Juan Quintela
obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
285 409dbce5 Aurelien Jarno
obj-mips-y += mips_addr.o mips_timer.o mips_int.o
286 4556bd8b Blue Swirl
obj-mips-y += vga.o i8259.o
287 1213406b Blue Swirl
obj-mips-y += jazz_led.o
288 956a3e6b Blue Swirl
obj-mips-y += gt64xxx.o mc146818rtc.o
289 08af49da Blue Swirl
obj-mips-y += cirrus_vga.o
290 051c190b Huacai Chen
obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o
291 9637443f Juan Quintela
292 9637443f Juan Quintela
obj-microblaze-y = petalogix_s3adsp1800_mmu.o
293 00914b7d Michal Simek
obj-microblaze-y += petalogix_ml605_mmu.o
294 9637443f Juan Quintela
295 9637443f Juan Quintela
obj-microblaze-y += microblaze_pic_cpu.o
296 9637443f Juan Quintela
obj-microblaze-y += xilinx_intc.o
297 9637443f Juan Quintela
obj-microblaze-y += xilinx_timer.o
298 9637443f Juan Quintela
obj-microblaze-y += xilinx_uartlite.o
299 9637443f Juan Quintela
obj-microblaze-y += xilinx_ethlite.o
300 93f1e401 Edgar E. Iglesias
obj-microblaze-y += xilinx_axidma.o
301 93f1e401 Edgar E. Iglesias
obj-microblaze-y += xilinx_axienet.o
302 9637443f Juan Quintela
303 3f0855b1 Juan Quintela
obj-microblaze-$(CONFIG_FDT) += device_tree.o
304 9637443f Juan Quintela
305 10c144e2 edgar_igl
# Boards
306 77d4f95e Edgar E. Iglesias
obj-cris-y = cris_pic_cpu.o
307 77d4f95e Edgar E. Iglesias
obj-cris-y += cris-boot.o
308 77d4f95e Edgar E. Iglesias
obj-cris-y += axis_dev88.o
309 10c144e2 edgar_igl
310 10c144e2 edgar_igl
# IO blocks
311 9637443f Juan Quintela
obj-cris-y += etraxfs_dma.o
312 9637443f Juan Quintela
obj-cris-y += etraxfs_pic.o
313 9637443f Juan Quintela
obj-cris-y += etraxfs_eth.o
314 9637443f Juan Quintela
obj-cris-y += etraxfs_timer.o
315 9637443f Juan Quintela
obj-cris-y += etraxfs_ser.o
316 9637443f Juan Quintela
317 3475187d bellard
ifeq ($(TARGET_ARCH), sparc64)
318 956a3e6b Blue Swirl
obj-sparc-y = sun4u.o apb_pci.o
319 1afdfddc Blue Swirl
obj-sparc-y += vga.o
320 2d48377a Blue Swirl
obj-sparc-y += mc146818rtc.o
321 b9945046 Blue Swirl
obj-sparc-y += cirrus_vga.o
322 3475187d bellard
else
323 24056690 Blue Swirl
obj-sparc-y = sun4m.o lance.o tcx.o sun4m_iommu.o slavio_intctl.o
324 35da37e1 Blue Swirl
obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o
325 b04d9890 Fabien Chouteau
obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o leon3.o
326 b04d9890 Fabien Chouteau
327 b04d9890 Fabien Chouteau
# GRLIB
328 b04d9890 Fabien Chouteau
obj-sparc-y += grlib_gptimer.o grlib_irqmp.o grlib_apbuart.o
329 9637443f Juan Quintela
endif
330 9637443f Juan Quintela
331 f165b53a Paul Brook
obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o
332 9637443f Juan Quintela
obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
333 9637443f Juan Quintela
obj-arm-y += versatile_pci.o
334 f7c70325 Paul Brook
obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o
335 9637443f Juan Quintela
obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
336 9637443f Juan Quintela
obj-arm-y += pl061.o
337 9637443f Juan Quintela
obj-arm-y += arm-semi.o
338 9637443f Juan Quintela
obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
339 9637443f Juan Quintela
obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
340 3d08ff69 Blue Swirl
obj-arm-y += gumstix.o
341 f7736b91 Blue Swirl
obj-arm-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o
342 02d74341 cmchao
obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \
343 02d74341 cmchao
		omap_gpio.o omap_intc.o omap_uart.o
344 2c1d9ecb cmchao
obj-arm-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \
345 2c1d9ecb cmchao
		omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o
346 9637443f Juan Quintela
obj-arm-y += omap_sx1.o palm.o tsc210x.o
347 9637443f Juan Quintela
obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
348 9637443f Juan Quintela
obj-arm-y += mst_fpga.o mainstone.o
349 3bf11207 Vasily Khoruzhick
obj-arm-y += z2.o
350 5f9fc5ad Blue Swirl
obj-arm-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o
351 9637443f Juan Quintela
obj-arm-y += framebuffer.o
352 9637443f Juan Quintela
obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
353 9637443f Juan Quintela
obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
354 9637443f Juan Quintela
obj-arm-y += syborg_virtio.o
355 2055283b Peter Maydell
obj-arm-y += vexpress.o
356 5bc95aa2 Dmitry Eremin-Solenikov
obj-arm-y += strongarm.o
357 c64b21d5 Dmitry Eremin-Solenikov
obj-arm-y += collie.o
358 9637443f Juan Quintela
359 9637443f Juan Quintela
obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
360 2d48377a Blue Swirl
obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o
361 f7736b91 Blue Swirl
obj-sh4-y += ide/mmio.o
362 9637443f Juan Quintela
363 9637443f Juan Quintela
obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
364 9637443f Juan Quintela
obj-m68k-y += m68k-semi.o dummy_m68k.o
365 9637443f Juan Quintela
366 8cb310e1 Alexander Graf
obj-s390x-y = s390-virtio-bus.o s390-virtio.o
367 f3304eea Alexander Graf
368 b758aca1 Richard Henderson
obj-alpha-y = i8259.o mc146818rtc.o
369 b758aca1 Richard Henderson
obj-alpha-y += vga.o cirrus_vga.o
370 6049f4f8 Richard Henderson
371 2328826b Max Filippov
obj-xtensa-y += xtensa_pic.o
372 7b039f74 Max Filippov
obj-xtensa-y += xtensa_sample.o
373 47d05a86 Max Filippov
obj-xtensa-y += xtensa_dc232b.o
374 1ddeaa5d Max Filippov
obj-xtensa-y += xtensa-semi.o
375 2328826b Max Filippov
376 ad96090a Blue Swirl
main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
377 5824d651 blueswir1
378 acd0a093 Luiz Capitulino
monitor.o: hmp-commands.h qmp-commands.h
379 2313086a Blue Swirl
380 0e8c9214 Andreas Färber
$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
381 0e8c9214 Andreas Färber
382 0e8c9214 Andreas Färber
obj-y += $(addprefix ../, $(common-obj-y))
383 4d904533 Blue Swirl
obj-y += $(addprefix ../libdis/, $(libdis-y))
384 0e8c9214 Andreas Färber
obj-y += $(libobj-y)
385 0e8c9214 Andreas Färber
obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
386 937b1258 Lluís Vilanova
obj-y += $(addprefix ../, $(trace-obj-y))
387 626df76a bellard
388 76dfdd24 Juan Quintela
endif # CONFIG_SOFTMMU
389 00a67ba1 bellard
390 111a38b0 Robert Relyea
ifndef CONFIG_LINUX_USER
391 0fc6b582 Brad
ifndef CONFIG_BSD_USER
392 111a38b0 Robert Relyea
# libcacard needs qemu-thread support, and besides is only needed by devices
393 0fc6b582 Brad
# so not requires with linux-user / bsd-user targets
394 111a38b0 Robert Relyea
obj-$(CONFIG_SMARTCARD_NSS) += $(addprefix ../libcacard/, $(libcacard-y))
395 0fc6b582 Brad
endif # CONFIG_BSD_USER
396 111a38b0 Robert Relyea
endif # CONFIG_LINUX_USER
397 111a38b0 Robert Relyea
398 3d0f1517 Juan Quintela
obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
399 3d0f1517 Juan Quintela
400 0e8c9214 Andreas Färber
$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
401 e03b41d4 Lluís
	$(call LINK,$^)
402 16394485 Juan Quintela
403 16394485 Juan Quintela
404 4c3b5a48 Blue Swirl
gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh
405 4c3b5a48 Blue Swirl
	$(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/scripts/feature_to_c.sh $@ $(TARGET_XML_FILES),"  GEN   $(TARGET_DIR)$@")
406 56aebc89 pbrook
407 acd0a093 Luiz Capitulino
hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
408 4c3b5a48 Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
409 2313086a Blue Swirl
410 f36b4afb Luiz Capitulino
qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
411 4c3b5a48 Blue Swirl
	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
412 2313086a Blue Swirl
413 626df76a bellard
clean:
414 2313086a Blue Swirl
	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
415 353ac78d Aneesh Kumar K.V
	rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o
416 acd0a093 Luiz Capitulino
	rm -f hmp-commands.h qmp-commands.h gdbstub-xml.c
417 6d8a764e Lluís
ifdef CONFIG_TRACE_SYSTEMTAP
418 c276b17d Daniel P. Berrange
	rm -f *.stp
419 c276b17d Daniel P. Berrange
endif
420 1e43adfc bellard
421 5fafdf24 ths
install: all
422 9b14bb04 bellard
ifneq ($(PROGS),)
423 52ba784d Hollis Blanchard
	$(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
424 52ba784d Hollis Blanchard
ifneq ($(STRIP),)
425 52ba784d Hollis Blanchard
	$(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS))
426 52ba784d Hollis Blanchard
endif
427 9b14bb04 bellard
endif
428 6d8a764e Lluís
ifdef CONFIG_TRACE_SYSTEMTAP
429 c276b17d Daniel P. Berrange
	$(INSTALL_DIR) "$(DESTDIR)$(datadir)/../systemtap/tapset"
430 c276b17d Daniel P. Berrange
	$(INSTALL_DATA) $(QEMU_PROG).stp "$(DESTDIR)$(datadir)/../systemtap/tapset"
431 c276b17d Daniel P. Berrange
endif
432 626df76a bellard
433 2f96c28d j_mayer
# Include automatically generated dependency files
434 2f96c28d j_mayer
-include $(wildcard *.d */*.d)