Statistics
| Branch: | Revision:

root / Makefile.target @ f537a28c

History | View | Annotate | Download (12.9 kB)

1
include config.mak
2

    
3
TARGET_BASE_ARCH:=$(TARGET_ARCH)
4
ifeq ($(TARGET_ARCH), x86_64)
5
TARGET_BASE_ARCH:=i386
6
endif
7
ifeq ($(TARGET_ARCH), ppc64)
8
TARGET_BASE_ARCH:=ppc
9
endif
10
ifeq ($(TARGET_ARCH), sparc64)
11
TARGET_BASE_ARCH:=sparc
12
endif
13
TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
14
VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/audio
15
DEFINES=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH)
16
ifdef CONFIG_USER_ONLY
17
VPATH+=:$(SRC_PATH)/linux-user
18
DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
19
endif
20
CFLAGS=-Wall -O2 -g -fno-strict-aliasing
21
#CFLAGS+=-Werror
22
LDFLAGS=-g
23
LIBS=
24
HELPER_CFLAGS=$(CFLAGS)
25
DYNGEN=../dyngen$(EXESUF)
26
# user emulator name
27
TARGET_ARCH2=$(TARGET_ARCH)
28
ifeq ($(TARGET_ARCH),arm)
29
  ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
30
    TARGET_ARCH2=armeb
31
  endif
32
endif
33
ifeq ($(TARGET_ARCH),sh4)
34
  ifeq ($(TARGET_WORDS_BIGENDIAN),yes)
35
    TARGET_ARCH2=sh4eb
36
  endif
37
endif
38
ifeq ($(TARGET_ARCH),mips)
39
  ifneq ($(TARGET_WORDS_BIGENDIAN),yes)
40
    TARGET_ARCH2=mipsel
41
  endif
