summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/Makefile
blob: 3249929531890c66a282841066a5e04f98bf8699 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#
# Makefile for the kernel cdrom device drivers.
#
# 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 definition is now inherited from the
# parent makefile.
#

#
# Note : at this point, these files are compiled on all systems. 
# In the future, some of these should be built conditionally.
#


L_TARGET := cdrom.a
L_OBJS   :=
M_OBJS   :=
MOD_LIST_NAME := CDROM_MODULES

ifeq ($(CONFIG_AZTCD),y)
L_OBJS += aztcd.o
else
  ifeq ($(CONFIG_AZTCD),m)
  M_OBJS += aztcd.o
  endif
endif #CONFIG_AZTCD

ifeq ($(CONFIG_CDU31A),y)
L_OBJS += cdu31a.o
else
  ifeq ($(CONFIG_CDU31A),m)
  M_OBJS += cdu31a.o
  endif
endif #CONFIG_CDU31A

ifeq ($(CONFIG_MCD),y)
L_OBJS += mcd.o
else
  ifeq ($(CONFIG_MCD),m)
  M_OBJS += mcd.o
  endif
endif #CONFIG_MCD

ifeq ($(CONFIG_MCDX),y)
L_OBJS += mcdx.o
else
  ifeq ($(CONFIG_MCDX),m)
  M_OBJS += mcdx.o
  endif
endif #CONFIG_MCDX

ifeq ($(CONFIG_SBPCD),y)
L_OBJS += sbpcd.o
else
  ifeq ($(CONFIG_SBPCD),m)
  M_OBJS += sbpcd.o
  endif
endif #CONFIG_SBPCD

ifeq ($(CONFIG_SBPCD2),y)
L_OBJS += sbpcd2.o
endif #CONFIG_SBPCD2

ifeq ($(CONFIG_SBPCD3),y)
L_OBJS += sbpcd3.o
endif #CONFIG_SBPCD3

ifeq ($(CONFIG_SBPCD4),y)
L_OBJS += sbpcd4.o
endif #CONFIG_SBPCD4

ifeq ($(CONFIG_CDU535),y)
L_OBJS += sonycd535.o
else
  ifeq ($(CONFIG_CDU535),m)
  M_OBJS += sonycd535.o
  endif
endif #CONFIG_CDU535

ifeq ($(CONFIG_GSCD),y)
L_OBJS += gscd.o
else
  ifeq ($(CONFIG_GSCD),m)
  M_OBJS += gscd.o
  endif
endif #CONFIG_GSCD

ifeq ($(CONFIG_CM206),y)
L_OBJS += cm206.o
USE_GENERIC_CD=1
else
  ifeq ($(CONFIG_CM206),m)
  M_OBJS += cm206.o
    USE_MODULAR_GENERIC_CD=1
  endif
endif #CONFIG_CM206

ifeq ($(CONFIG_OPTCD),y)
L_OBJS += optcd.o
else
  ifeq ($(CONFIG_OPTCD),m)
  M_OBJS += optcd.o
  endif
endif #CONFIG_OPTCD

ifeq ($(CONFIG_SJCD),y)
L_OBJS += sjcd.o
else
  ifeq ($(CONFIG_SJCD),m)
  M_OBJS += sjcd.o
  endif
endif #CONFIG_SJCD

ifeq ($(CONFIG_CDI_INIT),y)
L_OBJS += cdi.o
endif #CONFIG_CDI_INIT
ifeq ($(CONFIG_ISP16_CDI),y)
L_OBJS += isp16.o
else
#  ifeq ($(CONFIG_CDI_INIT),m)
#  M_OBJS += cdi.o
#  endif
  ifeq ($(CONFIG_ISP16_CDI),m)
  M_OBJS += isp16.o
  endif
endif #CONFIG_ISP16_CDI

ifeq ($(CONFIG_BLK_DEV_SR),y)
USE_GENERIC_CD=1
else
  ifeq ($(CONFIG_BLK_DEV_SR),m)
    USE_MODULAR_GENERIC_CD=1
  endif
endif #SCSI CDROM DRIVER

ifeq ($(CONFIG_BLK_DEV_IDECD),y)
USE_GENERIC_CD=1
else
  ifeq ($(CONFIG_BLK_DEV_IDECD),m)
    USE_MODULAR_GENERIC_CD=1
  endif
endif #CONFIG_BLK_DEV_IDECD

ifdef USE_GENERIC_CD
L_OBJS += cdrom.o
else
  ifdef USE_MODULAR_GENERIC_CD
  M_OBJS += cdrom.o
  endif
endif #The Makefile configuration for the generic cdrom interface
  
include $(TOPDIR)/Rules.make