Skip to content
Newer
Older
100644 809 lines (687 sloc) 18.7 KB
626df76 build all targets at the same time
bellard authored Aug 10, 2003
1 include config.mak
2
0b0babc x86_64 target support
bellard authored Jan 3, 2005
3 TARGET_BASE_ARCH:=$(TARGET_ARCH)
4 ifeq ($(TARGET_ARCH), x86_64)
5 TARGET_BASE_ARCH:=i386
6 endif
540635b Code provision for n32/n64 mips userland emulation. Not functional yet.
ths authored Sep 30, 2007
7 ifeq ($(TARGET_ARCH), mipsn32)
8 TARGET_BASE_ARCH:=mips
9 endif
fbe4f65 MIPS64 configurations.
ths authored Apr 1, 2007
10 ifeq ($(TARGET_ARCH), mips64)
11 TARGET_BASE_ARCH:=mips
12 endif
a245862 ppc64 target
bellard authored Jul 23, 2005
13 ifeq ($(TARGET_ARCH), ppc64)
14 TARGET_BASE_ARCH:=ppc
15 endif
22f8a8b Provision for PowerPC 64 with hypervisor mode support - not enabled f…
j_mayer authored Oct 14, 2007
16 ifeq ($(TARGET_ARCH), ppc64h)
17 TARGET_BASE_ARCH:=ppc
18 endif
d4082e9 New target for embedded PowerPC emulation (only system emulation, for…
j_mayer authored Apr 24, 2007
19 ifeq ($(TARGET_ARCH), ppcemb)
20 TARGET_BASE_ARCH:=ppc
21 endif
64b3ab2 sparc64 support (Blue Swirl)
bellard authored Jan 30, 2005
22 ifeq ($(TARGET_ARCH), sparc64)
23 TARGET_BASE_ARCH:=sparc
24 endif
0b0babc x86_64 target support
bellard authored Jan 3, 2005
25 TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
4fb240a compile common code once
bellard authored Nov 7, 2007
26 VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
46dc388 Improve dependencies generation (malc).
balrog authored Jun 2, 2008
27 CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
0b0babc x86_64 target support
bellard authored Jan 3, 2005
28 #CFLAGS+=-Werror
626df76 build all targets at the same time
bellard authored Aug 10, 2003
29 LIBS=
1e43adf new directory structure - changed naming of qemu and vl
bellard authored Sep 30, 2003
30 # user emulator name
0c64b9c fixed ppc64abi32 executable name
bellard authored Jan 6, 2008
31 ifndef TARGET_ARCH2
c91fde6 correct qemu-system-mipsel naming
bellard authored May 2, 2006
32 TARGET_ARCH2=$(TARGET_ARCH)
0c64b9c fixed ppc64abi32 executable name
bellard authored Jan 6, 2008
33 endif
808c495 big endian ARM support (Lennert Buytenhek)
bellard authored Dec 19, 2004
34 ifeq ($(TARGET_ARCH),arm)
35 ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
c91fde6 correct qemu-system-mipsel naming
bellard authored May 2, 2006
36 TARGET_ARCH2=armeb
808c495 big endian ARM support (Lennert Buytenhek)
bellard authored Dec 19, 2004
37 endif
c91fde6 correct qemu-system-mipsel naming
bellard authored May 2, 2006
38 endif
908f52b Add big-endian SH4-user target
pbrook authored Jun 18, 2006
39 ifeq ($(TARGET_ARCH),sh4)
40 ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
41 TARGET_ARCH2=sh4eb
42 endif
43 endif
01f5e59 mipsel target
bellard authored Dec 6, 2005
44 ifeq ($(TARGET_ARCH),mips)
c91fde6 correct qemu-system-mipsel naming
bellard authored May 2, 2006
45 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
46 TARGET_ARCH2=mipsel
01f5e59 mipsel target
bellard authored Dec 6, 2005
47 endif
48 endif
540635b Code provision for n32/n64 mips userland emulation. Not functional yet.
ths authored Sep 30, 2007
49 ifeq ($(TARGET_ARCH),mipsn32)
50 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
51 TARGET_ARCH2=mipsn32el
52 endif
53 endif
fbe4f65 MIPS64 configurations.
ths authored Apr 1, 2007
54 ifeq ($(TARGET_ARCH),mips64)
55 ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
56 TARGET_ARCH2=mips64el
57 endif
58 endif
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
59
60 ifdef CONFIG_USER_ONLY
61 # user emulator name
62 QEMU_PROG=qemu-$(TARGET_ARCH2)
63 else
1e43adf new directory structure - changed naming of qemu and vl
bellard authored Sep 30, 2003
64 # system emulator name
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored Apr 12, 2004
65 ifeq ($(TARGET_ARCH), i386)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
66 QEMU_PROG=qemu$(EXESUF)
0db6347 qemu with softmmu is now the default executable
bellard authored Oct 27, 2003
67 else
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
68 QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored Apr 12, 2004
69 endif
de5eaa6 static config for SDL
bellard authored Nov 16, 2003
70 endif
626df76 build all targets at the same time
bellard authored Aug 10, 2003
71
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
72 PROGS=$(QEMU_PROG)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
73
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
74 # We require -O2 to avoid the stack setup prologue in EXIT_TB
ac41a62 Enable gcc flag -Wwrite-strings
blueswir1 authored Sep 14, 2008
75 OP_CFLAGS := -O2 -g -fno-strict-aliasing
e0e36fe Enable gcc flag -Wredundant-decls
blueswir1 authored Dec 7, 2008
76 OP_CFLAGS += -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
6c041c5 Disable compiler options dangerous for op compilation.
ths authored Mar 18, 2007
77
78 # cc-option
79 # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
80
81 cc-option = $(shell if $(CC) $(OP_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
82 > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
83
84 OP_CFLAGS+=$(call cc-option, -fno-reorder-blocks, "")
85 OP_CFLAGS+=$(call cc-option, -fno-gcse, "")
86 OP_CFLAGS+=$(call cc-option, -fno-tree-ch, "")
87 OP_CFLAGS+=$(call cc-option, -fno-optimize-sibling-calls, "")
88 OP_CFLAGS+=$(call cc-option, -fno-crossjumping, "")
89 OP_CFLAGS+=$(call cc-option, -fno-align-labels, "")
90 OP_CFLAGS+=$(call cc-option, -fno-align-jumps, "")
91 OP_CFLAGS+=$(call cc-option, -fno-align-functions, $(call cc-option, -malign-functions=0, ""))
1870a74 Stop the compiler from using section anchors.
ths authored Sep 13, 2007
92 OP_CFLAGS+=$(call cc-option, -fno-section-anchors, "")
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
93
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
94 HELPER_CFLAGS=
95
626df76 build all targets at the same time
bellard authored Aug 10, 2003
96 ifeq ($(ARCH),i386)
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
97 HELPER_CFLAGS+=-fomit-frame-pointer
98 OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer
bc51c5c initial x86-64 host support (Gwenole Beauchesne)
bellard authored Mar 17, 2004
99 endif
100
626df76 build all targets at the same time
bellard authored Aug 10, 2003
101 ifeq ($(ARCH),ppc)
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
102 CPPFLAGS+= -D__powerpc__
176a4f2 Add -mlongcall for PPC host (needed for MIPS for instance)
malc authored Jun 9, 2008
103 OP_CFLAGS+= -mlongcall
626df76 build all targets at the same time
bellard authored Aug 10, 2003
104 endif
105
106 ifeq ($(ARCH),sparc)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
107 CFLAGS+=-ffixed-g2 -ffixed-g3
3142255 Sparc host update (Ben Taylor, Martin Bochnig)
blueswir1 authored Apr 16, 2007
108 OP_CFLAGS+=-fno-delayed-branch -ffixed-i0
109 ifeq ($(CONFIG_SOLARIS),yes)
110 OP_CFLAGS+=-fno-omit-frame-pointer
111 else
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
112 CFLAGS+=-ffixed-g1 -ffixed-g6
113 HELPER_CFLAGS+=-ffixed-i0
3142255 Sparc host update (Ben Taylor, Martin Bochnig)
blueswir1 authored Apr 16, 2007
114 endif
fdbb469 Solaris/SPARC host port (Ben Taylor)
bellard authored Jun 14, 2006
115 endif
626df76 build all targets at the same time
bellard authored Aug 10, 2003
116
117 ifeq ($(ARCH),sparc64)
3142255 Sparc host update (Ben Taylor, Martin Bochnig)
blueswir1 authored Apr 16, 2007
118 OP_CFLAGS+=-mcpu=ultrasparc -m64 -fno-delayed-branch -ffixed-i0
119 ifneq ($(CONFIG_SOLARIS),yes)
e97b640 Try to avoid glibc global register mangling, again
blueswir1 authored Jul 26, 2008
120 CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7
121 OP_CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7
122 else
123 CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
3142255 Sparc host update (Ben Taylor, Martin Bochnig)
blueswir1 authored Apr 16, 2007
124 endif
626df76 build all targets at the same time
bellard authored Aug 10, 2003
125 endif
126
127 ifeq ($(ARCH),alpha)
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
128 # -msmall-data is not used for OP_CFLAGS because we want two-instruction
129 # relocations for the constant constructions
626df76 build all targets at the same time
bellard authored Aug 10, 2003
130 # Ensure there's only a single GP
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
131 CFLAGS+=-msmall-data
626df76 build all targets at the same time
bellard authored Aug 10, 2003
132 endif
133
f54b3f9 HPPA (PA-RISC) host support
aurel32 authored Apr 12, 2008
134 ifeq ($(ARCH),hppa)
135 OP_CFLAGS=-O1 -fno-delayed-branch
136 BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
137 endif
138
626df76 build all targets at the same time
bellard authored Aug 10, 2003
139 ifeq ($(ARCH),ia64)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
140 CFLAGS+=-mno-sdata
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
141 OP_CFLAGS+=-mno-sdata
626df76 build all targets at the same time
bellard authored Aug 10, 2003
142 endif
143
144 ifeq ($(ARCH),arm)
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
145 OP_CFLAGS+=-mno-sched-prolog -fno-omit-frame-pointer
626df76 build all targets at the same time
bellard authored Aug 10, 2003
146 endif
147
38e584a m68k host port (Richard Zidlicky)
bellard authored Aug 10, 2003
148 ifeq ($(ARCH),m68k)
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
149 OP_CFLAGS+=-fomit-frame-pointer
150 endif
151
152 ifeq ($(ARCH),mips)
9617efe Another bunch of mips host support.
ths authored May 8, 2007
153 OP_CFLAGS+=-mabi=32 -G0 -fno-PIC -mno-abicalls -fomit-frame-pointer -fno-delayed-branch -Wa,-O0
fbe4f65 MIPS64 configurations.
ths authored Apr 1, 2007
154 endif
155
156 ifeq ($(ARCH),mips64)
9617efe Another bunch of mips host support.
ths authored May 8, 2007
157 OP_CFLAGS+=-mabi=n32 -G0 -fno-PIC -mno-abicalls -fomit-frame-pointer -fno-delayed-branch -Wa,-O0
83fb7ad Darwin patch (initial patch by Pierre d'Herbemont)
bellard authored Jul 5, 2004
158 endif
159
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
160 CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
161 LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
3142255 Sparc host update (Ben Taylor, Martin Bochnig)
blueswir1 authored Apr 16, 2007
162 OP_CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
163
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
164 CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
626df76 build all targets at the same time
bellard authored Aug 10, 2003
165 LIBS+=-lm
67b915a win32 port (initial patch by kazu)
bellard authored Mar 31, 2004
166 ifdef CONFIG_WIN32
3db38e8 virtual console support - slirp for win32 support
bellard authored Jul 14, 2004
167 LIBS+=-lwinmm -lws2_32 -liphlpapi
67b915a win32 port (initial patch by kazu)
bellard authored Mar 31, 2004
168 endif
ec530c8 Solaris port (Ben Taylor)
bellard authored Apr 25, 2006
169 ifdef CONFIG_SOLARIS
170 LIBS+=-lsocket -lnsl -lresolv
0475a5c Solaris 9/x86 support, by Ben Taylor.
ths authored Apr 1, 2007
171 ifdef NEEDS_LIBSUNMATH
172 LIBS+=-lsunmath
173 LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
174 OP_CFLAGS+=-I/opt/SUNWspro/prod/include/cc
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
175 CFLAGS+=-I/opt/SUNWspro/prod/include/cc
f72b519 added osdep.o and nwfpe
bellard authored Feb 16, 2004
176 endif
831b782 Darwin userspace emulation, by Pierre d'Herbemont.
ths authored Jan 18, 2007
177 endif
178
7ba1e61 Add KVM support to QEMU
aliguori authored Nov 5, 2008
179 kvm.o: CFLAGS+=$(KVM_CFLAGS)
180 kvm-all.o: CFLAGS+=$(KVM_CFLAGS)
181
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
182 all: $(PROGS)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
183
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
184 #########################################################
626df76 build all targets at the same time
bellard authored Aug 10, 2003
185 # cpu emulator library
57fec1f use the TCG code generator
bellard authored Feb 1, 2008
186 LIBOBJS=exec.o kqemu.o translate-all.o cpu-exec.o\
cf2be98 Prepare for op.c removal and zero legacy ops
blueswir1 authored Mar 21, 2008
187 translate.o host-utils.o
57fec1f use the TCG code generator
bellard authored Feb 1, 2008
188 # TCG code generator
49516bc Some cleanups after dyngen removal
aurel32 authored Dec 7, 2008
189 LIBOBJS+= tcg/tcg.o tcg/tcg-runtime.o
57fec1f use the TCG code generator
bellard authored Feb 1, 2008
190 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
8289b27 Preliminary Sparc TCG target
blueswir1 authored Feb 27, 2008
191 ifeq ($(ARCH),sparc64)
192 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
193 endif
158142c soft float support
bellard authored Mar 13, 2005
194 ifdef CONFIG_SOFTFLOAT
195 LIBOBJS+=fpu/softfloat.o
196 else
197 LIBOBJS+=fpu/softfloat-native.o
198 endif
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
199 CPPFLAGS+=-I$(SRC_PATH)/fpu
e95c8d5 full system SPARC emulation (Blue Swirl)
bellard authored Sep 30, 2004
200 LIBOBJS+= op_helper.o helper.o
201
b7bcbe9 ARM VFP support (Paul Brook)
bellard authored Feb 22, 2005
202 ifeq ($(TARGET_BASE_ARCH), arm)
eaa728e consistent naming for i386 TCG helper file
bellard authored May 28, 2008
203 LIBOBJS+= neon_helper.o iwmmxt_helper.o
e6e5906 ColdFire target.
pbrook authored Oct 22, 2006
204 endif
205
cf6c1b1 Rules needed to compile linux user-mode alpha target.
j_mayer authored Apr 5, 2007
206 ifeq ($(TARGET_BASE_ARCH), alpha)
eaa728e consistent naming for i386 TCG helper file
bellard authored May 28, 2008
207 LIBOBJS+= alpha_palcode.o
cf6c1b1 Rules needed to compile linux user-mode alpha target.
j_mayer authored Apr 5, 2007
208 endif
209
e7daa60 Add CRIS configuration bits, by Edgar E. Iglesias.
ths authored Oct 8, 2007
210 ifeq ($(TARGET_BASE_ARCH), cris)
211 LIBOBJS+= cris-dis.o
212
213 ifndef CONFIG_USER_ONLY
214 LIBOBJS+= mmu.o
215 endif
216 endif
217
626df76 build all targets at the same time
bellard authored Aug 10, 2003
218 # NOTE: the disassembler code is only needed for debugging
5fafdf2 find -type f | xargs sed -i 's/[\t ]$//g' # on most files
ths authored Sep 16, 2007
219 LIBOBJS+=disas.o
626df76 build all targets at the same time
bellard authored Aug 10, 2003
220 ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
bc51c5c initial x86-64 host support (Gwenole Beauchesne)
bellard authored Mar 17, 2004
221 USE_I386_DIS=y
222 endif
0b0babc x86_64 target support
bellard authored Jan 3, 2005
223 ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
bc51c5c initial x86-64 host support (Gwenole Beauchesne)
bellard authored Mar 17, 2004
224 USE_I386_DIS=y
225 endif
226 ifdef USE_I386_DIS
626df76 build all targets at the same time
bellard authored Aug 10, 2003
227 LIBOBJS+=i386-dis.o
228 endif
229 ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
230 LIBOBJS+=alpha-dis.o
231 endif
a245862 ppc64 target
bellard authored Jul 23, 2005
232 ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
233 LIBOBJS+=ppc-dis.o
234 endif
fbe4f65 MIPS64 configurations.
ths authored Apr 1, 2007
235 ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips)
6af0bf9 MIPS target (Jocelyn Mayer)
bellard authored Jul 2, 2005
236 LIBOBJS+=mips-dis.o
237 endif
64b3ab2 sparc64 support (Blue Swirl)
bellard authored Jan 30, 2005
238 ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
239 LIBOBJS+=sparc-dis.o
240 endif
241 ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
242 LIBOBJS+=arm-dis.o
243 endif
48024e4 m68k disassembler (Paul Brook)
bellard authored Nov 6, 2005
244 ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
245 LIBOBJS+=m68k-dis.o
246 endif
fdf9b3e sh4 target (Samuel Tardieu)
bellard authored Apr 27, 2006
247 ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
248 LIBOBJS+=sh4-dis.o
249 endif
f54b3f9 HPPA (PA-RISC) host support
aurel32 authored Apr 12, 2008
250 ifeq ($(findstring hppa, $(TARGET_BASE_ARCH) $(ARCH)),hppa)
251 LIBOBJS+=hppa-dis.o
252 endif
8f860bb s390 disassembler support, by Ulrich Hecht.
ths authored Jul 31, 2007
253 ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390)
254 LIBOBJS+=s390-dis.o
255 endif
626df76 build all targets at the same time
bellard authored Aug 10, 2003
256
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
257 # libqemu
258
259 libqemu.a: $(LIBOBJS)
260 rm -f $@
261 $(AR) rcs $@ $(LIBOBJS)
262
86e840e Remove a few dyngen and dyngen related code
aurel32 authored Dec 7, 2008
263 translate.o: translate.c cpu.h
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
264
86e840e Remove a few dyngen and dyngen related code
aurel32 authored Dec 7, 2008
265 translate-all.o: translate-all.c cpu.h
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
266
86e840e Remove a few dyngen and dyngen related code
aurel32 authored Dec 7, 2008
267 tcg/tcg.o: cpu.h
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
268
8dd3dca remove target ifdefs from vl.c
aurel32 authored May 4, 2008
269 machine.o: machine.c
270 $(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
271
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
272 # HELPER_CFLAGS is used for all the code compiled with static register
273 # variables
274 op_helper.o: op_helper.c
eaa728e consistent naming for i386 TCG helper file
bellard authored May 28, 2008
275 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) $(I386_CFLAGS) -c -o $@ $<
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
276
86e840e Remove a few dyngen and dyngen related code
aurel32 authored Dec 7, 2008
277 cpu-exec.o: cpu-exec.c
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
278 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
279
280 #########################################################
281 # Linux user emulator target
282
283 ifdef CONFIG_LINUX_USER
284
285 ifndef TARGET_ABI_DIR
286 TARGET_ABI_DIR=$(TARGET_ARCH)
287 endif
3ebdd11 Move target-arm/nwfpe into linux-user/arm/nwfpe
aurel32 authored Apr 9, 2008
288 VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
289 CPPFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
290
291 ifdef CONFIG_STATIC
292 LDFLAGS+=-static
293 endif
294
295 ifeq ($(ARCH),i386)
296 ifdef TARGET_GPROF
297 USE_I386_LD=y
298 endif
299 ifdef CONFIG_STATIC
300 USE_I386_LD=y
301 endif
302 ifdef USE_I386_LD
303 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
304 else
305 # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
306 # that the kernel ELF loader considers as an executable. I think this
307 # is the simplest way to make it self virtualizable!
308 LDFLAGS+=-Wl,-shared
309 endif
310 endif
311
312 ifeq ($(ARCH),x86_64)
313 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
314 endif
315
316 ifeq ($(ARCH),ppc)
317 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
318 endif
319
810260a Preliminary PPC64/Linux host support
malc authored Jul 23, 2008
320 ifeq ($(ARCH),ppc64)
321 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
322 endif
323
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
324 ifeq ($(ARCH),s390)
325 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
326 endif
327
328 ifeq ($(ARCH),sparc)
329 # -static is used to avoid g1/g3 usage by the dynamic linker
330 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
331 endif
332
333 ifeq ($(ARCH),sparc64)
334 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
335 endif
336
337 ifeq ($(ARCH),alpha)
338 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
339 endif
340
341 ifeq ($(ARCH),ia64)
342 LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
343 endif
344
345 ifeq ($(ARCH),arm)
346 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
347 endif
348
349 ifeq ($(ARCH),m68k)
350 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
351 endif
352
353 ifeq ($(ARCH),mips)
354 ifeq ($(WORDS_BIGENDIAN),yes)
355 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
356 else
357 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
358 endif
359 endif
360
361 ifeq ($(ARCH),mips64)
362 ifeq ($(WORDS_BIGENDIAN),yes)
363 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
364 else
365 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
366 endif
367 endif
368
6d946cd User qemu profiling
aurel32 authored Nov 6, 2008
369 # profiling code
370 ifdef TARGET_GPROF
371 LDFLAGS+=-p
372 CFLAGS+=-p
373 endif
374
17e2377 Prevent guest reusing host memory allocations.
pbrook authored Jun 9, 2008
375 OBJS= main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
376 elfload.o linuxload.o uaccess.o
377 LIBS+= $(AIOLIBS)
378 ifdef TARGET_HAS_BFLT
379 OBJS+= flatload.o
380 endif
381 ifdef TARGET_HAS_ELFLOAD32
382 OBJS+= elfload32.o
383 elfload32.o: elfload.c
384 endif
385
386 ifeq ($(TARGET_ARCH), i386)
387 OBJS+= vm86.o
388 endif
389 ifeq ($(TARGET_ARCH), arm)
390 OBJS+=nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \
391 nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \
392 nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o
393 endif
394 ifeq ($(TARGET_ARCH), m68k)
395 OBJS+= m68k-sim.o m68k-semi.o
396 endif
397
1fddef4 gdb support for user mode (Paul Brook)
bellard authored Apr 17, 2005
398 ifdef CONFIG_GDBSTUB
56aebc8 Add GDB XML register description support.
pbrook authored Oct 11, 2008
399 OBJS+=gdbstub.o gdbstub-xml.o
1fddef4 gdb support for user mode (Paul Brook)
bellard authored Apr 17, 2005
400 endif
626df76 build all targets at the same time
bellard authored Aug 10, 2003
401
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
402 OBJS+= libqemu.a
403
404 # Note: this is a workaround. The real fix is to avoid compiling
405 # cpu_signal_handler() in cpu-exec.c.
406 signal.o: signal.c
407 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
626df76 build all targets at the same time
bellard authored Aug 10, 2003
408
cec7d0b Don't link usermode emulation against libqemu_common.a
pbrook authored May 28, 2008
409 $(QEMU_PROG): $(OBJS) ../libqemu_user.a
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
410 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
411 ifeq ($(ARCH),alpha)
412 # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
413 # the address space (31 bit so sign extending doesn't matter)
414 echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
415 endif
416
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
417 endif #CONFIG_LINUX_USER
418
419 #########################################################
420 # Darwin user emulator target
421
422 ifdef CONFIG_DARWIN_USER
423
424 VPATH+=:$(SRC_PATH)/darwin-user
425 CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
426
427 # Leave some space for the regular program loading zone
428 LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
429
430 LIBS+=-lmx
431
17e2377 Prevent guest reusing host memory allocations.
pbrook authored Jun 9, 2008
432 OBJS= main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
433
434 OBJS+= libqemu.a
435
436 ifdef CONFIG_GDBSTUB
56aebc8 Add GDB XML register description support.
pbrook authored Oct 11, 2008
437 OBJS+=gdbstub.o gdbstub-xml.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
438 endif
439
440 # Note: this is a workaround. The real fix is to avoid compiling
441 # cpu_signal_handler() in cpu-exec.c.
442 signal.o: signal.c
443 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
444
445 $(QEMU_PROG): $(OBJS)
446 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
447
448 endif #CONFIG_DARWIN_USER
449
450 #########################################################
8477850 Preliminary BSD user emulator support
blueswir1 authored Oct 26, 2008
451 # BSD user emulator target
452
453 ifdef CONFIG_BSD_USER
454
455 VPATH+=:$(SRC_PATH)/bsd-user
456 CPPFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
457
458 ifdef CONFIG_STATIC
459 LDFLAGS+=-static
460 endif
461
462 ifeq ($(ARCH),i386)
463 ifdef TARGET_GPROF
464 USE_I386_LD=y
465 endif
466 ifdef CONFIG_STATIC
467 USE_I386_LD=y
468 endif
469 ifdef USE_I386_LD
470 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
471 else
472 # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
473 # that the kernel ELF loader considers as an executable. I think this
474 # is the simplest way to make it self virtualizable!
475 LDFLAGS+=-Wl,-shared
476 endif
477 endif
478
479 ifeq ($(ARCH),x86_64)
480 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
481 endif
482
483 ifeq ($(ARCH),ppc)
484 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
485 endif
486
487 ifeq ($(ARCH),ppc64)
488 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
489 endif
490
491 ifeq ($(ARCH),s390)
492 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
493 endif
494
495 ifeq ($(ARCH),sparc)
496 # -static is used to avoid g1/g3 usage by the dynamic linker
497 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
498 endif
499
500 ifeq ($(ARCH),sparc64)
501 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
502 endif
503
504 ifeq ($(ARCH),alpha)
505 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
506 endif
507
508 ifeq ($(ARCH),ia64)
509 LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
510 endif
511
512 ifeq ($(ARCH),arm)
513 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
514 endif
515
516 ifeq ($(ARCH),m68k)
517 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
518 endif
519
520 ifeq ($(ARCH),mips)
521 ifeq ($(WORDS_BIGENDIAN),yes)
522 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
523 else
524 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
525 endif
526 endif
527
528 ifeq ($(ARCH),mips64)
529 ifeq ($(WORDS_BIGENDIAN),yes)
530 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
531 else
532 LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
533 endif
534 endif
535
536 OBJS= main.o bsdload.o elfload.o mmap.o path.o signal.o strace.o syscall.o
537 OBJS+= uaccess.o
538
539 OBJS+= libqemu.a
540
541 ifdef CONFIG_GDBSTUB
542 OBJS+=gdbstub.o
543 endif
544
545 # Note: this is a workaround. The real fix is to avoid compiling
546 # cpu_signal_handler() in cpu-exec.c.
547 signal.o: signal.c
548 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
549
550 $(QEMU_PROG): $(OBJS) ../libqemu_user.a
551 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
552
553 endif #CONFIG_BSD_USER
554
555 #########################################################
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
556 # System emulator target
557 ifndef CONFIG_USER_ONLY
558
559b90f Move the things that aren't target specific to libqemu_common.a.
aliguori authored Nov 11, 2008
559 OBJS=vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o
1fd31ad Fix the build for non-x86/ppc targets
aliguori authored Dec 18, 2008
560 # virtio has to be here due to weird dependency between PCI and virtio-net.
561 # need to fix this properly
562 OBJS+=virtio.o virtio-blk.o virtio-balloon.o virtio-net.o
559b90f Move the things that aren't target specific to libqemu_common.a.
aliguori authored Nov 11, 2008
563 OBJS+=fw_cfg.o
7ba1e61 Add KVM support to QEMU
aliguori authored Nov 5, 2008
564 ifdef CONFIG_KVM
565 OBJS+=kvm.o kvm-all.o
566 endif
223d467 Split block-raw.c into block-raw-posix.c and block-raw-win32.c, by
ths authored Dec 15, 2007
567 ifdef CONFIG_WIN32
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
568 OBJS+=block-raw-win32.o
223d467 Split block-raw.c into block-raw-posix.c and block-raw-win32.c, by
ths authored Dec 15, 2007
569 else
3c529d9 Replace posix-aio with custom thread pool
aliguori authored Dec 12, 2008
570 ifdef CONFIG_AIO
571 OBJS+=posix-aio-compat.o
572 endif
559b90f Move the things that aren't target specific to libqemu_common.a.
aliguori authored Nov 11, 2008
573 OBJS+=block-raw-posix.o
a3392f9 Only build compatfd when using AIO and make sure to always init AIO
aliguori authored Sep 11, 2008
574 endif
575
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
576 LIBS+=-lz
1d14ffa merged 15a_aqemu.patch audio patch (malc)
bellard authored Oct 30, 2005
577 ifdef CONFIG_ALSA
578 LIBS += -lasound
579 endif
ca9cc28 pthreads-based audio and miscellaneous audio clean-up (malc).
balrog authored Jan 14, 2008
580 ifdef CONFIG_ESD
581 LIBS += -lesd
582 endif
b8e59f1 Pulseaudio driver
malc authored Jul 2, 2008
583 ifdef CONFIG_PA
584 LIBS += -lpulse-simple
585 endif
1d14ffa merged 15a_aqemu.patch audio patch (malc)
bellard authored Oct 30, 2005
586 ifdef CONFIG_DSOUND
587 LIBS += -lole32 -ldxguid
85571bc audio merge (malc)
bellard authored Nov 7, 2004
588 endif
102a52e FMOD configure options (malc)
bellard authored Nov 14, 2004
589 ifdef CONFIG_FMOD
590 LIBS += $(CONFIG_FMOD_LIB)
85571bc audio merge (malc)
bellard authored Nov 7, 2004
591 endif
2f6a1ab Fix OSS on OpenBSD
blueswir1 authored Aug 21, 2008
592 ifdef CONFIG_OSS
593 LIBS += $(CONFIG_OSS_LIB)
594 endif
4fb240a compile common code once
bellard authored Nov 7, 2007
595
596 SOUND_HW = sb16.o es1370.o
ca9cc28 pthreads-based audio and miscellaneous audio clean-up (malc).
balrog authored Jan 14, 2008
597 ifdef CONFIG_AC97
598 SOUND_HW += ac97.o
599 endif
1d14ffa merged 15a_aqemu.patch audio patch (malc)
bellard authored Oct 30, 2005
600 ifdef CONFIG_ADLIB
601 SOUND_HW += fmopl.o adlib.o
c40e866 adlib.c includes fmopl.h and so needs -DBUILD_Y8950=0 too
malc authored Dec 11, 2008
602 adlib.o fmopl.o: CFLAGS := ${CFLAGS} -DBUILD_Y8950=0
1d14ffa merged 15a_aqemu.patch audio patch (malc)
bellard authored Oct 30, 2005
603 endif
423d65f Gravis Ultrasound GF1 sound card emulation (malc).
balrog authored Jan 14, 2008
604 ifdef CONFIG_GUS
605 SOUND_HW += gus.o gusemu_hal.o gusemu_mixer.o
606 endif
cc53d26 ISA version of CS4231A
malc authored Jun 13, 2008
607 ifdef CONFIG_CS4231A
608 SOUND_HW += cs4231a.o
609 endif
85571bc audio merge (malc)
bellard authored Nov 7, 2004
610
8d5d2d4 VeNCrypt basic TLS support, by Daniel P. Berrange.
ths authored Aug 25, 2007
611 ifdef CONFIG_VNC_TLS
612 CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
613 LIBS += $(CONFIG_VNC_TLS_LIBS)
614 endif
615
fb599c9 Implement a HCI passthrough to host.
balrog authored Sep 28, 2008
616 ifdef CONFIG_BLUEZ
617 LIBS += $(CONFIG_BLUEZ_LIBS)
618 endif
619
2e5d83b Rearrange SCSI disk emulation code.
pbrook authored May 25, 2006
620 # SCSI layer
8b17de8 Let ESP SCSI adapter to be usable outside sun4m (Herv�oussineau)
blueswir1 authored Mar 2, 2008
621 OBJS+= lsi53c895a.o esp.o
2e5d83b Rearrange SCSI disk emulation code.
pbrook authored May 25, 2006
622
a594cfb USB user interface
bellard authored Nov 6, 2005
623 # USB layer
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
624 OBJS+= usb-ohci.o
a594cfb USB user interface
bellard authored Nov 6, 2005
625
663e8e5 Eepro100 emulation, by Stefan Weil.
ths authored Apr 2, 2007
626 # EEPROM emulation
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
627 OBJS += eeprom93xx.o
663e8e5 Eepro100 emulation, by Stefan Weil.
ths authored Apr 2, 2007
628
a41b2ff Allow selection of emulated network card.
pbrook authored Feb 5, 2006
629 # PCI network cards
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
630 OBJS += eepro100.o
631 OBJS += ne2000.o
632 OBJS += pcnet.o
633 OBJS += rtl8139.o
7c23b89 E1000 NIC emulation (Nir Peleg, patch from Dor Laor).
balrog authored Feb 3, 2008
634 OBJS += e1000.o
a41b2ff Allow selection of emulated network card.
pbrook authored Feb 5, 2006
635
0b0babc x86_64 target support
bellard authored Jan 3, 2005
636 ifeq ($(TARGET_BASE_ARCH), i386)
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored Apr 12, 2004
637 # Hardware support
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
638 OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o
639 OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
640 OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
16b29ae Add HPET emulation to qemu (Beth Kon)
aliguori authored Dec 17, 2008
641 OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
b00052e Spitz PDA, example PXA270 machine (four similar models).
balrog authored Apr 30, 2007
642 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
67b915a win32 port (initial patch by kazu)
bellard authored Mar 31, 2004
643 endif
a245862 ppc64 target
bellard authored Jul 23, 2005
644 ifeq ($(TARGET_BASE_ARCH), ppc)
70ad3de Revert "target-ppc: use -Werror to make sure no new warning is added"
aurel32 authored Dec 14, 2008
645 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
3cbee15 * sort the PowerPC target object files
j_mayer authored Oct 28, 2007
646 # shared objects
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
647 OBJS+= ppc.o ide.o vga.o $(SOUND_HW) dma.o openpic.o
3cbee15 * sort the PowerPC target object files
j_mayer authored Oct 28, 2007
648 # PREP target
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
649 OBJS+= pckbd.o ps2.o serial.o i8259.o i8254.o fdc.o m48t59.o mc146818rtc.o
650 OBJS+= prep_pci.o ppc_prep.o
3cbee15 * sort the PowerPC target object files
j_mayer authored Oct 28, 2007
651 # Mac shared devices
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
652 OBJS+= macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
3cbee15 * sort the PowerPC target object files
j_mayer authored Oct 28, 2007
653 # OldWorld PowerMac
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
654 OBJS+= heathrow_pic.o grackle_pci.o ppc_oldworld.o
3cbee15 * sort the PowerPC target object files
j_mayer authored Oct 28, 2007
655 # NewWorld PowerMac
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
656 OBJS+= unin_pci.o ppc_chrp.o
3cbee15 * sort the PowerPC target object files
j_mayer authored Oct 28, 2007
657 # PowerPC 4xx boards
825bb58 IBM PowerPC 4xx 32-bit PCI controller emulation
aurel32 authored Dec 2, 2008
658 OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
2c9fade target-ppc: IBM PowerPC 440EP Bamboo reference board emulation
aurel32 authored Dec 16, 2008
659 OBJS+= ppc440.o ppc440_bamboo.o
f652e6a Implement device tree support needed for Bamboo emulation
aurel32 authored Dec 16, 2008
660 ifdef FDT_LIBS
661 OBJS+= device_tree.o
662 LIBS+= $(FDT_LIBS)
663 endif
d76d165 target-ppc: Enable KVM for ppcemb.
aurel32 authored Dec 16, 2008
664 ifdef CONFIG_KVM
665 OBJS+= kvm_ppc.o
666 endif
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored Apr 12, 2004
667 endif
fbe4f65 MIPS64 configurations.
ths authored Apr 1, 2007
668 ifeq ($(TARGET_BASE_ARCH), mips)
c171148 Simplify PICA 61 emulation
aurel32 authored Apr 8, 2008
669 OBJS+= mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
4ce7ff6 MIPS Magnum R4000 machine
aurel32 authored Apr 7, 2008
670 OBJS+= mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o
671 OBJS+= g364fb.o jazz_led.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
672 OBJS+= ide.o gt64xxx.o pckbd.o ps2.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
4ce7ff6 MIPS Magnum R4000 machine
aurel32 authored Apr 7, 2008
673 OBJS+= piix_pci.o parallel.o cirrus_vga.o pcspk.o $(SOUND_HW)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
674 OBJS+= mipsnet.o
675 OBJS+= pflash_cfi01.o
4ce7ff6 MIPS Magnum R4000 machine
aurel32 authored Apr 7, 2008
676 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
6af0bf9 MIPS target (Jocelyn Mayer)
bellard authored Jul 2, 2005
677 endif
e7daa60 Add CRIS configuration bits, by Edgar E. Iglesias.
ths authored Oct 8, 2007
678 ifeq ($(TARGET_BASE_ARCH), cris)
10c144e ETRAX: Add a model for the axis devboard88 machine.
edgar_igl authored Jan 7, 2009
679 # Boards
680 OBJS+= etraxfs.o axis_dev88.o
681
682 # IO blocks
4831801 Update the etrax machine.
edgar_igl authored May 11, 2008
683 OBJS+= etraxfs_dma.o
e62b5b1 * Add a model of the ETRAX interrupt controller.
edgar_igl authored Mar 14, 2008
684 OBJS+= etraxfs_pic.o
4831801 Update the etrax machine.
edgar_igl authored May 11, 2008
685 OBJS+= etraxfs_eth.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
686 OBJS+= etraxfs_timer.o
687 OBJS+= etraxfs_ser.o
e62b5b1 * Add a model of the ETRAX interrupt controller.
edgar_igl authored Mar 14, 2008
688
689 OBJS+= ptimer.o
10c144e ETRAX: Add a model for the axis devboard88 machine.
edgar_igl authored Jan 7, 2009
690 OBJS+= pflash_cfi02.o nand.o
e7daa60 Add CRIS configuration bits, by Edgar E. Iglesias.
ths authored Oct 8, 2007
691 endif
64b3ab2 sparc64 support (Blue Swirl)
bellard authored Jan 30, 2005
692 ifeq ($(TARGET_BASE_ARCH), sparc)
3475187 sparc64 marge (Blue Swirl)
bellard authored Jul 2, 2005
693 ifeq ($(TARGET_ARCH), sparc64)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
694 OBJS+= sun4u.o ide.o pckbd.o ps2.o vga.o apb_pci.o
695 OBJS+= fdc.o mc146818rtc.o serial.o m48t59.o
696 OBJS+= cirrus_vga.o parallel.o ptimer.o
3475187 sparc64 marge (Blue Swirl)
bellard authored Jul 2, 2005
697 else
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
698 OBJS+= sun4m.o tcx.o pcnet.o iommu.o m48t59.o slavio_intctl.o
8b17de8 Let ESP SCSI adapter to be usable outside sun4m (Herv�oussineau)
blueswir1 authored Mar 2, 2008
699 OBJS+= slavio_timer.o slavio_serial.o slavio_misc.o fdc.o sparc32_dma.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
700 OBJS+= cs4231.o ptimer.o eccmemctl.o sbi.o sun4c_intctl.o
3475187 sparc64 marge (Blue Swirl)
bellard authored Jul 2, 2005
701 endif
e95c8d5 full system SPARC emulation (Blue Swirl)
bellard authored Sep 30, 2004
702 endif
b5ff1b3 ARM system emulation (Paul Brook)
bellard authored Nov 26, 2005
703 ifeq ($(TARGET_BASE_ARCH), arm)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
704 OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o
705 OBJS+= arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
706 OBJS+= versatile_pci.o ptimer.o
707 OBJS+= realview_gic.o realview.o arm_sysctl.o mpcore.o
708 OBJS+= armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
709 OBJS+= pl061.o
710 OBJS+= arm-semi.o
711 OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
712 OBJS+= pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
713 OBJS+= pflash_cfi01.o gumstix.o
88d2c95 TC6393XB system features (Dmitry Baryshkov).
balrog authored Jun 9, 2008
714 OBJS+= zaurus.o ide.o serial.o nand.o ecc.o spitz.o tosa.o tc6393xb.o
b4e3104 Split OMAP DMA out to a file apart.
balrog authored Mar 6, 2008
715 OBJS+= omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
afbb519 Handle on-chip DMA controllers in one place, convert OMAP DMA to use it.
balrog authored Jul 21, 2008
716 OBJS+= omap2.o omap_dss.o soc_dma.o
997641a ARM: basic SX1-cellphone sysemu support (Jean-Christophe PLAGNIOL-VIL…
balrog authored Dec 15, 2008
717 OBJS+= omap_sx1.o palm.o tsc210x.o
942ac05 Inventra MUSB-HDRC host-mode USB.
balrog authored Apr 22, 2008
718 OBJS+= nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
58a26b4 Emulate a serial bluetooth HCI with H4+ extensions and attach to n8x0…
balrog authored Sep 28, 2008
719 OBJS+= tsc2005.o bt-hci-csr.o
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
720 OBJS+= mst_fpga.o mainstone.o
24859b6 ARM: Marvell 88w8618 / MusicPal emulation (Jan Kiszka).
balrog authored Apr 24, 2008
721 OBJS+= musicpal.o pflash_cfi02.o
5a1237c Don't define HIGH_LATENCY for ARM, this was a workaround for an ALSA …
balrog authored May 2, 2007
722 CPPFLAGS += -DHAS_AUDIO
b5ff1b3 ARM system emulation (Paul Brook)
bellard authored Nov 26, 2005
723 endif
fdf9b3e sh4 target (Samuel Tardieu)
bellard authored Apr 27, 2006
724 ifeq ($(TARGET_BASE_ARCH), sh4)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
725 OBJS+= shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
1e5459a SH: On-chip PCI controller support (Takashi YOSHII).
balrog authored Dec 7, 2008
726 OBJS+= sh_timer.o ptimer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
a4a771c sh4: mmio based CF support on r2d board (Takashi YOSHII).
balrog authored Dec 7, 2008
727 OBJS+= ide.o
fdf9b3e sh4 target (Samuel Tardieu)
bellard authored Apr 27, 2006
728 endif
0633879 m68k/ColdFire system emulation.
pbrook authored May 23, 2007
729 ifeq ($(TARGET_BASE_ARCH), m68k)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
730 OBJS+= an5206.o mcf5206.o ptimer.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
731 OBJS+= m68k-semi.o dummy_m68k.o
0633879 m68k/ColdFire system emulation.
pbrook authored May 23, 2007
732 endif
a541f29 PowerPC system emulation fixes (Jocelyn Mayer)
bellard authored Apr 12, 2004
733 ifdef CONFIG_GDBSTUB
56aebc8 Add GDB XML register description support.
pbrook authored Oct 11, 2008
734 OBJS+=gdbstub.o gdbstub-xml.o
728c9fd update
bellard authored Jan 5, 2004
735 endif
5b0753e initial Cocoa support (Pierre d'Herbemont)
bellard authored Mar 1, 2005
736 ifdef CONFIG_COCOA
1d14ffa merged 15a_aqemu.patch audio patch (malc)
bellard authored Oct 30, 2005
737 COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
738 ifdef CONFIG_COREAUDIO
739 COCOA_LIBS+=-framework CoreAudio
740 endif
5b0753e initial Cocoa support (Pierre d'Herbemont)
bellard authored Mar 1, 2005
741 endif
7c1f25b probe static SDL link
bellard authored Apr 22, 2004
742 ifdef CONFIG_SLIRP
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
743 CPPFLAGS+=-I$(SRC_PATH)/slirp
626df76 build all targets at the same time
bellard authored Aug 10, 2003
744 endif
745
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
746 LIBS+=$(AIOLIBS)
c321f67 enabled system emulator build on PowerPC - increased portability of s…
bellard authored Oct 30, 2003
747 # specific flags are needed for non soft mmu emulator
748 ifdef CONFIG_STATIC
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
749 LDFLAGS+=-static
de5eaa6 static config for SDL
bellard authored Nov 16, 2003
750 endif
83fb7ad Darwin patch (initial patch by Pierre d'Herbemont)
bellard authored Jul 5, 2004
751 ifndef CONFIG_DARWIN
11d9f69 win32 cross compile fix
bellard authored Apr 2, 2004
752 ifndef CONFIG_WIN32
ec530c8 Solaris port (Ben Taylor)
bellard authored Apr 25, 2006
753 ifndef CONFIG_SOLARIS
b29fe3e Preliminary AIX support
malc authored Nov 18, 2008
754 ifndef CONFIG_AIX
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
755 LIBS+=-lutil
11d9f69 win32 cross compile fix
bellard authored Apr 2, 2004
756 endif
b29fe3e Preliminary AIX support
malc authored Nov 18, 2008
757 endif
83fb7ad Darwin patch (initial patch by Pierre d'Herbemont)
bellard authored Jul 5, 2004
758 endif
ec530c8 Solaris port (Ben Taylor)
bellard authored Apr 25, 2006
759 endif
e3086fb kqemu support
bellard authored Feb 10, 2005
760 ifdef TARGET_GPROF
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
761 vl.o: CFLAGS+=-p
762 LDFLAGS+=-p
e3086fb kqemu support
bellard authored Feb 10, 2005
763 endif
c321f67 enabled system emulator build on PowerPC - increased portability of s…
bellard authored Oct 30, 2003
764
b8076a7 ia64 host support (David Mosberger)
bellard authored Apr 7, 2005
765 ifeq ($(ARCH),ia64)
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
766 LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
74ccb34 Sparc64 host support (Blue Swirl)
bellard authored Jul 18, 2006
767 endif
768
1d14ffa merged 15a_aqemu.patch audio patch (malc)
bellard authored Oct 30, 2005
769 ifdef CONFIG_WIN32
770 SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
771 endif
772
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
773 # profiling code
774 ifdef TARGET_GPROF
775 LDFLAGS+=-p
776 main.o: CFLAGS+=-p
6e1b3e4 disable -fomit-frame-pointer
bellard authored Aug 17, 2006
777 endif
778
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
779 $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a
8a16d27 Add Virtual Distributed Ethernet native support, by Luca Bigliardi.
ths authored Jul 19, 2008
780 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS)
626df76 build all targets at the same time
bellard authored Aug 10, 2003
781
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
782 endif # !CONFIG_USER_ONLY
00a67ba avoid regression on sparc-user and ppc-user
bellard authored Oct 28, 2006
783
56aebc8 Add GDB XML register description support.
pbrook authored Oct 11, 2008
784 gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh
785 rm -f $@
786 ifeq ($(TARGET_XML_FILES),)
787 echo > $@
788 else
789 $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES)
790 endif
791
626df76 build all targets at the same time
bellard authored Aug 10, 2003
792 %.o: %.c
40293e5 Makefile cleanup - more generic support of 32 bit compilation on x86_64
bellard authored Jan 31, 2008
793 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
626df76 build all targets at the same time
bellard authored Aug 10, 2003
794
f72b519 added osdep.o and nwfpe
bellard authored Feb 16, 2004
795 %.o: %.S
6f30fa8 Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
ths authored Jan 5, 2007
796 $(CC) $(CPPFLAGS) -c -o $@ $<
f72b519 added osdep.o and nwfpe
bellard authored Feb 16, 2004
797
626df76 build all targets at the same time
bellard authored Aug 10, 2003
798 clean:
86e840e Remove a few dyngen and dyngen related code
aurel32 authored Dec 7, 2008
799 rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
57fec1f use the TCG code generator
bellard authored Feb 1, 2008
800 rm -f *.d */*.d tcg/*.o
1e43adf new directory structure - changed naming of qemu and vl
bellard authored Sep 30, 2003
801
5fafdf2 find -type f | xargs sed -i 's/[\t ]$//g' # on most files
ths authored Sep 16, 2007
802 install: all
9b14bb0 install fix (Rusty Russel)
bellard authored Mar 26, 2004
803 ifneq ($(PROGS),)
6a88264 Allow user to specify "install" utility.
pbrook authored Apr 17, 2006
804 $(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
9b14bb0 install fix (Rusty Russel)
bellard authored Mar 26, 2004
805 endif
626df76 build all targets at the same time
bellard authored Aug 10, 2003
806
2f96c28 Use cpp to generate correct build dependencies for target objects
j_mayer authored Oct 28, 2007
807 # Include automatically generated dependency files
808 -include $(wildcard *.d */*.d)
Something went wrong with that request. Please try again.