Statistics
| Branch: | Revision:

root / Makefile.target @ cd1a3f68

History | View | Annotate | Download (17.4 kB)

1 626df76a bellard
include config.mak
2 626df76a bellard
3 0b0babc6 bellard
TARGET_BASE_ARCH:=$(TARGET_ARCH)
4 0b0babc6 bellard
ifeq ($(TARGET_ARCH), x86_64)
5 0b0babc6 bellard
TARGET_BASE_ARCH:=i386
6 0b0babc6 bellard
endif
7 fbe4f65b ths
ifeq ($(TARGET_ARCH), mips64)
8 fbe4f65b ths
TARGET_BASE_ARCH:=mips
9 fbe4f65b ths
endif
10 a2458627 bellard
ifeq ($(TARGET_ARCH), ppc64)
11 a2458627 bellard
TARGET_BASE_ARCH:=ppc
12 a2458627 bellard
endif
13 d4082e95 j_mayer
ifeq ($(TARGET_ARCH), ppcemb)
14 d4082e95 j_mayer
TARGET_BASE_ARCH:=ppc
15 d4082e95 j_mayer
endif
16 64b3ab24 bellard
ifeq ($(TARGET_ARCH), sparc64)
17 64b3ab24 bellard
TARGET_BASE_ARCH:=sparc
18 64b3ab24 bellard
endif
19 0b0babc6 bellard
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
20 85571bc7 bellard
VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/audio
21 6f30fa85 ths
CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH)
22 831b7825 ths
ifdef CONFIG_DARWIN_USER
23 831b7825 ths
VPATH+=:$(SRC_PATH)/darwin-user
24 831b7825 ths
CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
25 831b7825 ths
endif
26 831b7825 ths
ifdef CONFIG_LINUX_USER
27 3035f7ff bellard
VPATH+=:$(SRC_PATH)/linux-user
28 6f30fa85 ths
CPPFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
29 3035f7ff bellard
endif
30 6f30fa85 ths
BASE_CFLAGS=
31 6f30fa85 ths
BASE_LDFLAGS=
32 0b0babc6 bellard
#CFLAGS+=-Werror
33 626df76a bellard
LIBS=
34 626df76a bellard
HELPER_CFLAGS=$(CFLAGS)
35 67b915a5 bellard
DYNGEN=../dyngen$(EXESUF)
36 1e43adfc bellard
# user emulator name
37 c91fde65 bellard
TARGET_ARCH2=$(TARGET_ARCH)
38 808c4954 bellard
ifeq ($(TARGET_ARCH),arm)
39 808c4954 bellard
  ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
40 c91fde65 bellard
    TARGET_ARCH2=armeb
41 808c4954 bellard
  endif
42 c91fde65 bellard
endif
43 908f52b0 pbrook
ifeq ($(TARGET_ARCH),sh4)
44 908f52b0 pbrook
  ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
45 908f52b0 pbrook
    TARGET_ARCH2=sh4eb
46 908f52b0 pbrook
  endif
47 908f52b0 pbrook
endif
48 01f5e596 bellard
ifeq ($(TARGET_ARCH),mips)
49 c91fde65 bellard
  ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
50 c91fde65 bellard
    TARGET_ARCH2=mipsel
51 01f5e596 bellard
  endif
52 01f5e596 bellard
endif
53 fbe4f65b ths
ifeq ($(TARGET_ARCH),mips64)
54 fbe4f65b ths
  ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
55 fbe4f65b ths
    TARGET_ARCH2=mips64el
56 fbe4f65b ths
  endif
