Commit 2ca2136a authored by Kai Germaschewski's avatar Kai Germaschewski

ALSA Makefile cleanup: Consistent O_TARGET naming

ALSA was using _<subdir>.o as O_TARGET in most places already, so let's
do it everywhere.
parent ec4a16e9
...@@ -11,18 +11,18 @@ obj-$(CONFIG_SOUND) += soundcore.o ...@@ -11,18 +11,18 @@ obj-$(CONFIG_SOUND) += soundcore.o
subdir-$(CONFIG_SOUND_PRIME) += oss subdir-$(CONFIG_SOUND_PRIME) += oss
ifeq ($(CONFIG_SOUND_PRIME),y) ifeq ($(CONFIG_SOUND_PRIME),y)
obj-y += oss/sounddrivers.o obj-y += oss/_oss.o
endif endif
subdir-$(CONFIG_SND) += core i2c drivers isa pci ppc arm synth subdir-$(CONFIG_SND) += core i2c drivers isa pci ppc arm synth
ifeq ($(CONFIG_SND),y) ifeq ($(CONFIG_SND),y)
obj-y += core/core.o i2c/_i2c.o obj-y += core/_core.o i2c/_i2c.o
obj-y += drivers/drivers.o obj-y += drivers/_drivers.o
obj-y += isa/isa.o obj-y += isa/_isa.o
obj-y += pci/pci.o obj-y += pci/_pci.o
obj-y += arm/arm.o obj-y += arm/_arm.o
obj-y += ppc/ppc.o obj-y += ppc/_ppc.o
obj-y += synth/synth.o obj-y += synth/_synth.o
obj-y += last.o obj-y += last.o
endif endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Makefile for ALSA # Makefile for ALSA
# #
O_TARGET := arm.o O_TARGET := _arm.o
snd-sa11xx-uda1341-objs := sa11xx-uda1341.o snd-sa11xx-uda1341-objs := sa11xx-uda1341.o
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 1999,2001 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 1999,2001 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := core.o O_TARGET := _core.o
export-objs := sound.o pcm.o pcm_lib.o rawmidi.o timer.o rtctimer.o hwdep.o export-objs := sound.o pcm.o pcm_lib.o rawmidi.o timer.o rtctimer.o hwdep.o
...@@ -33,14 +33,14 @@ obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o ...@@ -33,14 +33,14 @@ obj-$(CONFIG_SND_HWDEP) += snd-hwdep.o
subdir-$(CONFIG_SND_MIXER_OSS) += oss subdir-$(CONFIG_SND_MIXER_OSS) += oss
subdir-$(CONFIG_SND_PCM_OSS) += oss subdir-$(CONFIG_SND_PCM_OSS) += oss
ifeq ($(filter $(subdir-y),oss),oss) ifeq ($(filter $(subdir-y),oss),oss)
obj-y += oss/oss.o obj-y += oss/_oss.o
endif endif
obj-$(CONFIG_SND_PCM_OSS) += snd-pcm.o obj-$(CONFIG_SND_PCM_OSS) += snd-pcm.o
subdir-$(CONFIG_SND_SEQUENCER) += seq subdir-$(CONFIG_SND_SEQUENCER) += seq
ifeq ($(CONFIG_SND_SEQUENCER),y) ifeq ($(CONFIG_SND_SEQUENCER),y)
obj-y += seq/sq.o obj-y += seq/_seq.o
endif endif
obj-$(CONFIG_SND_SEQUENCER) += snd-timer.o obj-$(CONFIG_SND_SEQUENCER) += snd-timer.o
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := oss.o O_TARGET := _oss.o
export-objs := mixer_oss.o export-objs := mixer_oss.o
......
...@@ -3,16 +3,18 @@ ...@@ -3,16 +3,18 @@
# Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := sq.o O_TARGET := _seq.o
mod-subdirs := instr mod-subdirs := instr
subdir-y := instr subdir-$(CONFIG_SND) += instr
obj-y += instr/instr.o ifeq ($(CONFIG_SND),y)
obj-y += instr/_instr.o
endif
subdir-$(CONFIG_SND_SEQUENCER_OSS) += oss subdir-$(CONFIG_SND_SEQUENCER_OSS) += oss
ifeq ($(CONFIG_SND_SEQUENCER_OSS),y) ifeq ($(CONFIG_SND_SEQUENCER_OSS),y)
obj-y += oss/oss.o obj-y += oss/_oss.o
endif endif
export-objs := seq_device.o seq.o seq_ports.o seq_instr.o seq_midi_emul.o \ export-objs := seq_device.o seq.o seq_ports.o seq_instr.o seq_midi_emul.o \
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := instr.o O_TARGET := _instr.o
export-objs := ainstr_fm.o ainstr_simple.o ainstr_gf1.o ainstr_iw.o export-objs := ainstr_fm.o ainstr_simple.o ainstr_gf1.o ainstr_iw.o
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := oss.o O_TARGET := _oss.o
snd-seq-oss-objs := seq_oss.o seq_oss_init.o seq_oss_timer.o seq_oss_ioctl.o \ snd-seq-oss-objs := seq_oss.o seq_oss_init.o seq_oss_timer.o seq_oss_ioctl.o \
seq_oss_event.o seq_oss_rw.o seq_oss_synth.o \ seq_oss_event.o seq_oss_rw.o seq_oss_synth.o \
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := drivers.o O_TARGET := _drivers.o
mod-subdirs := opl3 mpu401 mod-subdirs := opl3 mpu401
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := isa.o O_TARGET := _isa.o
mod-subdirs := ad1816a ad1848 cs423x es1688 gus opti9xx sb wavefront mod-subdirs := ad1816a ad1848 cs423x es1688 gus opti9xx sb wavefront
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# 18 Apr 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net> # 18 Apr 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
# Rewritten to use lists instead of if-statements. # Rewritten to use lists instead of if-statements.
O_TARGET := _oss.o
# All of the (potential) objects that export symbols. # All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'. # This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
...@@ -81,17 +82,17 @@ subdir-$(CONFIG_SOUND_EMU10K1) += emu10k1 ...@@ -81,17 +82,17 @@ subdir-$(CONFIG_SOUND_EMU10K1) += emu10k1
subdir-$(CONFIG_SOUND_CS4281) += cs4281 subdir-$(CONFIG_SOUND_CS4281) += cs4281
ifeq ($(CONFIG_SOUND_EMU10K1),y) ifeq ($(CONFIG_SOUND_EMU10K1),y)
obj-y += emu10k1/emu10k1.o obj-y += emu10k1/_emu10k1.o
endif endif
ifeq ($(CONFIG_SOUND_CS4281),y) ifeq ($(CONFIG_SOUND_CS4281),y)
obj-y += cs4281/cs4281.o obj-y += cs4281/_cs4281.o
endif endif
subdir-$(CONFIG_DMASOUND) += dmasound subdir-$(CONFIG_DMASOUND) += dmasound
ifeq ($(CONFIG_DMASOUND),y) ifeq ($(CONFIG_DMASOUND),y)
obj-y += dmasound/dmasound.o obj-y += dmasound/_dmasound.o
endif endif
...@@ -111,8 +112,6 @@ vidc_mod-objs := vidc.o vidc_fill.o ...@@ -111,8 +112,6 @@ vidc_mod-objs := vidc.o vidc_fill.o
wavefront-objs := wavfront.o wf_midi.o yss225.o wavefront-objs := wavfront.o wf_midi.o yss225.o
O_TARGET := sounddrivers.o
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
# Firmware files that need translation # Firmware files that need translation
......
# Makefile for Cirrus Logic-Crystal CS4281 # Makefile for Cirrus Logic-Crystal CS4281
# #
O_TARGET := cs4281.o O_TARGET := _cs4281.o
obj-y := cs4281m.o obj-$(CONFIG_SOUND_CS4281) += cs4281.o
obj-m := $(O_TARGET)
include $(TOPDIR)/Rules.make cs4281-objs += cs4281m.o
clean: include $(TOPDIR)/Rules.make
rm -f core *.o *.a *.s
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
# #
# Note 2! The CFLAGS definitions are now in the main makefile... # Note 2! The CFLAGS definitions are now in the main makefile...
O_TARGET = _dmasound.o
export-objs := dmasound_core.o export-objs := dmasound_core.o
obj-$(CONFIG_DMASOUND_ATARI) += dmasound_core.o dmasound_atari.o obj-$(CONFIG_DMASOUND_ATARI) += dmasound_core.o dmasound_atari.o
...@@ -14,8 +16,4 @@ obj-$(CONFIG_DMASOUND_AWACS) += dmasound_core.o dmasound_awacs.o ...@@ -14,8 +16,4 @@ obj-$(CONFIG_DMASOUND_AWACS) += dmasound_core.o dmasound_awacs.o
obj-$(CONFIG_DMASOUND_PAULA) += dmasound_core.o dmasound_paula.o obj-$(CONFIG_DMASOUND_PAULA) += dmasound_core.o dmasound_paula.o
obj-$(CONFIG_DMASOUND_Q40) += dmasound_core.o dmasound_q40.o obj-$(CONFIG_DMASOUND_Q40) += dmasound_core.o dmasound_q40.o
ifeq ($(CONFIG_DMASOUND),y)
O_TARGET = dmasound.o
endif
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
# #
# 12 Apr 2000 Rui Sousa # 12 Apr 2000 Rui Sousa
O_TARGET := emu10k1.o O_TARGET := _emu10k1.o
obj-y := audio.o cardmi.o cardmo.o cardwi.o cardwo.o ecard.o \ obj-$(CONFIG_SOUND_EMU10K1) += emu10k1.o
efxmgr.o emuadxmg.o hwaccess.o irqmgr.o main.o midi.o \
mixer.o passthrough.o recmgr.o timer.o voicemgr.o emu10k1-objs := audio.o cardmi.o cardmo.o cardwi.o cardwo.o ecard.o \
obj-m := $(O_TARGET) efxmgr.o emuadxmg.o hwaccess.o irqmgr.o main.o midi.o \
mixer.o passthrough.o recmgr.o timer.o voicemgr.o
ifdef DEBUG ifdef DEBUG
EXTRA_CFLAGS += -DEMU10K1_DEBUG EXTRA_CFLAGS += -DEMU10K1_DEBUG
...@@ -18,6 +19,3 @@ ifdef CONFIG_MIDI_EMU10K1 ...@@ -18,6 +19,3 @@ ifdef CONFIG_MIDI_EMU10K1
endif endif
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
clean:
rm -f core *.o *.a *.s
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := pci.o O_TARGET := _pci.o
mod-subdirs := ac97 ali5451 cs46xx emu10k1 korg1212 nm256 rme9652 trident ymfpci mod-subdirs := ac97 ali5451 cs46xx emu10k1 korg1212 nm256 rme9652 trident ymfpci
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := ppc.o O_TARGET := _ppc.o
snd-powermac-objs := powermac.o pmac.o awacs.o burgundy.o daca.o tumbler.o keywest.o snd-powermac-objs := powermac.o pmac.o awacs.o burgundy.o daca.o tumbler.o keywest.o
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> # Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
# #
O_TARGET := synth.o O_TARGET := _synth.o
mod-subdirs := emux mod-subdirs := emux
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment