summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/audio/Makefile
blob: f870e0da5d8e6c191f7401051dda6013a231fa2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Makefile for the linux kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...

#
# sbus audio drivers
#

O_TARGET := sparcaudio.o
O_OBJS   :=
M_OBJS   :=

ifeq ($(CONFIG_SPARCAUDIO),y)
M=y
else
  ifeq ($(CONFIG_SPARCAUDIO),m)
  MM=y
  endif
endif

ifeq ($(CONFIG_SPARCAUDIO_AMD7930),y)
M=y
O_OBJS += amd7930.o
else
  ifeq ($(CONFIG_SPARCAUDIO_AMD7930),m)
  MM=y
  M_OBJS += amd7930.o
  endif
endif

ifeq ($(CONFIG_SPARCAUDIO_CS4231),y)
M=y
O_OBJS += cs4231.o
else
  ifeq ($(CONFIG_SPARCAUDIO_CS4231),m)
  MM=y
  M_OBJS += cs4231.o
  endif
endif

ifdef M
OX_OBJS += audio.o
else
  ifdef MM
  MX_OBJS += audio.o
  endif
endif

include $(TOPDIR)/Rules.make