57 fbe4f65b ths
endif
58 c91fde65 bellard
QEMU_USER=qemu-$(TARGET_ARCH2)
59 1e43adfc bellard
# system emulator name
60 1e43adfc bellard
ifdef CONFIG_SOFTMMU
61 a541f297 bellard
ifeq ($(TARGET_ARCH), i386)
62 67b915a5 bellard
QEMU_SYSTEM=qemu$(EXESUF)
63 0db63474 bellard
else
64 c91fde65 bellard
QEMU_SYSTEM=qemu-system-$(TARGET_ARCH2)$(EXESUF)
65 a541f297 bellard
endif
66 a541f297 bellard
else
67 0db63474 bellard
QEMU_SYSTEM=qemu-fast
68 1e43adfc bellard
endif
69 1e43adfc bellard
70 16e9b7de bellard
ifdef CONFIG_USER_ONLY
71 1e43adfc bellard
PROGS=$(QEMU_USER)
72 16e9b7de bellard
else
73 c321f673 bellard
PROGS+=$(QEMU_SYSTEM)
74 de5eaa64 bellard
ifndef CONFIG_SOFTMMU
75 de5eaa64 bellard
CONFIG_STATIC=y
76 de5eaa64 bellard
endif
77 728c9fd5 bellard
endif # !CONFIG_USER_ONLY
78 626df76a bellard
79 626df76a bellard
ifdef CONFIG_STATIC
80 6f30fa85 ths
BASE_LDFLAGS+=-static
81 626df76a bellard
endif
82 626df76a bellard
83 6f30fa85 ths
# We require -O2 to avoid the stack setup prologue in EXIT_TB
84 6c041c54 ths
OP_CFLAGS := -Wall -O2 -g -fno-strict-aliasing
85 6c041c54 ths
86 6c041c54 ths
# cc-option
87 6c041c54 ths
# Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
88 6c041c54 ths
89 6c041c54 ths
cc-option = $(shell if $(CC) $(OP_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
90 6c041c54 ths
              > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
91 6c041c54 ths
92 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-reorder-blocks, "")
93 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-gcse, "")
94 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-tree-ch, "")
95 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-optimize-sibling-calls, "")
96 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-crossjumping, "")
97 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-align-labels, "")
98 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-align-jumps, "")
99 6c041c54 ths
OP_CFLAGS+=$(call cc-option, -fno-align-functions, $(call cc-option, -malign-functions=0, ""))
100 1870a74c ths
OP_CFLAGS+=$(call cc-option, -fno-section-anchors, "")
101 6f30fa85 ths
102 626df76a bellard
ifeq ($(ARCH),i386)
103 6f30fa85 ths
HELPER_CFLAGS+=-fomit-frame-pointer
104 6f30fa85 ths
OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer
105 626df76a bellard
ifdef TARGET_GPROF
106 3a4739d6 bellard
USE_I386_LD=y
107 3a4739d6 bellard
endif
108 3a4739d6 bellard
ifdef CONFIG_STATIC
109 3a4739d6 bellard
USE_I386_LD=y
110 3a4739d6 bellard
endif
111 3a4739d6 bellard
ifdef USE_I386_LD
112 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
113 626df76a bellard
else
114 831b7825 ths
ifdef CONFIG_LINUX_USER
115 626df76a bellard
# WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
116 626df76a bellard
# that the kernel ELF loader considers as an executable. I think this
117 626df76a bellard
# is the simplest way to make it self virtualizable!
118 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-shared
119 626df76a bellard
endif
120 626df76a bellard
endif
121 831b7825 ths
endif
122 626df76a bellard
123 0b0babc6 bellard
ifeq ($(ARCH),x86_64)
124 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
125 bc51c5c9 bellard
endif
126 bc51c5c9 bellard
127 626df76a bellard
ifeq ($(ARCH),ppc)
128 6f30fa85 ths
CPPFLAGS+= -D__powerpc__
129 831b7825 ths
ifdef CONFIG_LINUX_USER
130 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
131 626df76a bellard
endif
132 831b7825 ths
endif
133 626df76a bellard
134 626df76a bellard
ifeq ($(ARCH),s390)
135 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
136 626df76a bellard
endif
137 626df76a bellard
138 626df76a bellard
ifeq ($(ARCH),sparc)
139 3142255c blueswir1
  BASE_CFLAGS+=-ffixed-g2 -ffixed-g3
140 3142255c blueswir1
  OP_CFLAGS+=-fno-delayed-branch -ffixed-i0
141 3142255c blueswir1
  ifeq ($(CONFIG_SOLARIS),yes)
142 3142255c blueswir1
    OP_CFLAGS+=-fno-omit-frame-pointer
143 3142255c blueswir1
  else
144 3142255c blueswir1
    BASE_CFLAGS+=-ffixed-g1 -ffixed-g6
145 3142255c blueswir1
    HELPER_CFLAGS=$(CFLAGS) -ffixed-i0 -mflat
146 3142255c blueswir1
    # -static is used to avoid g1/g3 usage by the dynamic linker
147 3142255c blueswir1
    BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
148 3142255c blueswir1
  endif
149 fdbb4691 bellard
endif
150 626df76a bellard
151 626df76a bellard
ifeq ($(ARCH),sparc64)
152 3142255c blueswir1
  BASE_CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
153 3142255c blueswir1
  OP_CFLAGS+=-mcpu=ultrasparc -m64 -fno-delayed-branch -ffixed-i0
154 3142255c blueswir1
  ifneq ($(CONFIG_SOLARIS),yes)
155 3142255c blueswir1
    BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
156 3142255c blueswir1
    OP_CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
157 3142255c blueswir1
  endif
