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 \
26 ifeq ($(CONFIG_PCMCIA
),y
)
29 ifeq ($(CONFIG_PCMCIA
),m
)
30 MOD_SUB_DIRS
+= pcmcia
63 MOD_SUB_DIRS
+= macintosh
68 MOD_SUB_DIRS
+= macintosh
71 ifeq ($(CONFIG_USB
),y
)
75 ifeq ($(CONFIG_USB
),m
)
80 ifeq ($(CONFIG_PHONE
),y
)
82 MOD_SUB_DIRS
+= telephony
84 ifeq ($(CONFIG_PHONE
),m
)
85 MOD_SUB_DIRS
+= telephony
94 ifeq ($(CONFIG_I2O
),y
)
98 ifeq ($(CONFIG_I2O
),m
)
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
)
109 ifeq ($(CONFIG_IDE
),m
)
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
)
120 ifeq ($(CONFIG_SCSI
),m
)
125 ifeq ($(CONFIG_IEEE1394
),y
)
127 MOD_SUB_DIRS
+= ieee1394
129 ifeq ($(CONFIG_IEEE1394
),m
)
130 MOD_SUB_DIRS
+= ieee1394
134 ifeq ($(CONFIG_PNP
),y
)
138 ifeq ($(CONFIG_PNP
),m
)
143 ifneq ($(CONFIG_CD_NO_IDESCSI
)$(CONFIG_BLK_DEV_IDECD
)$(CONFIG_BLK_DEV_SR
)$(CONFIG_PARIDE_PCD
),)
145 MOD_SUB_DIRS
+= cdrom
148 ifeq ($(CONFIG_ISDN
),y
)
152 ifeq ($(CONFIG_ISDN
),m
)
162 ifeq ($(CONFIG_FC4
),y
)
166 ifeq ($(CONFIG_FC4
),m
)
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
180 ifeq ($(CONFIG_I2C
),y
)
184 ifeq ($(CONFIG_I2C
),m
)
189 ifeq ($(CONFIG_ACPI
),y
)
194 include $(TOPDIR
)/Rules.make