]> git.proxmox.com Git - qemu.git/blobdiff - Makefile.objs
Compile sound devices only once
[qemu.git] / Makefile.objs
index a38a745185f04cccbaa8564c1b32f763db50a758..ede3f28259b896fa74f4377c4a7d5b02da451162 100644 (file)
@@ -178,6 +178,18 @@ hw-obj-$(CONFIG_QDEV_ADDR) += qdev-addr.o
 hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
 hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
 
+# Sound
+sound-obj-y =
+sound-obj-$(CONFIG_SB16) += sb16.o
+sound-obj-$(CONFIG_ES1370) += es1370.o
+sound-obj-$(CONFIG_AC97) += ac97.o
+sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
+sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
+sound-obj-$(CONFIG_CS4231A) += cs4231a.o
+
+adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
+hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
+
 ######################################################################
 # libdis
 # NOTE: the disassembler code is only needed for debugging