42
endif
43
QEMU_USER=qemu-$(TARGET_ARCH2)
44
# system emulator name
45
ifdef CONFIG_SOFTMMU
46
ifeq ($(TARGET_ARCH), i386)
47
QEMU_SYSTEM=qemu$(EXESUF)
48
else
49
QEMU_SYSTEM=qemu-system-$(TARGET_ARCH2)$(EXESUF)
50
endif
51
else
52
QEMU_SYSTEM=qemu-fast
53
endif
54

    
55
ifdef CONFIG_USER_ONLY
56
PROGS=$(QEMU_USER)
57
else
58
PROGS+=$(QEMU_SYSTEM)
59
ifndef CONFIG_SOFTMMU
60
CONFIG_STATIC=y
61
endif
62
endif # !CONFIG_USER_ONLY
63

    
64
ifdef CONFIG_STATIC
65
LDFLAGS+=-static
66
endif
67

    
68
ifeq ($(ARCH),i386)
69
HELPER_CFLAGS:=$(CFLAGS) -fomit-frame-pointer
70
OP_CFLAGS:=$(CFLAGS) -mpreferred-stack-boundary=2 -fomit-frame-pointer
71
ifeq ($(HAVE_GCC3_OPTIONS),yes)
72
OP_CFLAGS+= -falign-functions=0 -fno-gcse
73
else
74
OP_CFLAGS+= -malign-functions=0
75
endif
76

    
77
ifdef TARGET_GPROF
78
USE_I386_LD=y
79
endif
80
ifdef CONFIG_STATIC
81
USE_I386_LD=y
82
endif
83
ifdef USE_I386_LD
84
LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386.ld
85
else
86
# WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
87
# that the kernel ELF loader considers as an executable. I think this
88
# is the simplest way to make it self virtualizable!
89
LDFLAGS+=-Wl,-shared
90
endif
91
endif
92

    
93
ifeq ($(ARCH),x86_64)
94
OP_CFLAGS=$(CFLAGS) -falign-functions=0
95
LDFLAGS+=-Wl,-T,$(SRC_PATH)/x86_64.ld
96
endif
97

    
98
ifeq ($(ARCH),ppc)
99
CFLAGS+= -D__powerpc__
100
OP_CFLAGS=$(CFLAGS)
101
LDFLAGS+=-Wl,-T,$(SRC_PATH)/ppc.ld
102
endif
103

    
104
ifeq ($(ARCH),s390)
105
OP_CFLAGS=$(CFLAGS)
106
LDFLAGS+=-Wl,-T,$(SRC_PATH)/s390.ld
107
endif
108

    
109
ifeq ($(ARCH),sparc)
110
ifeq ($(CONFIG_SOLARIS),yes)
111
CFLAGS+=-mcpu=ultrasparc -m32 -ffixed-g2 -ffixed-g3
112
LDFLAGS+=-m32
113
OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -fno-omit-frame-pointer -ffixed-i0
114
else
115
CFLAGS+=-mcpu=ultrasparc -m32 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6
116
LDFLAGS+=-m32
117
OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0
118
HELPER_CFLAGS=$(CFLAGS) -ffixed-i0 -mflat
119
# -static is used to avoid g1/g3 usage by the dynamic linker
120
LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc.ld -static
121
endif
122
endif
123

    
124
ifeq ($(ARCH),sparc64)
125
CFLAGS+=-mcpu=ultrasparc -m64 -ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
126
LDFLAGS+=-m64
127
LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc64.ld
128
OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0
129
endif
130

    
131
ifeq ($(ARCH),alpha)
132
# -msmall-data is not used because we want two-instruction relocations
133
# for the constant constructions
134
OP_CFLAGS=-Wall -O2 -g
135
# Ensure there's only a single GP
136
CFLAGS += -msmall-data
137
LDFLAGS+=-Wl,-T,$(SRC_PATH)/alpha.ld
138
endif
139

    
140
ifeq ($(ARCH),ia64)
141
CFLAGS += -mno-sdata
142
OP_CFLAGS=$(CFLAGS)
143
LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
144
endif
145

    
146
ifeq ($(ARCH),arm)
147
OP_CFLAGS=$(CFLAGS) -mno-sched-prolog -fno-omit-frame-pointer
148
LDFLAGS+=-Wl,-T,$(SRC_PATH)/arm.ld
149
endif
150

    
151
ifeq ($(ARCH),m68k)
152
OP_CFLAGS=$(CFLAGS) -fomit-frame-pointer
153
LDFLAGS+=-Wl,-T,m68k.ld
154
endif
155

    
156
ifeq ($(HAVE_GCC3_OPTIONS),yes)
157
# very important to generate a return at the end of every operation
158
OP_CFLAGS+=-fno-reorder-blocks -fno-optimize-sibling-calls
159
endif
160

    
161
ifeq ($(CONFIG_DARWIN),yes)
162
OP_CFLAGS+= -mdynamic-no-pic
163
LIBS+=-lmx
164
endif
165

    
166
#########################################################
167

    
168
DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
169
LIBS+=-lm
170
ifndef CONFIG_USER_ONLY
171
LIBS+=-lz
172
endif
173
ifdef CONFIG_WIN32
174
LIBS+=-lwinmm -lws2_32 -liphlpapi
175
endif
176
ifdef CONFIG_SOLARIS
177
LIBS+=-lsocket -lnsl -lresolv
178
endif
179

    
180
# profiling code
181
ifdef TARGET_GPROF
182
LDFLAGS+=-p
183
main.o: CFLAGS+=-p
184
endif
185

    
186
OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \
187
      elfload.o linuxload.o
188
ifdef TARGET_HAS_BFLT
189
OBJS+= flatload.o
190
endif
191

    
192
ifeq ($(TARGET_ARCH), i386)
193
OBJS+= vm86.o
194
endif
195
ifeq ($(TARGET_ARCH), arm)
196
OBJS+=nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \
197
nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \
198
 nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o
199
endif
200
SRCS:= $(OBJS:.o=.c)
201
OBJS+= libqemu.a
202

    
203
# cpu emulator library
204
LIBOBJS=exec.o kqemu.o translate-op.o translate-all.o cpu-exec.o\
205
        translate.o op.o 
