Import 2.3.17
[davej-history.git] / drivers / Makefile
blob28542ded07fd202f010989e7fe905886a1e17f5f
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 scsi sbus cdrom isdn pnp i2o \
13 macintosh video dio zorro fc4 usb \
14 nubus tc ap1000 atm
16 ifdef CONFIG_DIO
17 SUB_DIRS += dio
18 MOD_SUB_DIRS += dio
19 endif
21 ifdef CONFIG_PCI
22 SUB_DIRS += pci
23 endif
25 ifdef CONFIG_PCMCIA
26 SUB_DIRS += pcmcia
27 endif
29 ifdef CONFIG_SBUS
30 SUB_DIRS += sbus
31 MOD_SUB_DIRS += sbus
32 endif
34 ifdef CONFIG_ZORRO
35 SUB_DIRS += zorro
36 endif
38 ifdef CONFIG_NUBUS
39 SUB_DIRS += nubus
40 endif
42 ifdef CONFIG_TC
43 SUB_DIRS += tc
44 endif
46 ifdef CONFIG_VT
47 SUB_DIRS += video
48 MOD_SUB_DIRS += video
49 endif
51 ifdef CONFIG_PPC
52 SUB_DIRS += macintosh
53 MOD_SUB_DIRS += macintosh
54 endif
56 ifeq ($(CONFIG_USB),y)
57 SUB_DIRS += usb
58 MOD_SUB_DIRS += usb
59 else
60 ifeq ($(CONFIG_USB),m)
61 MOD_SUB_DIRS += usb
62 endif
63 endif
65 ifdef CONFIG_SGI
66 SUB_DIRS += sgi
67 MOD_SUB_DIRS += sgi
68 endif
70 ifeq ($(CONFIG_I2O),y)
71 SUB_DIRS += i2o
72 MOD_SUB_DIRS += i2o
73 else
74 ifeq ($(CONFIG_I2O),m)
75 MOD_SUB_DIRS += i2o
76 endif
77 endif
79 # If CONFIG_SCSI is set, the core of SCSI support will be added to the kernel,
80 # but some of the low-level things may also be modules.
81 ifeq ($(CONFIG_SCSI),y)
82 SUB_DIRS += scsi
83 MOD_SUB_DIRS += scsi
84 else
85 ifeq ($(CONFIG_SCSI),m)
86 MOD_SUB_DIRS += scsi
87 endif
88 endif
90 ifeq ($(CONFIG_PNP),y)
91 SUB_DIRS += pnp
92 MOD_SUB_DIRS += pnp
93 else
94 ifeq ($(CONFIG_PNP),m)
95 MOD_SUB_DIRS += pnp
96 endif
97 endif
99 ifneq ($(CONFIG_CD_NO_IDESCSI)$(CONFIG_BLK_DEV_IDECD)$(CONFIG_BLK_DEV_SR)$(CONFIG_PARIDE_PCD),)
100 SUB_DIRS += cdrom
101 MOD_SUB_DIRS += cdrom
102 endif
104 ifeq ($(CONFIG_ISDN),y)
105 SUB_DIRS += isdn
106 MOD_SUB_DIRS += isdn
107 else
108 ifeq ($(CONFIG_ISDN),m)
109 MOD_SUB_DIRS += isdn
110 endif
111 endif
113 ifdef CONFIG_ATM
114 SUB_DIRS += atm
115 MOD_SUB_DIRS += atm
116 endif
118 ifeq ($(CONFIG_AP1000),y)
119 SUB_DIRS += ap1000
120 ALL_SUB_DIRS += ap1000
121 endif
123 ifeq ($(CONFIG_FC4),y)
124 SUB_DIRS += fc4
125 MOD_SUB_DIRS += fc4
126 else
127 ifeq ($(CONFIG_FC4),m)
128 MOD_SUB_DIRS += fc4
129 endif
130 endif
132 # When MOD_LIST_NAME is set, make will try to add $(MOD_SUB_DIRS).o to
133 # modules/MOD_LIST_NAME. We don't have hamradio.o and Linus
134 # sort of insisted on making hamradio/ a subdirectory of drivers/net/.
136 ifeq ($(CONFIG_HAMRADIO),y)
137 SUB_DIRS += net/hamradio
138 MOD_SUB_DIRS += net/hamradio
139 endif
141 include $(TOPDIR)/Rules.make