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