158 626df76a bellard
endif
159 626df76a bellard
160 626df76a bellard
ifeq ($(ARCH),alpha)
161 6f30fa85 ths
# -msmall-data is not used for OP_CFLAGS because we want two-instruction
162 6f30fa85 ths
# relocations for the constant constructions
163 626df76a bellard
# Ensure there's only a single GP
164 6f30fa85 ths
BASE_CFLAGS+=-msmall-data
165 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
166 626df76a bellard
endif
167 626df76a bellard
168 626df76a bellard
ifeq ($(ARCH),ia64)
169 6f30fa85 ths
BASE_CFLAGS+=-mno-sdata
170 6f30fa85 ths
OP_CFLAGS+=-mno-sdata
171 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
172 626df76a bellard
endif
173 626df76a bellard
174 626df76a bellard
ifeq ($(ARCH),arm)
175 6f30fa85 ths
OP_CFLAGS+=-mno-sched-prolog -fno-omit-frame-pointer
176 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
177 626df76a bellard
endif
178 626df76a bellard
179 38e584a0 bellard
ifeq ($(ARCH),m68k)
180 6f30fa85 ths
OP_CFLAGS+=-fomit-frame-pointer
181 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
182 6f30fa85 ths
endif
183 6f30fa85 ths
184 6f30fa85 ths
ifeq ($(ARCH),mips)
185 9617efe8 ths
OP_CFLAGS+=-mabi=32 -G0 -fno-PIC -mno-abicalls -fomit-frame-pointer -fno-delayed-branch -Wa,-O0
186 fbe4f65b ths
ifeq ($(WORDS_BIGENDIAN),yes)
187 fbe4f65b ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
188 fbe4f65b ths
else
189 fbe4f65b ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
190 fbe4f65b ths
endif
191 fbe4f65b ths
endif
192 fbe4f65b ths
193 fbe4f65b ths
ifeq ($(ARCH),mips64)
194 9617efe8 ths
OP_CFLAGS+=-mabi=n32 -G0 -fno-PIC -mno-abicalls -fomit-frame-pointer -fno-delayed-branch -Wa,-O0
195 fbe4f65b ths
ifeq ($(WORDS_BIGENDIAN),yes)
196 6f30fa85 ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
197 fbe4f65b ths
else
198 fbe4f65b ths
BASE_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
199 fbe4f65b ths
endif
200 38e584a0 bellard
endif
201 38e584a0 bellard
202 83fb7adf bellard
ifeq ($(CONFIG_DARWIN),yes)
203 e80cfcfc bellard
LIBS+=-lmx
204 83fb7adf bellard
endif
205 83fb7adf bellard
206 01feaa05 ths
ifdef CONFIG_DARWIN_USER
207 01feaa05 ths
# Leave some space for the regular program loading zone
208 01feaa05 ths
BASE_LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
209 01feaa05 ths
endif
210 01feaa05 ths
211 3142255c blueswir1
BASE_CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
212 3142255c blueswir1
BASE_LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
213 3142255c blueswir1
OP_CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
214 3142255c blueswir1
OP_LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
215 6f30fa85 ths
216 626df76a bellard
#########################################################
217 626df76a bellard
218 6f30fa85 ths
CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
219 626df76a bellard
LIBS+=-lm
220 b932caba bellard
ifndef CONFIG_USER_ONLY
221 b932caba bellard
LIBS+=-lz
222 b932caba bellard
endif
223 67b915a5 bellard
ifdef CONFIG_WIN32
224 3db38e87 bellard
LIBS+=-lwinmm -lws2_32 -liphlpapi
225 67b915a5 bellard
endif
226 ec530c81 bellard
ifdef CONFIG_SOLARIS
227 ec530c81 bellard
LIBS+=-lsocket -lnsl -lresolv
228 0475a5ca ths
ifdef NEEDS_LIBSUNMATH
229 0475a5ca ths
LIBS+=-lsunmath
230 0475a5ca ths
LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
231 0475a5ca ths
OP_CFLAGS+=-I/opt/SUNWspro/prod/include/cc
232 0475a5ca ths
BASE_CFLAGS+=-I/opt/SUNWspro/prod/include/cc
233 0475a5ca ths
endif
234 ec530c81 bellard
endif
235 626df76a bellard
236 626df76a bellard
# profiling code
237 626df76a bellard
ifdef TARGET_GPROF
238 6f30fa85 ths
BASE_LDFLAGS+=-p
239 6f30fa85 ths
main.o: BASE_CFLAGS+=-p
240 626df76a bellard
endif
241 626df76a bellard
242 831b7825 ths
ifdef CONFIG_LINUX_USER
243 e5fe0c52 pbrook
OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \
244 e5fe0c52 pbrook
      elfload.o linuxload.o
245 b5906f95 ths
LIBS+= $(AIOLIBS)
246 e5fe0c52 pbrook
ifdef TARGET_HAS_BFLT
247 e5fe0c52 pbrook
OBJS+= flatload.o
248 e5fe0c52 pbrook
endif
249 e5fe0c52 pbrook
250 626df76a bellard
ifeq ($(TARGET_ARCH), i386)
251 626df76a bellard
OBJS+= vm86.o
252 626df76a bellard
endif
253 f72b519c bellard
ifeq ($(TARGET_ARCH), arm)
254 158142c2 bellard
OBJS+=nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \
255 f72b519c bellard
nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \
256 a4f81979 bellard
 nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o
257 f72b519c bellard
endif
258 e6e5906b pbrook
ifeq ($(TARGET_ARCH), m68k)
259 e6e5906b pbrook
OBJS+= m68k-sim.o m68k-semi.o
260 e6e5906b pbrook
endif
261 831b7825 ths
endif #CONFIG_LINUX_USER
262 831b7825 ths
263 831b7825 ths
ifdef CONFIG_DARWIN_USER
264 831b7825 ths
OBJS= main.o commpage.o machload.o mmap.o osdep.o signal.o syscall.o thunk.o
265 831b7825 ths
endif
266 831b7825 ths
267 626df76a bellard
SRCS:= $(OBJS:.o=.c)
268 626df76a bellard
OBJS+= libqemu.a
269 626df76a bellard
270 626df76a bellard
# cpu emulator library
271 158142c2 bellard
LIBOBJS=exec.o kqemu.o translate-op.o translate-all.o cpu-exec.o\
272 f1548daa j_mayer
        translate.o op.o host-utils.o
