This is pre8 ...
[linux-2.6/linux-mips.git] / drivers / Makefile
bloba91c3355ecd3e5f19b10ba3ba0519321901a520d
2 # Makefile for the Linux kernel device drivers.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (not a .c file).
8 # Note 2! The CFLAGS definitions are now in the main makefile.
10 SUB_DIRS := block char net parport sound misc
11 MOD_SUB_DIRS := $(SUB_DIRS)
12 ALL_SUB_DIRS := $(SUB_DIRS) pci sgi ide scsi sbus cdrom isdn pnp i2o \
13 ieee1394 macintosh video dio zorro fc4 \
14 usb nubus tc atm pcmcia i2c telephony \
15 acpi mtd
17 ifdef CONFIG_DIO
18 SUB_DIRS += dio
19 MOD_SUB_DIRS += dio
20 endif
22 ifdef CONFIG_PCI
23 SUB_DIRS += pci
24 endif
26 ifeq ($(CONFIG_PCMCIA),y)
27 SUB_DIRS += pcmcia
28 else
29 ifeq ($(CONFIG_PCMCIA),m)
30 MOD_SUB_DIRS += pcmcia
31 endif
32 endif
34 ifdef CONFIG_MTD
35 SUB_DIRS += mtd
36 MOD_SUB_DIRS += mtd
37 endif
39 ifdef CONFIG_SBUS
40 SUB_DIRS += sbus
41 MOD_SUB_DIRS += sbus
42 endif
44 ifdef CONFIG_ZORRO
45 SUB_DIRS += zorro
46 endif
48 ifdef CONFIG_NUBUS
49 SUB_DIRS += nubus
50 endif
52 ifdef CONFIG_TC
53 SUB_DIRS += tc
54 endif
56 ifdef CONFIG_VT
57 SUB_DIRS += video
58 MOD_SUB_DIRS += video
59 endif
61 ifdef CONFIG_MAC
62 SUB_DIRS += macintosh
63 MOD_SUB_DIRS += macintosh
64 endif
66 ifdef CONFIG_PPC
67 SUB_DIRS += macintosh
68 MOD_SUB_DIRS += macintosh
69 endif
71 ifeq ($(CONFIG_USB),y)
72 SUB_DIRS += usb
73 MOD_SUB_DIRS += usb
74 else
75 ifeq ($(CONFIG_USB),m)
76 MOD_SUB_DIRS += usb
77 endif
78 endif
80 ifeq ($(CONFIG_PHONE),y)
81 SUB_DIRS += telephony
82 MOD_SUB_DIRS += telephony
83 else
84 ifeq ($(CONFIG_PHONE),m)
85 MOD_SUB_DIRS += telephony
86 endif
87 endif
89 ifdef CONFIG_SGI
90 SUB_DIRS += sgi
91 MOD_SUB_DIRS += sgi
92 endif
94 ifeq ($(CONFIG_I2O),y)
95 SUB_DIRS += i2o
96 MOD_SUB_DIRS += i2o
97 else
98 ifeq ($(CONFIG_I2O),m)
99 MOD_SUB_DIRS += i2o
100 endif
101 endif
103 # If CONFIG_IDE is set, the core of ATA support will be added to the kernel,
104 # but some of the low-level things may also be modules.
105 ifeq ($(CONFIG_IDE),y)
106 SUB_DIRS += ide
107 MOD_SUB_DIRS += ide
108 else
109 ifeq ($(CONFIG_IDE),m)
110 MOD_SUB_DIRS += ide
111 endif
112 endif
114 # If CONFIG_SCSI is set, the core of SCSI support will be added to the kernel,
115 # but some of the low-level things may also be modules.
116 ifeq ($(CONFIG_SCSI),y)
117 SUB_DIRS += scsi
118 MOD_SUB_DIRS += scsi
119 else
120 ifeq ($(CONFIG_SCSI),m)
121 MOD_SUB_DIRS += scsi
122 endif
123 endif
125 ifeq ($(CONFIG_IEEE1394),y)
126 SUB_DIRS += ieee1394
127 MOD_SUB_DIRS += ieee1394
128 else
129 ifeq ($(CONFIG_IEEE1394),m)
130 MOD_SUB_DIRS += ieee1394
131 endif
132 endif
134 ifeq ($(CONFIG_PNP),y)
135 SUB_DIRS += pnp
136 MOD_SUB_DIRS += pnp
137 else
138 ifeq ($(CONFIG_PNP),m)
139 MOD_SUB_DIRS += pnp
140 endif
141 endif
143 ifneq ($(CONFIG_CD_NO_IDESCSI)$(CONFIG_BLK_DEV_IDECD)$(CONFIG_BLK_DEV_SR)$(CONFIG_PARIDE_PCD),)
144 SUB_DIRS += cdrom
145 MOD_SUB_DIRS += cdrom
146 endif
148 ifeq ($(CONFIG_ISDN),y)
149 SUB_DIRS += isdn
150 MOD_SUB_DIRS += isdn
151 else
152 ifeq ($(CONFIG_ISDN),m)
153 MOD_SUB_DIRS += isdn
154 endif
155 endif
157 ifdef CONFIG_ATM
158 SUB_DIRS += atm
159 MOD_SUB_DIRS += atm
160 endif
162 ifeq ($(CONFIG_FC4),y)
163 SUB_DIRS += fc4
164 MOD_SUB_DIRS += fc4
165 else
166 ifeq ($(CONFIG_FC4),m)
167 MOD_SUB_DIRS += fc4
168 endif
169 endif
171 # When MOD_LIST_NAME is set, make will try to add $(MOD_SUB_DIRS).o to
172 # modules/MOD_LIST_NAME. We don't have hamradio.o and Linus
173 # sort of insisted on making hamradio/ a subdirectory of drivers/net/.
175 ifeq ($(CONFIG_HAMRADIO),y)
176 SUB_DIRS += net/hamradio
177 MOD_SUB_DIRS += net/hamradio
178 endif
180 ifeq ($(CONFIG_I2C),y)
181 SUB_DIRS += i2c
182 MOD_SUB_DIRS += i2c
183 else
184 ifeq ($(CONFIG_I2C),m)
185 MOD_SUB_DIRS += i2c
186 endif
187 endif
189 ifeq ($(CONFIG_ACPI),y)
190 SUB_DIRS += acpi
191 MOD_SUB_DIRS += acpi
192 endif
194 include $(TOPDIR)/Rules.make