diff options
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/Makefile.target b/Makefile.target index 1ca4e3a4c4..b1773f4ddb 100644 --- a/Makefile.target +++ b/Makefile.target @@ -262,7 +262,7 @@ endif VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.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 -SOUND_HW = sb16.o +SOUND_HW = sb16.o es1370.o AUDIODRV = audio.o noaudio.o wavaudio.o ifdef CONFIG_SDL AUDIODRV += sdlaudio.o @@ -270,29 +270,38 @@ endif ifdef CONFIG_OSS AUDIODRV += ossaudio.o endif - -pc.o: DEFINES := -DUSE_SB16 $(DEFINES) - -ifdef CONFIG_ADLIB -SOUND_HW += fmopl.o adlib.o +ifdef CONFIG_COREAUDIO +AUDIODRV += coreaudio.o +endif +ifdef CONFIG_ALSA +AUDIODRV += alsaaudio.o +LIBS += -lasound +endif +ifdef CONFIG_DSOUND +AUDIODRV += dsoundaudio.o +LIBS += -lole32 -ldxguid endif - ifdef CONFIG_FMOD AUDIODRV += fmodaudio.o audio.o fmodaudio.o: DEFINES := -I$(CONFIG_FMOD_INC) $(DEFINES) LIBS += $(CONFIG_FMOD_LIB) endif +ifdef CONFIG_ADLIB +SOUND_HW += fmopl.o adlib.o +endif ifeq ($(TARGET_BASE_ARCH), i386) # Hardware support VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV) VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o +DEFINES += -DHAS_AUDIO endif ifeq ($(TARGET_BASE_ARCH), ppc) VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV) VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o +DEFINES += -DHAS_AUDIO endif ifeq ($(TARGET_ARCH), mips) VL_OBJS+= mips_r4k.o dma.o vga.o serial.o ne2000.o i8254.o i8259.o @@ -317,7 +326,10 @@ VL_OBJS+=sdl.o endif ifdef CONFIG_COCOA VL_OBJS+=cocoa.o -COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa +COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit +ifdef CONFIG_COREAUDIO +COCOA_LIBS+=-framework CoreAudio +endif endif ifdef CONFIG_SLIRP DEFINES+=-I$(SRC_PATH)/slirp @@ -349,6 +361,10 @@ ifeq ($(ARCH),ia64) VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld endif +ifdef CONFIG_WIN32 +SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole +endif + $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) @@ -364,6 +380,9 @@ sdlaudio.o: sdlaudio.c depend: $(SRCS) $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend +vldepend: $(VL_OBJS:.o=.c) + $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend + # libqemu libqemu.a: $(LIBOBJS) @@ -415,8 +434,6 @@ op.o: op.c op_template.c op_mem.c op_helper.o: op_helper_mem.c endif -mixeng.o: mixeng.c mixeng.h mixeng_template.h - %.o: %.c $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< @@ -434,3 +451,9 @@ endif ifneq ($(wildcard .depend),) include .depend endif + +ifeq (0, 1) +audio.o sdlaudio.o dsoundaudio.o ossaudio.o wavaudio.o noaudio.o \ +fmodaudio.o alsaaudio.o mixeng.o: \ +CFLAGS := $(CFLAGS) -Wall -Werror -W -Wsign-compare +endif |