1 # Makefile for the kernel cdrom device drivers.
3 # 30 Jan 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
4 # Rewritten to use lists instead of if-statements.
8 # All of the (potential) objects that export symbols.
9 # This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
11 export-objs
:= cdrom.o
24 # Each configuration option enables a list of files.
26 obj-
$(CONFIG_BLK_DEV_IDECD
) += cdrom.o
27 obj-
$(CONFIG_BLK_DEV_SR
) += cdrom.o
28 obj-
$(CONFIG_PARIDE_PCD
) += cdrom.o
30 obj-
$(CONFIG_AZTCD
) += aztcd.o
31 obj-
$(CONFIG_CDU31A
) += cdu31a.o cdrom.o
32 obj-
$(CONFIG_CM206
) += cm206.o cdrom.o
33 obj-
$(CONFIG_GSCD
) += gscd.o
34 obj-
$(CONFIG_ISP16_CDI
) += isp16.o
35 obj-
$(CONFIG_MCD
) += mcd.o cdrom.o
36 obj-
$(CONFIG_MCDX
) += mcdx.o cdrom.o
37 obj-
$(CONFIG_OPTCD
) += optcd.o
38 obj-
$(CONFIG_SBPCD
) += sbpcd.o cdrom.o
39 obj-
$(CONFIG_SBPCD2
) += sbpcd2.o cdrom.o
40 obj-
$(CONFIG_SBPCD3
) += sbpcd3.o cdrom.o
41 obj-
$(CONFIG_SBPCD4
) += sbpcd4.o cdrom.o
42 obj-
$(CONFIG_SJCD
) += sjcd.o
43 obj-
$(CONFIG_CDU535
) += sonycd535.o
47 # Files that are both resident and modular: remove from modular.
49 obj-m
:= $(filter-out $(obj-y
), $(obj-m
))
53 # Translate to Rules.make lists.
56 MOD_LIST_NAME
:= CDROM_MODULES
58 L_OBJS
:= $(sort $(filter-out $(export-objs
), $(obj-y
)))
59 LX_OBJS
:= $(sort $(filter $(export-objs
), $(obj-y
)))
60 M_OBJS
:= $(sort $(filter-out $(export-objs
), $(obj-m
)))
61 MX_OBJS
:= $(sort $(filter $(export-objs
), $(obj-m
)))
65 # Hand off to Rules.make.
67 include $(TOPDIR
)/Rules.make