273 158142c2 bellard
ifdef CONFIG_SOFTFLOAT
274 158142c2 bellard
LIBOBJS+=fpu/softfloat.o
275 158142c2 bellard
else
276 158142c2 bellard
LIBOBJS+=fpu/softfloat-native.o
277 158142c2 bellard
endif
278 6f30fa85 ths
CPPFLAGS+=-I$(SRC_PATH)/fpu
279 626df76a bellard
280 626df76a bellard
ifeq ($(TARGET_ARCH), i386)
281 1e43adfc bellard
LIBOBJS+=helper.o helper2.o
282 f72b519c bellard
ifeq ($(ARCH), i386)
283 f72b519c bellard
LIBOBJS+=translate-copy.o
284 f72b519c bellard
endif
285 626df76a bellard
endif
286 626df76a bellard
287 0b0babc6 bellard
ifeq ($(TARGET_ARCH), x86_64)
288 0b0babc6 bellard
LIBOBJS+=helper.o helper2.o
289 0b0babc6 bellard
endif
290 0b0babc6 bellard
291 a2458627 bellard
ifeq ($(TARGET_BASE_ARCH), ppc)
292 728c9fd5 bellard
LIBOBJS+= op_helper.o helper.o
293 67867308 bellard
endif
294 67867308 bellard
295 fbe4f65b ths
ifeq ($(TARGET_BASE_ARCH), mips)
296 6af0bf9c bellard
LIBOBJS+= op_helper.o helper.o
297 6af0bf9c bellard
endif
298 6af0bf9c bellard
299 64b3ab24 bellard
ifeq ($(TARGET_BASE_ARCH), sparc)
300 e95c8d51 bellard
LIBOBJS+= op_helper.o helper.o
301 e95c8d51 bellard
endif
302 e95c8d51 bellard
303 b7bcbe95 bellard
ifeq ($(TARGET_BASE_ARCH), arm)
304 b5ff1b31 bellard
LIBOBJS+= op_helper.o helper.o
305 b7bcbe95 bellard
endif
306 b7bcbe95 bellard
307 fdf9b3e8 bellard
ifeq ($(TARGET_BASE_ARCH), sh4)
308 fdf9b3e8 bellard
LIBOBJS+= op_helper.o helper.o
309 fdf9b3e8 bellard
endif
310 fdf9b3e8 bellard
311 e6e5906b pbrook
ifeq ($(TARGET_BASE_ARCH), m68k)
312 0633879f pbrook
LIBOBJS+= op_helper.o helper.o
313 e6e5906b pbrook
endif
314 e6e5906b pbrook
315 cf6c1b16 j_mayer
ifeq ($(TARGET_BASE_ARCH), alpha)
316 cf6c1b16 j_mayer
LIBOBJS+= op_helper.o helper.o alpha_palcode.o
317 cf6c1b16 j_mayer
endif
318 cf6c1b16 j_mayer
319 626df76a bellard
# NOTE: the disassembler code is only needed for debugging
320 5fafdf24 ths
LIBOBJS+=disas.o
321 626df76a bellard
ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
322 bc51c5c9 bellard
USE_I386_DIS=y
323 bc51c5c9 bellard
endif
324 0b0babc6 bellard
ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
325 bc51c5c9 bellard
USE_I386_DIS=y
326 bc51c5c9 bellard
endif
327 bc51c5c9 bellard
ifdef USE_I386_DIS
328 626df76a bellard
LIBOBJS+=i386-dis.o
329 626df76a bellard
endif
330 626df76a bellard
ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
331 626df76a bellard
LIBOBJS+=alpha-dis.o
332 626df76a bellard
endif
333 a2458627 bellard
ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
334 626df76a bellard
LIBOBJS+=ppc-dis.o
335 626df76a bellard
endif
336 fbe4f65b ths
ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips)
337 6af0bf9c bellard
LIBOBJS+=mips-dis.o
338 6af0bf9c bellard
endif
339 64b3ab24 bellard
ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
340 626df76a bellard
LIBOBJS+=sparc-dis.o
341 626df76a bellard
endif
342 626df76a bellard
ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
343 626df76a bellard
LIBOBJS+=arm-dis.o
344 626df76a bellard
endif
345 48024e4a bellard
ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
346 48024e4a bellard
LIBOBJS+=m68k-dis.o
347 48024e4a bellard
endif
348 fdf9b3e8 bellard
ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
349 fdf9b3e8 bellard
LIBOBJS+=sh4-dis.o
350 fdf9b3e8 bellard
endif
351 8f860bb8 ths
ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390)
352 8f860bb8 ths
LIBOBJS+=s390-dis.o
353 8f860bb8 ths
endif
354 626df76a bellard
355 1fddef4b bellard
ifdef CONFIG_GDBSTUB
356 1fddef4b bellard
OBJS+=gdbstub.o
357 1fddef4b bellard
endif
358 626df76a bellard
359 1e43adfc bellard
all: $(PROGS)
360 626df76a bellard
361 1e43adfc bellard
$(QEMU_USER): $(OBJS)
362 6f30fa85 ths
	$(CC) $(LDFLAGS) $(BASE_LDFLAGS) -o $@ $^  $(LIBS)