206
ifdef CONFIG_SOFTFLOAT
207
LIBOBJS+=fpu/softfloat.o
208
else
209
LIBOBJS+=fpu/softfloat-native.o
210
endif
211
DEFINES+=-I$(SRC_PATH)/fpu
212

    
213
ifeq ($(TARGET_ARCH), i386)
214
LIBOBJS+=helper.o helper2.o
215
ifeq ($(ARCH), i386)
216
LIBOBJS+=translate-copy.o
217
endif
218
endif
219

    
220
ifeq ($(TARGET_ARCH), x86_64)
221
LIBOBJS+=helper.o helper2.o
222
endif
223

    
224
ifeq ($(TARGET_BASE_ARCH), ppc)
225
LIBOBJS+= op_helper.o helper.o
226
endif
227

    
228
ifeq ($(TARGET_ARCH), mips)
229
LIBOBJS+= op_helper.o helper.o
230
endif
231

    
232
ifeq ($(TARGET_BASE_ARCH), sparc)
233
LIBOBJS+= op_helper.o helper.o
234
endif
235

    
236
ifeq ($(TARGET_BASE_ARCH), arm)
237
LIBOBJS+= op_helper.o helper.o
238
endif
239

    
240
ifeq ($(TARGET_BASE_ARCH), sh4)
241
LIBOBJS+= op_helper.o helper.o
242
endif
243

    
244
# NOTE: the disassembler code is only needed for debugging
245
LIBOBJS+=disas.o 
246
ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
247
USE_I386_DIS=y
248
endif
249
ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
250
USE_I386_DIS=y
251
endif
252
ifdef USE_I386_DIS
253
LIBOBJS+=i386-dis.o
254
endif
255
ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
256
LIBOBJS+=alpha-dis.o
257
endif
258
ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
259
LIBOBJS+=ppc-dis.o
260
endif
261
ifeq ($(findstring mips, $(TARGET_ARCH) $(ARCH)),mips)
262
LIBOBJS+=mips-dis.o
263
endif
264
ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
265
LIBOBJS+=sparc-dis.o
266
endif
267
ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
268
LIBOBJS+=arm-dis.o
269
endif
270
ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
271
LIBOBJS+=m68k-dis.o
272
endif
273
ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
274
LIBOBJS+=sh4-dis.o
275
endif
276

    
277
ifdef CONFIG_GDBSTUB
278
OBJS+=gdbstub.o
279
endif
280

    
281
all: $(PROGS)
282

    
283
$(QEMU_USER): $(OBJS)
284
	$(CC) $(LDFLAGS) -o $@ $^  $(LIBS)
285
ifeq ($(ARCH),alpha)
286
# Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
287
# the address space (31 bit so sign extending doesn't matter)
288
	echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
