Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 334 lines (248 sloc) 9.713 kb
562593a Add emacs header to Makefile.target
Anthony Liguori authored
1 # -*- Mode: makefile -*-
2
a992fe3 @pbrook Makefile dependencies for device configs
pbrook authored
3 GENERATED_HEADERS = config-target.h
98c8573 @bonzini provide a stub version of kvm-all.c if !CONFIG_KVM
bonzini authored
4 CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
f527c57 @juanquintela fix parallel build
juanquintela authored
5
deed3cc @juanquintela Don't include config-host.mak from inside config.mak
juanquintela authored
6 include ../config-host.mak
1f3d3c8 @juanquintela Add new config-devices.mak for each target
juanquintela authored
7 include config-devices.mak
25be210 @juanquintela Rename config.{h, mak} config-target.{h, mak}
juanquintela authored
8 include config-target.mak
1775918 Introduce rules.mak (Avi Kivity)
aliguori authored
9 include $(SRC_PATH)/rules.mak
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
10 ifneq ($(HWDIR),)
11 include $(HWDIR)/config.mak
12 endif
626df76 build all targets at the same time
bellard authored
13
0b0babc x86_64 target support
bellard authored
14 TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
076d247 @bonzini Use vpath directive
bonzini authored
15 $(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw)
6c90361 @juanquintela move common QEMU_CFLAGS to configure
juanquintela authored
16 QEMU_CFLAGS+= -I.. -I$(TARGET_PATH) -DNEED_CPU_H
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
17
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
18 include $(SRC_PATH)/Makefile.objs
19
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
20 ifdef CONFIG_USER_ONLY
21 # user emulator name
22 QEMU_PROG=qemu-$(TARGET_ARCH2)
23 else
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
24 # system emulator name
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored
25 ifeq ($(TARGET_ARCH), i386)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
26 QEMU_PROG=qemu$(EXESUF)
0db6347 qemu with softmmu is now the default executable
bellard authored
27 else
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
28 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored
29 endif
de5eaa6 static config for SDL
bellard authored
30 endif
626df76 build all targets at the same time
bellard authored
31
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
32 PROGS=$(QEMU_PROG)
626df76 build all targets at the same time
bellard authored
33
34 LIBS+=-lm
831b782 Darwin userspace emulation, by Pierre d'Herbemont.
ths authored
35
0e1a275 @jan-kiszka Add KVM CFLAGS to vhost build
jan-kiszka authored
36 kvm.o kvm-all.o vhost.o vhost_net.o: QEMU_CFLAGS+=$(KVM_CFLAGS)
7ba1e61 Add KVM support to QEMU
aliguori authored
37
91880d9 @juanquintela Move generation of config-target.h to Makefile from configure
juanquintela authored
38 config-target.h: config-target.h-timestamp
39 config-target.h-timestamp: config-target.mak
40
f527c57 @juanquintela fix parallel build
juanquintela authored
41 all: $(PROGS)
91880d9 @juanquintela Move generation of config-target.h to Makefile from configure
juanquintela authored
42
c2fb263 @pbrook Add dummy command to submakefiles
pbrook authored
43 # Dummy command so that make thinks it has done something
44 @true
626df76 build all targets at the same time
bellard authored
45
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
46 #########################################################
626df76 build all targets at the same time
bellard authored
47 # cpu emulator library
c2b023b @blueswirl Compile host-utils only once
blueswirl authored
48 libobj-y = exec.o translate-all.o cpu-exec.o translate.o
96e132e @blueswirl Compile TCG runtime library only once
blueswirl authored
49 libobj-y += tcg/tcg.o
d6b3893 @juanquintela Introduce CONFIG_NOSOFTFLOAT and simplify Makefile.target
juanquintela authored
50 libobj-$(CONFIG_SOFTFLOAT) += fpu/softfloat.o
51 libobj-$(CONFIG_NOSOFTFLOAT) += fpu/softfloat-native.o
c9e0df7 @juanquintela Rename LIBOBJS to libobj-y
juanquintela authored
52 libobj-y += op_helper.o helper.o
c6dc6f6 @aprzywar x86/cpuid: move CPUID functions into separate file
aprzywar authored
53 ifeq ($(TARGET_BASE_ARCH), i386)
54 libobj-y += cpuid.o
55 endif
471857d @juanquintela Added CONFIG_NEED_MMU for microblaze and cris
juanquintela authored
56 libobj-$(CONFIG_NEED_MMU) += mmu.o
e18ea86 @juanquintela use TARGET_<arch name> for selection
juanquintela authored
57 libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o
cf6c1b1 Rules needed to compile linux user-mode alpha target.
j_mayer authored
58
c9e0df7 @juanquintela Rename LIBOBJS to libobj-y
juanquintela authored
59 libobj-y += disas.o
626df76 build all targets at the same time
bellard authored
60
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
61 $(libobj-y): $(GENERATED_HEADERS)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
62
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
63 # libqemu
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
64
86e840e Remove a few dyngen and dyngen related code
aurel32 authored
65 translate.o: translate.c cpu.h
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
66
86e840e Remove a few dyngen and dyngen related code
aurel32 authored
67 translate-all.o: translate-all.c cpu.h
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
68
86e840e Remove a few dyngen and dyngen related code
aurel32 authored
69 tcg/tcg.o: cpu.h
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
70
71 # HELPER_CFLAGS is used for all the code compiled with static register
72 # variables
864de24 @juanquintela Use one less HELPER_CFLAGS
juanquintela authored
73 op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
74
c81da56 @juanquintela Refactor HELPER_CFLAGS
juanquintela authored
75 # Note: this is a workaround. The real fix is to avoid compiling
76 # cpu_signal_handler() in cpu-exec.c.
77 signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS)
78
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
79 #########################################################
80 # Linux user emulator target
81
82 ifdef CONFIG_LINUX_USER
83
076d247 @bonzini Use vpath directive
bonzini authored
84 $(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR))
85
a558ee1 @juanquintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
86 QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
3702208 @blueswirl user: compile path.c only once
blueswirl authored
87 obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
680c877 @rth7680 linux-user: Use qemu-malloc.c.
rth7680 authored
88 elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o \
89 qemu-malloc.o
5ba6531 @blueswirl user: compile ioport-user.c only for x86
blueswirl authored
90
943e0a3 @juanquintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
91 obj-$(TARGET_HAS_BFLT) += flatload.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
92
e18ea86 @juanquintela use TARGET_<arch name> for selection
juanquintela authored
93 obj-$(TARGET_I386) += vm86.o
1c87267 @juanquintela TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm
juanquintela authored
94
e27b27b @blueswirl Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd
blueswirl authored
95 obj-i386-y += ioport-user.o
5ba6531 @blueswirl user: compile ioport-user.c only for x86
blueswirl authored
96
ed69c30 @juanquintela remove last 3 uses of :=, everywhere else uses += or =
juanquintela authored
97 nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
9c1dd99 @juanquintela use nwfpe-obj-y for consistence
juanquintela authored
98 nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
1c87267 @juanquintela TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm
juanquintela authored
99 obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y))
100 obj-arm-y += arm-semi.o
101
102 obj-m68k-y += m68k-sim.o m68k-semi.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
103
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
104 $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
105
106 obj-y += $(addprefix ../libuser/, $(user-obj-y))
4d90453 @blueswirl Compile disassemblers only once
blueswirl authored
107 obj-y += $(addprefix ../libdis-user/, $(libdis-y))
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
108 obj-y += $(libobj-y)
add1615 @blueswirl Compile some user files only once for all targets
blueswirl authored
109
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
110 endif #CONFIG_LINUX_USER
111
112 #########################################################
113 # Darwin user emulator target
114
115 ifdef CONFIG_DARWIN_USER
116
076d247 @bonzini Use vpath directive
bonzini authored
117 $(call set-vpath, $(SRC_PATH)/darwin-user)
118
a558ee1 @juanquintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
119 QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
120
121 # Leave some space for the regular program loading zone
122 LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
123
124 LIBS+=-lmx
125
a8e492c @juanquintela Rename OBJS to obj-y
juanquintela authored
126 obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
3d0f151 @juanquintela Generate gdbstub-xml.c only when needed
juanquintela authored
127 gdbstub.o
5ba6531 @blueswirl user: compile ioport-user.c only for x86
blueswirl authored
128
e27b27b @blueswirl Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd
blueswirl authored
129 obj-i386-y += ioport-user.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
130
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
131 $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
132
133 obj-y += $(addprefix ../libuser/, $(user-obj-y))
4d90453 @blueswirl Compile disassemblers only once
blueswirl authored
134 obj-y += $(addprefix ../libdis-user/, $(libdis-y))
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
135 obj-y += $(libobj-y)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
136
137 endif #CONFIG_DARWIN_USER
138
139 #########################################################
8477850 Preliminary BSD user emulator support
blueswir1 authored
140 # BSD user emulator target
141
142 ifdef CONFIG_BSD_USER
143
076d247 @bonzini Use vpath directive
bonzini authored
144 $(call set-vpath, $(SRC_PATH)/bsd-user)
145
a558ee1 @juanquintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
146 QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
8477850 Preliminary BSD user emulator support
blueswir1 authored
147
3702208 @blueswirl user: compile path.c only once
blueswirl authored
148 obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \
3d0f151 @juanquintela Generate gdbstub-xml.c only when needed
juanquintela authored
149 gdbstub.o uaccess.o
5ba6531 @blueswirl user: compile ioport-user.c only for x86
blueswirl authored
150
e27b27b @blueswirl Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd
blueswirl authored
151 obj-i386-y += ioport-user.o
8477850 Preliminary BSD user emulator support
blueswir1 authored
152
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
153 $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
154
155 obj-y += $(addprefix ../libuser/, $(user-obj-y))
4d90453 @blueswirl Compile disassemblers only once
blueswirl authored
156 obj-y += $(addprefix ../libdis-user/, $(libdis-y))
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
157 obj-y += $(libobj-y)
8477850 Preliminary BSD user emulator support
blueswir1 authored
158
159 endif #CONFIG_BSD_USER
160
161 #########################################################
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
162 # System emulator target
76dfdd2 @juanquintela \!CONFIG_USER_ONLY == CONFIG_SOFTMMU
juanquintela authored
163 ifdef CONFIG_SOFTMMU
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
164
04c9a0c @blueswirl Compile vl.c once
blueswirl authored
165 obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
1fd31ad Fix the build for non-x86/ppc targets
aliguori authored
166 # virtio has to be here due to weird dependency between PCI and virtio-net.
167 # need to fix this properly
e9d0fc7 @agraf Make virtio-pci building conditional again
agraf authored
168 obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
169 obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
d597005 @mstsirkin vhost: vhost net support
mstsirkin authored
170 obj-y += vhost_net.o
171 obj-$(CONFIG_VHOST_NET) += vhost.o
758e8e3 virtio-9p: Make infrastructure for the new security model.
Venkateswararao Jujjuri (JV) authored
172 obj-$(CONFIG_VIRTFS) += virtio-9p.o
51464fa @blueswirl Don't compile rwhandler.c for user targets
blueswirl authored
173 obj-y += rwhandler.o
a8e492c @juanquintela Rename OBJS to obj-y
juanquintela authored
174 obj-$(CONFIG_KVM) += kvm.o kvm-all.o
98c8573 @bonzini provide a stub version of kvm-all.c if !CONFIG_KVM
bonzini authored
175 obj-$(CONFIG_NO_KVM) += kvm-stub.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored
176 LIBS+=-lz
4fb240a compile common code once
bellard authored
177
a558ee1 @juanquintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
178 QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
179 QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
2f9606b Add SASL authentication support ("Daniel P. Berrange")
aliguori authored
180
e37630c xen: groundwork for xen support (Gerd Hoffmann)
aliguori authored
181 # xen backend driver support
943e0a3 @juanquintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
182 obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
e37630c xen: groundwork for xen support (Gerd Hoffmann)
aliguori authored
183
a67ba3b @pbrook Revert "Compile usb-ohci only once"
pbrook authored
184 # USB layer
185 obj-$(CONFIG_USB_OHCI) += usb-ohci.o
186
a41b2ff Allow selection of emulated network card.
pbrook authored
187 # PCI network cards
a8e492c @juanquintela Rename OBJS to obj-y
juanquintela authored
188 obj-y += rtl8139.o
189 obj-y += e1000.o
a41b2ff Allow selection of emulated network card.
pbrook authored
190
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored
191 # Hardware support
7f55c7c @blueswirl Compile vga-isa only once
blueswirl authored
192 obj-i386-y += vga.o
2d48377 @blueswirl Compile serial only once
blueswirl authored
193 obj-i386-y += mc146818rtc.o i8259.o pc.o
53b67b3 @blueswirl Compile acpi only once
blueswirl authored
194 obj-i386-y += cirrus_vga.o apic.o ioapic.o piix_pci.o
1ddda5c @agraf AppleSMC device emulation
agraf authored
195 obj-i386-y += vmmouse.o vmport.o hpet.o applesmc.o
09aaa16 qdev: convert watchdogs
Markus Armbruster authored
196 obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o
d3ffc7a @blueswirl Compile ne2000_isa only once
blueswirl authored
197 obj-i386-y += debugcon.o multiboot.o
c69ea0d @blueswirl Compile acpi_piix4, apm and pm_smbus only once
blueswirl authored
198 obj-i386-y += pc_piix.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
199
3cbee15 * sort the PowerPC target object files
j_mayer authored
200 # shared objects
02c7c99 @blueswirl Compile ide/macio only once
blueswirl authored
201 obj-ppc-y = ppc.o
4556bd8 @blueswirl Compile dma only once
blueswirl authored
202 obj-ppc-y += vga.o
3cbee15 * sort the PowerPC target object files
j_mayer authored
203 # PREP target
956a3e6 @blueswirl Compile pckbd only once
blueswirl authored
204 obj-ppc-y += i8259.o mc146818rtc.o
add85a7 @blueswirl Compile prep_pci only once
blueswirl authored
205 obj-ppc-y += ppc_prep.o
3cbee15 * sort the PowerPC target object files
j_mayer authored
206 # OldWorld PowerMac
2b5eb37 @blueswirl Compile most PPC devices only once
blueswirl authored
207 obj-ppc-y += ppc_oldworld.o
3cbee15 * sort the PowerPC target object files
j_mayer authored
208 # NewWorld PowerMac
2b5eb37 @blueswirl Compile most PPC devices only once
blueswirl authored
209 obj-ppc-y += ppc_newworld.o
3cbee15 * sort the PowerPC target object files
j_mayer authored
210 # PowerPC 4xx boards
5f9fc5a @blueswirl Compile pflash_cfi02 only once
blueswirl authored
211 obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
212 obj-ppc-y += ppc440.o ppc440_bamboo.o
74c62ba kvm/powerpc: Add freescale pci controller's support
aurel32 authored
213 # PowerPC E500 boards
2b5eb37 @blueswirl Compile most PPC devices only once
blueswirl authored
214 obj-ppc-y += ppce500_mpc8544ds.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
215 obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
3f0855b @juanquintela Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile
juanquintela authored
216 obj-ppc-$(CONFIG_FDT) += device_tree.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
217
1ae33c8 @mthuurne Wrap long line.
authored
218 obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
219 obj-mips-y += mips_pavo.o mips_dingoo.o nand.o sd.o
04e63c5 Get Jz4740 to compile
unknown authored
220 obj-mips-y += mips_jz.o mips_jz_clk.o
409dbce @aurel32 load_elf: replace the address addend by a translation function
aurel32 authored
221 obj-mips-y += mips_addr.o mips_timer.o mips_int.o
4556bd8 @blueswirl Compile dma only once
blueswirl authored
222 obj-mips-y += vga.o i8259.o
b970ea8 @blueswirl Compile some MIPS devices only once
blueswirl authored
223 obj-mips-y += g364fb.o jazz_led.o
956a3e6 @blueswirl Compile pckbd only once
blueswirl authored
224 obj-mips-y += gt64xxx.o mc146818rtc.o
08af49d @blueswirl piix4: compile only once
blueswirl authored
225 obj-mips-y += cirrus_vga.o
051c190 MIPS: Initial support of fulong mini pc (machine construction)
Huacai Chen authored
226 obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
227
228 obj-microblaze-y = petalogix_s3adsp1800_mmu.o
229
230 obj-microblaze-y += microblaze_pic_cpu.o
231 obj-microblaze-y += xilinx_intc.o
232 obj-microblaze-y += xilinx_timer.o
233 obj-microblaze-y += xilinx_uartlite.o
234 obj-microblaze-y += xilinx_ethlite.o
235
3f0855b @juanquintela Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile
juanquintela authored
236 obj-microblaze-$(CONFIG_FDT) += device_tree.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
237
10c144e ETRAX: Add a model for the axis devboard88 machine.
edgar_igl authored
238 # Boards
77d4f95 @edgarigl cris: Break out image loading to hw/cris-boot.c.
edgarigl authored
239 obj-cris-y = cris_pic_cpu.o
240 obj-cris-y += cris-boot.o
241 obj-cris-y += etraxfs.o axis_dev88.o
242 obj-cris-y += axis_dev88.o
10c144e ETRAX: Add a model for the axis devboard88 machine.
edgar_igl authored
243
244 # IO blocks
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
245 obj-cris-y += etraxfs_dma.o
246 obj-cris-y += etraxfs_pic.o
247 obj-cris-y += etraxfs_eth.o
248 obj-cris-y += etraxfs_timer.o
249 obj-cris-y += etraxfs_ser.o
250
3475187 sparc64 marge (Blue Swirl)
bellard authored
251 ifeq ($(TARGET_ARCH), sparc64)
956a3e6 @blueswirl Compile pckbd only once
blueswirl authored
252 obj-sparc-y = sun4u.o apb_pci.o
1afdfdd @blueswirl Compile vga-pci only once
blueswirl authored
253 obj-sparc-y += vga.o
2d48377 @blueswirl Compile serial only once
blueswirl authored
254 obj-sparc-y += mc146818rtc.o
b994504 @blueswirl Compile parallel only once
blueswirl authored
255 obj-sparc-y += cirrus_vga.o
3475187 sparc64 marge (Blue Swirl)
bellard authored
256 else
2405669 @blueswirl sparc32: rename iommu.c to sun4m_iommu.c to make room for other IOMMUs
blueswirl authored
257 obj-sparc-y = sun4m.o lance.o tcx.o sun4m_iommu.o slavio_intctl.o
35da37e @blueswirl Compile fdc only once
blueswirl authored
258 obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
259 obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
260 endif
261
f165b53 @pbrook Built network devices once
pbrook authored
262 obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
263 obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
264 obj-arm-y += versatile_pci.o
f7c7032 @pbrook ARM PBX-A9 board support
pbrook authored
265 obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
266 obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
267 obj-arm-y += pl061.o
268 obj-arm-y += arm-semi.o
269 obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
270 obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
3d08ff6 @blueswirl Compile pflash_cfi01 only once
blueswirl authored
271 obj-arm-y += gumstix.o
f7736b9 @blueswirl Compile ide/core only once
blueswirl authored
272 obj-arm-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o
02d7434 @cmchao hw/omap1.c : separate uart module
cmchao authored
273 obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \
274 omap_gpio.o omap_intc.o omap_uart.o
2c1d9ec @cmchao hw/omwp2.c : separate l4 interconnect module
cmchao authored
275 obj-arm-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \
276 omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
277 obj-arm-y += omap_sx1.o palm.o tsc210x.o
278 obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
279 obj-arm-y += mst_fpga.o mainstone.o
5f9fc5a @blueswirl Compile pflash_cfi02 only once
blueswirl authored
280 obj-arm-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
281 obj-arm-y += framebuffer.o
282 obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
283 obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
284 obj-arm-y += syborg_virtio.o
285
286 obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
2d48377 @blueswirl Compile serial only once
blueswirl authored
287 obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o
f7736b9 @blueswirl Compile ide/core only once
blueswirl authored
288 obj-sh4-y += ide/mmio.o
9637443 @juanquintela change ifdefs by obj-$(TARGET_BASE_ARCH)
juanquintela authored
289
290 obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
291 obj-m68k-y += m68k-semi.o dummy_m68k.o
292
8cb310e @agraf Add S390x virtio machine description
agraf authored
293 obj-s390x-y = s390-virtio-bus.o s390-virtio.o
f3304ee @agraf Add S390x virtio machine bus
agraf authored
294
6049f4f @rth7680 alpha-linux-user: Implement signals.
rth7680 authored
295 obj-alpha-y = alpha_palcode.o
296
ad96090 @blueswirl Refactor target specific handling, compile vl.c only once
blueswirl authored
297 main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
5824d65 Syncing documentation vs. -help vs. qemu_options table
blueswir1 authored
298
2313086 @blueswirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
299 monitor.o: qemu-monitor.h
300
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
301 $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
302
303 obj-y += $(addprefix ../, $(common-obj-y))
4d90453 @blueswirl Compile disassemblers only once
blueswirl authored
304 obj-y += $(addprefix ../libdis/, $(libdis-y))
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
305 obj-y += $(libobj-y)
306 obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
626df76 build all targets at the same time
bellard authored
307
76dfdd2 @juanquintela \!CONFIG_USER_ONLY == CONFIG_SOFTMMU
juanquintela authored
308 endif # CONFIG_SOFTMMU
00a67ba avoid regression on sparc-user and ppc-user
bellard authored
309
3d0f151 @juanquintela Generate gdbstub-xml.c only when needed
juanquintela authored
310 obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
311
0e8c921 @afaerber Drop --whole-archive and static libraries
afaerber authored
312 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
1639448 @juanquintela Refactor a single rule to generate all qemu-* executables
juanquintela authored
313 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
314
315
59bc10e @bonzini finish VPATH -> vpath translation
bonzini authored
316 gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/feature_to_c.sh
1aef4c5 build system: silence gdbstub-xml.c generation
aurel32 authored
317 $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@")
56aebc8 Add GDB XML register description support.
pbrook authored
318
2313086 @blueswirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
319 qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx
320 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
321
626df76 build all targets at the same time
bellard authored
322 clean:
2313086 @blueswirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
323 rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
befb031 @juanquintela clean: remove ide/*.o files on clean
juanquintela authored
324 rm -f *.d */*.d tcg/*.o ide/*.o
ad96090 @blueswirl Refactor target specific handling, compile vl.c only once
blueswirl authored
325 rm -f qemu-monitor.h gdbstub-xml.c
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
326
5fafdf2 find -type f | xargs sed -i 's/[\t ]$//g' # on most files
ths authored
327 install: all
9b14bb0 install fix (Rusty Russel)
bellard authored
328 ifneq ($(PROGS),)
1625af8 Make binary stripping conditional (Riku Voipio)
aliguori authored
329 $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)"
9b14bb0 install fix (Rusty Russel)
bellard authored
330 endif
626df76 build all targets at the same time
bellard authored
331
2f96c28 Use cpp to generate correct build dependencies for target objects
j_mayer authored
332 # Include automatically generated dependency files
333 -include $(wildcard *.d */*.d)
Something went wrong with that request. Please try again.