363 626df76a bellard
ifeq ($(ARCH),alpha)
364 626df76a bellard
# Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
365 626df76a bellard
# the address space (31 bit so sign extending doesn't matter)
366 626df76a bellard
	echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
367 626df76a bellard
endif
368 626df76a bellard
369 626df76a bellard
# must use static linking to avoid leaving stuff in virtual address space
370 aef445bd pbrook
VL_OBJS=vl.o osdep.o readline.o monitor.o pci.o console.o loader.o isa_mmio.o
371 18607dcb bellard
VL_OBJS+=cutils.o
372 83f64091 bellard
VL_OBJS+=block.o block-raw.o
373 6ada7453 ths
VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o block-qcow2.o block-parallels.o
374 d537cf6c pbrook
VL_OBJS+=irq.o
375 7fb843f8 bellard
ifdef CONFIG_WIN32
376 7fb843f8 bellard
VL_OBJS+=tap-win32.o
377 7fb843f8 bellard
endif
378 a541f297 bellard
379 1d14ffa9 bellard
SOUND_HW = sb16.o es1370.o
380 b00052e4 balrog
AUDIODRV = audio.o noaudio.o wavaudio.o mixeng.o
381 fb065187 bellard
ifdef CONFIG_SDL
382 fb065187 bellard
AUDIODRV += sdlaudio.o
383 fb065187 bellard
endif
384 fb065187 bellard
ifdef CONFIG_OSS
385 fb065187 bellard
AUDIODRV += ossaudio.o
386 fb065187 bellard
endif
387 1d14ffa9 bellard
ifdef CONFIG_COREAUDIO
388 1d14ffa9 bellard
AUDIODRV += coreaudio.o
389 1d14ffa9 bellard
endif
390 1d14ffa9 bellard
ifdef CONFIG_ALSA
391 1d14ffa9 bellard
AUDIODRV += alsaaudio.o
392 1d14ffa9 bellard
LIBS += -lasound
393 1d14ffa9 bellard
endif
394 1d14ffa9 bellard
ifdef CONFIG_DSOUND
395 1d14ffa9 bellard
AUDIODRV += dsoundaudio.o
396 1d14ffa9 bellard
LIBS += -lole32 -ldxguid
397 85571bc7 bellard
endif
398 102a52e4 bellard
ifdef CONFIG_FMOD
399 85571bc7 bellard
AUDIODRV += fmodaudio.o
400 6f30fa85 ths
audio.o fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS)
401 102a52e4 bellard
LIBS += $(CONFIG_FMOD_LIB)
402 85571bc7 bellard
endif
403 1d14ffa9 bellard
ifdef CONFIG_ADLIB
404 1d14ffa9 bellard
SOUND_HW += fmopl.o adlib.o
405 1d14ffa9 bellard
endif
406 ec36b695 bellard
AUDIODRV+= wavcapture.o
407 85571bc7 bellard
408 8d5d2d4c ths
ifdef CONFIG_VNC_TLS
409 8d5d2d4c ths
CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
410 8d5d2d4c ths
LIBS += $(CONFIG_VNC_TLS_LIBS)
411 8d5d2d4c ths
endif
412 8d5d2d4c ths
413 0ff596d0 pbrook
VL_OBJS += i2c.o smbus.o
414 0ff596d0 pbrook
415 2e5d83bb pbrook
# SCSI layer
416 7d8406be pbrook
VL_OBJS+= scsi-disk.o cdrom.o lsi53c895a.o
417 2e5d83bb pbrook
418 a594cfbf bellard
# USB layer
419 2e5d83bb pbrook
VL_OBJS+= usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o
420 f6d2a316 balrog
VL_OBJS+= usb-wacom.o
421 a594cfbf bellard
422 663e8e51 ths
# EEPROM emulation
423 663e8e51 ths
VL_OBJS += eeprom93xx.o
424 663e8e51 ths
425 a41b2ff2 pbrook
# PCI network cards
426 663e8e51 ths
VL_OBJS += eepro100.o
427 663e8e51 ths
VL_OBJS += ne2000.o
428 663e8e51 ths
VL_OBJS += pcnet.o
429 663e8e51 ths
VL_OBJS += rtl8139.o
430 a41b2ff2 pbrook
431 0b0babc6 bellard
ifeq ($(TARGET_BASE_ARCH), i386)
432 a541f297 bellard
# Hardware support
433 a41b2ff2 pbrook
VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
434 fd06c375 bellard
VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
435 b00052e4 balrog
VL_OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
436 591a6d62 ths
VL_OBJS+= usb-uhci.o smbus_eeprom.o vmmouse.o vmport.o vmware_vga.o
437 b00052e4 balrog
CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
438 67b915a5 bellard
endif
439 a2458627 bellard
ifeq ($(TARGET_BASE_ARCH), ppc)
440 a41b2ff2 pbrook
VL_OBJS+= ppc.o ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
441 8ecc7913 j_mayer
VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o pflash_cfi02.o
442 b00052e4 balrog
VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o
443 1a6c0886 j_mayer
VL_OBJS+= grackle_pci.o prep_pci.o unin_pci.o ppc405_uc.o ppc405_boards.o
444 b00052e4 balrog
CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
445 a541f297 bellard
endif
446 fbe4f65b ths
ifeq ($(TARGET_BASE_ARCH), mips)
447 ad6fe1d2 ths
VL_OBJS+= mips_r4k.o mips_malta.o mips_pica61.o
448 ad6fe1d2 ths
VL_OBJS+= mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o
449 31211df1 ths
VL_OBJS+= jazz_led.o
450 9542611a ths
VL_OBJS+= ide.o gt64xxx.o pckbd.o ps2.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
451 7b717336 ths
VL_OBJS+= piix_pci.o smbus_eeprom.o parallel.o mixeng.o cirrus_vga.o $(SOUND_HW) $(AUDIODRV)
452 83b1fb88 ths
CPPFLAGS += -DHAS_AUDIO
453 6af0bf9c bellard
endif
454 64b3ab24 bellard
ifeq ($(TARGET_BASE_ARCH), sparc)
455 3475187d bellard
ifeq ($(TARGET_ARCH), sparc64)
456 502a5395 pbrook
VL_OBJS+= sun4u.o ide.o pckbd.o ps2.o vga.o apb_pci.o
457 83469015 bellard
VL_OBJS+= fdc.o mc146818rtc.o serial.o m48t59.o
458 20c9f095 blueswir1
VL_OBJS+= cirrus_vga.o parallel.o ptimer.o
459 3475187d bellard
else
460 67e999be bellard
VL_OBJS+= sun4m.o tcx.o pcnet.o iommu.o m48t59.o slavio_intctl.o
461 67e999be bellard
VL_OBJS+= slavio_timer.o slavio_serial.o slavio_misc.o fdc.o esp.o sparc32_dma.o
462 8d05ea8a blueswir1
VL_OBJS+= cs4231.o ptimer.o
463 3475187d bellard
endif
464 e95c8d51 bellard
endif
465 b5ff1b31 bellard
ifeq ($(TARGET_BASE_ARCH), arm)
466 cdbdb648 pbrook
VL_OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o
467 7e1543c2 pbrook
VL_OBJS+= arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
468 6963d7af pbrook
VL_OBJS+= versatile_pci.o sd.o ptimer.o
469 e69954b9 pbrook
VL_OBJS+= arm_gic.o realview.o arm_sysctl.o
470 8e71621f pbrook
VL_OBJS+= arm-semi.o
471 b00052e4 balrog
VL_OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
472 adb86c37 balrog
VL_OBJS+= pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o max111x.o max7310.o
473 adb86c37 balrog
VL_OBJS+= spitz.o ads7846.o ide.o serial.o nand.o $(AUDIODRV) wm8750.o
474 9ff6755b balrog
VL_OBJS+= omap.o omap_lcdc.o omap1_clk.o omap_mmc.o palm.o ecc.o
475 5a1237c4 balrog
CPPFLAGS += -DHAS_AUDIO
476 b5ff1b31 bellard
endif
477 fdf9b3e8 bellard
ifeq ($(TARGET_BASE_ARCH), sh4)
478 0d78f544 ths
VL_OBJS+= shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
479 cd1a3f68 ths
VL_OBJS+= sh_timer.o ptimer.o
480 fdf9b3e8 bellard
endif
481 0633879f pbrook
ifeq ($(TARGET_BASE_ARCH), m68k)
482 7e049b8a pbrook
VL_OBJS+= an5206.o mcf5206.o ptimer.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
483 a87295e8 pbrook
VL_OBJS+= m68k-semi.o
484 0633879f pbrook
endif
485 a541f297 bellard
ifdef CONFIG_GDBSTUB
486 5fafdf24 ths
VL_OBJS+=gdbstub.o
487 728c9fd5 bellard
endif
488 626df76a bellard
ifdef CONFIG_SDL
489 6070dd07 ths
VL_OBJS+=sdl.o x_keymap.o
490 de5eaa64 bellard
endif
491 70848515 ths
VL_OBJS+=vnc.o d3des.o
492 5b0753e0 bellard
ifdef CONFIG_COCOA
493 5b0753e0 bellard
VL_OBJS+=cocoa.o
494 1d14ffa9 bellard
COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
495 1d14ffa9 bellard
ifdef CONFIG_COREAUDIO
496 1d14ffa9 bellard
COCOA_LIBS+=-framework CoreAudio
497 1d14ffa9 bellard
endif
498 5b0753e0 bellard
endif
499 7c1f25b4 bellard
ifdef CONFIG_SLIRP
500 6f30fa85 ths
CPPFLAGS+=-I$(SRC_PATH)/slirp
501 7c1f25b4 bellard
SLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \
502 7c1f25b4 bellard
slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \
503 c7f74643 bellard
tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o
504 7c1f25b4 bellard
VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS))
505 626df76a bellard
endif
506 626df76a bellard
507 db8d7dd1 ths
VL_LDFLAGS=$(VL_OS_LDFLAGS)
508 70956b77 ths
VL_LIBS=$(AIOLIBS)
509 c321f673 bellard
# specific flags are needed for non soft mmu emulator
510 c321f673 bellard
ifdef CONFIG_STATIC
511 c321f673 bellard
VL_LDFLAGS+=-static
512 c321f673 bellard
endif
513 de5eaa64 bellard
ifndef CONFIG_SOFTMMU
514 5fafdf24 ths
VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld
515 de5eaa64 bellard
endif
516 83fb7adf bellard
ifndef CONFIG_DARWIN
517 11d9f695 bellard
ifndef CONFIG_WIN32
518 ec530c81 bellard
ifndef CONFIG_SOLARIS
519 70956b77 ths
VL_LIBS+=-lutil
520 11d9f695 bellard
endif
521 83fb7adf bellard
endif
522 ec530c81 bellard
endif
523 e3086fbf bellard
ifdef TARGET_GPROF
524 6f30fa85 ths
vl.o: BASE_CFLAGS+=-p
525 e3086fbf bellard
VL_LDFLAGS+=-p
526 e3086fbf bellard
endif
527 c321f673 bellard
528 b8076a74 bellard
ifeq ($(ARCH),ia64)
529 b8076a74 bellard
VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
530 b8076a74 bellard
endif
531 b8076a74 bellard
532 74ccb34e bellard
ifeq ($(ARCH),sparc64)
533 3142255c blueswir1
  VL_LDFLAGS+=-m64
