/[qemu]/qemu/Makefile.target
ViewVC logotype

Diff of /qemu/Makefile.target

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.80 by bellard, Sun Oct 30 16:58:31 2005 UTC revision 1.81 by bellard, Sun Oct 30 18:58:21 2005 UTC
# Line 262  endif Line 262  endif
262  VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.o  VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.o
263  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  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
264    
265  SOUND_HW = sb16.o  SOUND_HW = sb16.o es1370.o
266  AUDIODRV = audio.o noaudio.o wavaudio.o  AUDIODRV = audio.o noaudio.o wavaudio.o
267  ifdef CONFIG_SDL  ifdef CONFIG_SDL
268  AUDIODRV += sdlaudio.o  AUDIODRV += sdlaudio.o
# Line 270  endif Line 270  endif
270  ifdef CONFIG_OSS  ifdef CONFIG_OSS
271  AUDIODRV += ossaudio.o  AUDIODRV += ossaudio.o
272  endif  endif
273    ifdef CONFIG_COREAUDIO
274  pc.o: DEFINES := -DUSE_SB16 $(DEFINES)  AUDIODRV += coreaudio.o
275    endif
276  ifdef CONFIG_ADLIB  ifdef CONFIG_ALSA
277  SOUND_HW += fmopl.o adlib.o  AUDIODRV += alsaaudio.o
278    LIBS += -lasound
279    endif
280    ifdef CONFIG_DSOUND
281    AUDIODRV += dsoundaudio.o
282    LIBS += -lole32 -ldxguid
283  endif  endif
   
284  ifdef CONFIG_FMOD  ifdef CONFIG_FMOD
285  AUDIODRV += fmodaudio.o  AUDIODRV += fmodaudio.o
286  audio.o fmodaudio.o: DEFINES := -I$(CONFIG_FMOD_INC) $(DEFINES)  audio.o fmodaudio.o: DEFINES := -I$(CONFIG_FMOD_INC) $(DEFINES)
287  LIBS += $(CONFIG_FMOD_LIB)  LIBS += $(CONFIG_FMOD_LIB)
288  endif  endif
289    ifdef CONFIG_ADLIB
290    SOUND_HW += fmopl.o adlib.o
291    endif
292    
293  ifeq ($(TARGET_BASE_ARCH), i386)  ifeq ($(TARGET_BASE_ARCH), i386)
294  # Hardware support  # Hardware support
295  VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)  VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
296  VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o  VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o
297  VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o  VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o
298    DEFINES += -DHAS_AUDIO
299  endif  endif
300  ifeq ($(TARGET_BASE_ARCH), ppc)  ifeq ($(TARGET_BASE_ARCH), ppc)
301  VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)  VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
302  VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o  VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o
303  VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o  VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o
304    DEFINES += -DHAS_AUDIO
305  endif  endif
306  ifeq ($(TARGET_ARCH), mips)  ifeq ($(TARGET_ARCH), mips)
307  VL_OBJS+= mips_r4k.o dma.o vga.o serial.o ne2000.o i8254.o i8259.o  VL_OBJS+= mips_r4k.o dma.o vga.o serial.o ne2000.o i8254.o i8259.o
# Line 317  VL_OBJS+=sdl.o Line 326  VL_OBJS+=sdl.o
326  endif  endif
327  ifdef CONFIG_COCOA  ifdef CONFIG_COCOA
328  VL_OBJS+=cocoa.o  VL_OBJS+=cocoa.o
329  COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa  COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
330    ifdef CONFIG_COREAUDIO
331    COCOA_LIBS+=-framework CoreAudio
332    endif
333  endif  endif
334  ifdef CONFIG_SLIRP  ifdef CONFIG_SLIRP
335  DEFINES+=-I$(SRC_PATH)/slirp  DEFINES+=-I$(SRC_PATH)/slirp
# Line 349  ifeq ($(ARCH),ia64) Line 361  ifeq ($(ARCH),ia64)
361  VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld  VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
362  endif  endif
363    
364    ifdef CONFIG_WIN32
365    SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
366    endif
367    
368  $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a  $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a
369          $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)          $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS)
370    
# Line 364  sdlaudio.o: sdlaudio.c Line 380  sdlaudio.o: sdlaudio.c
380  depend: $(SRCS)  depend: $(SRCS)
381          $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend          $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend
382    
383    vldepend: $(VL_OBJS:.o=.c)
384            $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend
385    
386  # libqemu  # libqemu
387    
388  libqemu.a: $(LIBOBJS)  libqemu.a: $(LIBOBJS)
# Line 415  op.o: op.c op_template.c op_mem.c Line 434  op.o: op.c op_template.c op_mem.c
434  op_helper.o: op_helper_mem.c  op_helper.o: op_helper_mem.c
435  endif  endif
436    
 mixeng.o: mixeng.c mixeng.h mixeng_template.h  
   
437  %.o: %.c  %.o: %.c
438          $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<          $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
439    
# Line 434  endif Line 451  endif
451  ifneq ($(wildcard .depend),)  ifneq ($(wildcard .depend),)
452  include .depend  include .depend
453  endif  endif
454    
455    ifeq (0, 1)
456    audio.o sdlaudio.o dsoundaudio.o ossaudio.o wavaudio.o noaudio.o \
457    fmodaudio.o alsaaudio.o mixeng.o: \
458    CFLAGS := $(CFLAGS) -Wall -Werror -W -Wsign-compare
459    endif

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26