289
endif
290

    
291
# must use static linking to avoid leaving stuff in virtual address space
292
VL_OBJS=vl.o osdep.o readline.o monitor.o pci.o console.o loader.o isa_mmio.o
293
VL_OBJS+=block.o block-raw.o
294
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
295
ifdef CONFIG_WIN32
296
VL_OBJS+=tap-win32.o
297
endif
298

    
299
SOUND_HW = sb16.o es1370.o
300
AUDIODRV = audio.o noaudio.o wavaudio.o
301
ifdef CONFIG_SDL
302
AUDIODRV += sdlaudio.o
303
endif
304
ifdef CONFIG_OSS
305
AUDIODRV += ossaudio.o
306
endif
307
ifdef CONFIG_COREAUDIO
308
AUDIODRV += coreaudio.o
309
endif
310
ifdef CONFIG_ALSA
311
AUDIODRV += alsaaudio.o
312
LIBS += -lasound
313
endif
314
ifdef CONFIG_DSOUND
315
AUDIODRV += dsoundaudio.o
316
LIBS += -lole32 -ldxguid
317
endif
318
ifdef CONFIG_FMOD
319
AUDIODRV += fmodaudio.o
320
audio.o fmodaudio.o: DEFINES := -I$(CONFIG_FMOD_INC) $(DEFINES)
321
LIBS += $(CONFIG_FMOD_LIB)
322
endif
323
ifdef CONFIG_ADLIB
324
SOUND_HW += fmopl.o adlib.o
325
endif
326
AUDIODRV+= wavcapture.o
327

    
328
# SCSI layer
329
VL_OBJS+= scsi-disk.o cdrom.o lsi53c895a.o
330

    
331
# USB layer
332
VL_OBJS+= usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o
333

    
334
# PCI network cards
335
VL_OBJS+= ne2000.o rtl8139.o pcnet.o
336

    
337
ifeq ($(TARGET_BASE_ARCH), i386)
338
# Hardware support
339
VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
340
VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
341
VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o acpi.o piix_pci.o
342
VL_OBJS+= usb-uhci.o
343
DEFINES += -DHAS_AUDIO
344
endif
345
ifeq ($(TARGET_BASE_ARCH), ppc)
346
VL_OBJS+= ppc.o ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
347
VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o
348
VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o
349
VL_OBJS+= grackle_pci.o prep_pci.o unin_pci.o
350
DEFINES += -DHAS_AUDIO
351
endif
352
ifeq ($(TARGET_ARCH), mips)
353
VL_OBJS+= mips_r4k.o dma.o vga.o serial.o i8254.o i8259.o
354
#VL_OBJS+= #ide.o pckbd.o fdc.o m48t59.o
355
endif
356
ifeq ($(TARGET_BASE_ARCH), sparc)
357
ifeq ($(TARGET_ARCH), sparc64)
358
VL_OBJS+= sun4u.o ide.o pckbd.o ps2.o vga.o apb_pci.o
359
VL_OBJS+= fdc.o mc146818rtc.o serial.o m48t59.o
360
VL_OBJS+= cirrus_vga.o parallel.o
361
else
362
VL_OBJS+= sun4m.o tcx.o pcnet.o iommu.o m48t59.o slavio_intctl.o
363
VL_OBJS+= slavio_timer.o slavio_serial.o slavio_misc.o fdc.o esp.o sparc32_dma.o
364
VL_OBJS+= cs4231.o
365
endif
366
endif
367
ifeq ($(TARGET_BASE_ARCH), arm)
368
VL_OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o
369
VL_OBJS+= arm_boot.o pl011.o pl050.o pl080.o pl110.o pl190.o
370
VL_OBJS+= versatile_pci.o
371
VL_OBJS+= arm_gic.o realview.o arm_sysctl.o
372
endif
373
ifeq ($(TARGET_BASE_ARCH), sh4)
374
VL_OBJS+= shix.o sh7750.o sh7750_regnames.o tc58128.o
375
endif
376
ifdef CONFIG_GDBSTUB
377
VL_OBJS+=gdbstub.o 
378
endif
379
ifdef CONFIG_SDL
380
VL_OBJS+=sdl.o
381
endif
382
VL_OBJS+=vnc.o
383
ifdef CONFIG_COCOA
384
VL_OBJS+=cocoa.o
385
COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
386
ifdef CONFIG_COREAUDIO
387
COCOA_LIBS+=-framework CoreAudio
388
endif
389
endif
390
ifdef CONFIG_SLIRP
391
DEFINES+=-I$(SRC_PATH)/slirp
392
SLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \
393
slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \
394
tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o
395
VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS))
396
endif
397

    
398
VL_LDFLAGS=
399
# specific flags are needed for non soft mmu emulator
400
ifdef CONFIG_STATIC
401
VL_LDFLAGS+=-static
402
endif
403
ifndef CONFIG_SOFTMMU
404
VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld 
405
endif
406
ifndef CONFIG_DARWIN
407
ifndef CONFIG_WIN32
408
ifndef CONFIG_SOLARIS
409
VL_LIBS=-lutil -lrt
410
endif
411
endif
412
endif
413
ifdef TARGET_GPROF
414
vl.o: CFLAGS+=-p
415
VL_LDFLAGS+=-p
416
endif
417

    
418
ifeq ($(ARCH),ia64)
419
VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
420
endif
421

    
422
ifeq ($(ARCH),sparc64)
423
VL_LDFLAGS+=-m64
424
VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc64.ld
425
endif
426

    
427
ifdef CONFIG_WIN32
428
SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
429
endif
430

    
431
$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a
432
	$(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)
433

    
434
cocoa.o: cocoa.m
435
	$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