534 3142255c blueswir1
  ifneq ($(CONFIG_SOLARIS),yes)
535 3142255c blueswir1
    VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
536 3142255c blueswir1
  endif
537 74ccb34e bellard
endif
538 74ccb34e bellard
539 1d14ffa9 bellard
ifdef CONFIG_WIN32
540 1d14ffa9 bellard
SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
541 1d14ffa9 bellard
endif
542 1d14ffa9 bellard
543 1e43adfc bellard
$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a
544 3a11702b pbrook
	$(CC) $(VL_LDFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)
545 5b0753e0 bellard
546 5b0753e0 bellard
cocoa.o: cocoa.m
547 6f30fa85 ths
	$(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
548 626df76a bellard
549 3d11d0eb bellard
sdl.o: sdl.c keymaps.c sdl_keysym.h
550 6f30fa85 ths
	$(CC) $(CFLAGS) $(CPPFLAGS) $(SDL_CFLAGS) $(BASE_CFLAGS) -c -o $@ $<
551 626df76a bellard
552 70848515 ths
vnc.o: vnc.c keymaps.c sdl_keysym.h vnchextile.h d3des.c d3des.h
553 6f30fa85 ths
	$(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
554 24236869 bellard
555 9f059eca bellard
sdlaudio.o: sdlaudio.c
556 6f30fa85 ths
	$(CC) $(CFLAGS) $(CPPFLAGS) $(SDL_CFLAGS) $(BASE_CFLAGS) -c -o $@ $<
557 9f059eca bellard
558 626df76a bellard
depend: $(SRCS)
559 6f30fa85 ths
	$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $^ 1>.depend
560 626df76a bellard
561 1d14ffa9 bellard
vldepend: $(VL_OBJS:.o=.c)
562 6f30fa85 ths
	$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) $^ 1>.depend
563 1d14ffa9 bellard
564 5fafdf24 ths
# libqemu
565 626df76a bellard
566 626df76a bellard
libqemu.a: $(LIBOBJS)
567 626df76a bellard
	rm -f $@
568 626df76a bellard
	$(AR) rcs $@ $(LIBOBJS)
569 626df76a bellard
570 1e43adfc bellard
translate.o: translate.c gen-op.h opc.h cpu.h
571 626df76a bellard
572 158142c2 bellard
translate-all.o: translate-all.c opc.h cpu.h
573 158142c2 bellard
574 158142c2 bellard
translate-op.o: translate-all.c op.h opc.h cpu.h
575 626df76a bellard
576 1e43adfc bellard
op.h: op.o $(DYNGEN)
577 626df76a bellard
	$(DYNGEN) -o $@ $<
578 626df76a bellard
579 1e43adfc bellard
opc.h: op.o $(DYNGEN)
580 626df76a bellard
	$(DYNGEN) -c -o $@ $<
581 626df76a bellard
582 1e43adfc bellard
gen-op.h: op.o $(DYNGEN)
583 626df76a bellard
	$(DYNGEN) -g -o $@ $<
584 626df76a bellard
585 1e43adfc bellard
op.o: op.c
586 6f30fa85 ths
	$(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
587 626df76a bellard
588 6e1b3e4d bellard
# HELPER_CFLAGS is used for all the code compiled with static register
589 6e1b3e4d bellard
# variables
590 6e1b3e4d bellard
ifeq ($(TARGET_BASE_ARCH), i386)
591 6e1b3e4d bellard
# XXX: rename helper.c to op_helper.c
592 1e43adfc bellard
helper.o: helper.c
593 6f30fa85 ths
	$(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
594 6e1b3e4d bellard
else
595 6e1b3e4d bellard
op_helper.o: op_helper.c
596 6f30fa85 ths
	$(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
597 6e1b3e4d bellard
endif
598 6e1b3e4d bellard
599 6e1b3e4d bellard
cpu-exec.o: cpu-exec.c
600 6f30fa85 ths
	$(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
601 626df76a bellard
602 00a67ba1 bellard
# Note: this is a workaround. The real fix is to avoid compiling
603 00a67ba1 bellard
# cpu_signal_handler() in cpu-exec.c.
604 00a67ba1 bellard
signal.o: signal.c
605 6f30fa85 ths
	$(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
606 00a67ba1 bellard
607 94470844 blueswir1
vga.o: pixel_ops.h
608 94470844 blueswir1
609 94470844 blueswir1
tcx.o: pixel_ops.h
610 94470844 blueswir1
611 0b0babc6 bellard
ifeq ($(TARGET_BASE_ARCH), i386)
612 664e0f19 bellard
op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h
613 1e43adfc bellard
endif
614 1e43adfc bellard
615 1e43adfc bellard
ifeq ($(TARGET_ARCH), arm)
616 1e43adfc bellard
op.o: op.c op_template.h
617 bdd5003a pbrook
pl110.o: pl110_template.h
618 1e43adfc bellard
endif
619 626df76a bellard
620 64b3ab24 bellard
ifeq ($(TARGET_BASE_ARCH), sparc)
621 0aac653c blueswir1
helper.o: cpu.h exec-all.h
622 0aac653c blueswir1
op.o: op.c op_template.h op_mem.h fop_template.h fbranch_template.h exec.h cpu.h
623 0aac653c blueswir1
op_helper.o: exec.h softmmu_template.h cpu.h
624 0aac653c blueswir1
translate.o: cpu.h exec-all.h disas.h
625 1e43adfc bellard
endif
626 626df76a bellard
627 a2458627 bellard
ifeq ($(TARGET_BASE_ARCH), ppc)
628 47c4d8f0 j_mayer
op.o: op.c op_template.h op_mem.h op_helper.h
629 47c4d8f0 j_mayer
op_helper.o: op_helper.c mfrom_table.c op_helper_mem.h op_helper.h
630 3fc6c082 bellard
translate.o: translate.c translate_init.c
631 728c9fd5 bellard
endif
632 728c9fd5 bellard
633 fbe4f65b ths
ifeq ($(TARGET_BASE_ARCH), mips)
634 fbe4f65b ths
helper.o: cpu.h exec-all.h
635 9daea906 ths
op.o: op_template.c fop_template.c op_mem.c exec.h cpu.h
636 9daea906 ths
op_helper.o: op_helper_mem.c exec.h softmmu_template.h cpu.h
637 fbe4f65b ths
translate.o: translate_init.c exec-all.h disas.h
638 6af0bf9c bellard
endif
639 6af0bf9c bellard
640 5fe141fd bellard
loader.o: loader.c elf_ops.h
641 5fe141fd bellard
642 fdf9b3e8 bellard
ifeq ($(TARGET_ARCH), sh4)
643 fdf9b3e8 bellard
op.o: op.c op_mem.c cpu.h
644 fdf9b3e8 bellard
op_helper.o: op_helper.c exec.h cpu.h
645 fdf9b3e8 bellard
helper.o: helper.c exec.h cpu.h
646 27c7ca7e bellard
sh7750.o: sh7750.c sh7750_regs.h sh7750_regnames.h cpu.h
647 27c7ca7e bellard
shix.o: shix.c sh7750_regs.h sh7750_regnames.h
648 fdf9b3e8 bellard
sh7750_regnames.o: sh7750_regnames.c sh7750_regnames.h sh7750_regs.h
649 27c7ca7e bellard
tc58128.o: tc58128.c
650 fdf9b3e8 bellard
endif
651 fdf9b3e8 bellard
652 cf6c1b16 j_mayer
ifeq ($(TARGET_BASE_ARCH), alpha)
653 cf6c1b16 j_mayer
op.o: op.c op_template.h op_mem.h
654 cf6c1b16 j_mayer
op_helper.o: op_helper_mem.h
655 cf6c1b16 j_mayer
endif
656 cf6c1b16 j_mayer
657 214feb51 pbrook
$(OBJS) $(LIBOBJS) $(VL_OBJS): config.h ../config-host.h
658 214feb51 pbrook
659 626df76a bellard
%.o: %.c
660 6f30fa85 ths
	$(CC) $(CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
661 626df76a bellard
662 f72b519c bellard
%.o: %.S
663 6f30fa85 ths
	$(CC) $(CPPFLAGS) -c -o $@ $<
664 f72b519c bellard
665 626df76a bellard
clean:
666 e362b55a bellard
	rm -f *.o  *.a *~ $(PROGS) gen-op.h opc.h op.h nwfpe/*.o slirp/*.o fpu/*.o
667 1e43adfc bellard
668 5fafdf24 ths
install: all
669 9b14bb04 bellard
ifneq ($(PROGS),)
670 6a882643 pbrook
	$(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
671 9b14bb04 bellard
endif
672 626df76a bellard
673 626df76a bellard
ifneq ($(wildcard .depend),)
674 626df76a bellard
include .depend
675 626df76a bellard
endif
676 1d14ffa9 bellard
677 c0fe3827 bellard
ifeq (1, 0)
678 1d14ffa9 bellard
audio.o sdlaudio.o dsoundaudio.o ossaudio.o wavaudio.o noaudio.o \
679 c0fe3827 bellard
fmodaudio.o alsaaudio.o mixeng.o sb16.o es1370.o gus.o adlib.o: \
680 1d14ffa9 bellard
CFLAGS := $(CFLAGS) -Wall -Werror -W -Wsign-compare
681 1d14ffa9 bellard
endif