436

    
437
sdl.o: sdl.c keymaps.c sdl_keysym.h
438
	$(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $<
439

    
440
vnc.o: vnc.c keymaps.c sdl_keysym.h vnchextile.h
441
	$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
442

    
443
sdlaudio.o: sdlaudio.c
444
	$(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $<
445

    
446
depend: $(SRCS)
447
	$(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend
448

    
449
vldepend: $(VL_OBJS:.o=.c)
450
	$(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend
451

    
452
# libqemu 
453

    
454
libqemu.a: $(LIBOBJS)
455
	rm -f $@
456
	$(AR) rcs $@ $(LIBOBJS)
457

    
458
translate.o: translate.c gen-op.h opc.h cpu.h
459

    
460
translate-all.o: translate-all.c opc.h cpu.h
461

    
462
translate-op.o: translate-all.c op.h opc.h cpu.h
463

    
464
op.h: op.o $(DYNGEN)
465
	$(DYNGEN) -o $@ $<
466

    
467
opc.h: op.o $(DYNGEN)
468
	$(DYNGEN) -c -o $@ $<
469

    
470
gen-op.h: op.o $(DYNGEN)
471
	$(DYNGEN) -g -o $@ $<
472

    
473
op.o: op.c
474
	$(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $<
475

    
476
# HELPER_CFLAGS is used for all the code compiled with static register
477
# variables
478
ifeq ($(TARGET_BASE_ARCH), i386)
479
# XXX: rename helper.c to op_helper.c
480
helper.o: helper.c
481
	$(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
482
else
483
op_helper.o: op_helper.c
484
	$(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
485
endif
486

    
487
cpu-exec.o: cpu-exec.c
488
	$(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
489

    
490
ifeq ($(TARGET_BASE_ARCH), i386)
491
op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h
492
endif
493

    
494
ifeq ($(TARGET_ARCH), arm)
495
op.o: op.c op_template.h
496
pl110.o: pl110_template.h
497
endif
498

    
499
ifeq ($(TARGET_BASE_ARCH), sparc)
500
op.o: op.c op_template.h op_mem.h fop_template.h fbranch_template.h
501
magic_load.o: elf_op.h
502
endif
503

    
504
ifeq ($(TARGET_BASE_ARCH), ppc)
505
op.o: op.c op_template.h op_mem.h
506
op_helper.o: op_helper_mem.h
507
translate.o: translate.c translate_init.c
508
endif
509

    
510
ifeq ($(TARGET_ARCH), mips)
511
op.o: op.c op_template.c op_mem.c
512
op_helper.o: op_helper_mem.c
513
endif
514

    
515
loader.o: loader.c elf_ops.h
516

    
517
ifeq ($(TARGET_ARCH), sh4)
518
op.o: op.c op_mem.c cpu.h
519
op_helper.o: op_helper.c exec.h cpu.h
520
helper.o: helper.c exec.h cpu.h
521
sh7750.o: sh7750.c sh7750_regs.h sh7750_regnames.h cpu.h
522
shix.o: shix.c sh7750_regs.h sh7750_regnames.h
523
sh7750_regnames.o: sh7750_regnames.c sh7750_regnames.h sh7750_regs.h
524
tc58128.o: tc58128.c
525
endif
526

    
527
$(OBJS) $(LIBOBJS) $(VL_OBJS): config.h ../config-host.h
528

    
529
%.o: %.c
530
	$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
531

    
532
%.o: %.S
533
	$(CC) $(DEFINES) -c -o $@ $<
534

    
535
clean:
536
	rm -f *.o  *.a *~ $(PROGS) gen-op.h opc.h op.h nwfpe/*.o slirp/*.o fpu/*.o
537

    
538
install: all 
539
ifneq ($(PROGS),)
540
	$(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
541
endif
542

    
543
ifneq ($(wildcard .depend),)
544
include .depend
545
endif
546

    
547
ifeq (1, 0)
548
audio.o sdlaudio.o dsoundaudio.o ossaudio.o wavaudio.o noaudio.o \
549
fmodaudio.o alsaaudio.o mixeng.o sb16.o es1370.o gus.o adlib.o: \
550
CFLAGS := $(CFLAGS) -Wall -Werror -W -Wsign-compare
551
endif