* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / Makefile
blobece4a192c679cc7b1652c111649036fc186c1f67
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 pcmcia
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 ifeq ($(CONFIG_PCMCIA),y)
26 SUB_DIRS += pcmcia
27 else
28 ifeq ($(CONFIG_PCMCIA),m)
29 MOD_SUB_DIRS += pcmcia
30 endif
31 endif
33 ifdef CONFIG_SBUS
34 SUB_DIRS += sbus
35 MOD_SUB_DIRS += sbus
36 endif
38 ifdef CONFIG_ZORRO
39 SUB_DIRS += zorro
40 endif
42 ifdef CONFIG_NUBUS
43 SUB_DIRS += nubus
44 endif
46 ifdef CONFIG_TC
47 SUB_DIRS += tc
48 endif
50 ifdef CONFIG_VT
51 SUB_DIRS += video
52 MOD_SUB_DIRS += video
53 endif
55 ifdef CONFIG_PPC
56 SUB_DIRS += macintosh
57 MOD_SUB_DIRS += macintosh
58 endif
60 ifeq ($(CONFIG_USB),y)
61 SUB_DIRS += usb
62 MOD_SUB_DIRS += usb
63 else
64 ifeq ($(CONFIG_USB),m)
65 MOD_SUB_DIRS += usb
66 endif
67 endif
69 ifdef CONFIG_SGI
70 SUB_DIRS += sgi
71 MOD_SUB_DIRS += sgi
72 endif
74 ifeq ($(CONFIG_I2O),y)
75 SUB_DIRS += i2o
76 MOD_SUB_DIRS += i2o
77 else
78 ifeq ($(CONFIG_I2O),m)
79 MOD_SUB_DIRS += i2o
80 endif
81 endif
83 # If CONFIG_SCSI is set, the core of SCSI support will be added to the kernel,
84 # but some of the low-level things may also be modules.
85 ifeq ($(CONFIG_SCSI),y)
86 SUB_DIRS += scsi
87 MOD_SUB_DIRS += scsi
88 else
89 ifeq ($(CONFIG_SCSI),m)
90 MOD_SUB_DIRS += scsi
91 endif
92 endif
94 ifeq ($(CONFIG_PNP),y)
95 SUB_DIRS += pnp
96 MOD_SUB_DIRS += pnp
97 else
98 ifeq ($(CONFIG_PNP),m)
99 MOD_SUB_DIRS += pnp
100 endif
101 endif
103 ifneq ($(CONFIG_CD_NO_IDESCSI)$(CONFIG_BLK_DEV_IDECD)$(CONFIG_BLK_DEV_SR)$(CONFIG_PARIDE_PCD),)
104 SUB_DIRS += cdrom
105 MOD_SUB_DIRS += cdrom
106 endif
108 ifeq ($(CONFIG_ISDN),y)
109 SUB_DIRS += isdn
110 MOD_SUB_DIRS += isdn
111 else
112 ifeq ($(CONFIG_ISDN),m)
113 MOD_SUB_DIRS += isdn
114 endif
115 endif
117 ifdef CONFIG_ATM
118 SUB_DIRS += atm
119 MOD_SUB_DIRS += atm
120 endif
122 ifeq ($(CONFIG_AP1000),y)
123 SUB_DIRS += ap1000
124 endif
126 ifeq ($(CONFIG_FC4),y)
127 SUB_DIRS += fc4
128 MOD_SUB_DIRS += fc4
129 else
130 ifeq ($(CONFIG_FC4),m)
131 MOD_SUB_DIRS += fc4
132 endif
133 endif
135 # When MOD_LIST_NAME is set, make will try to add $(MOD_SUB_DIRS).o to
136 # modules/MOD_LIST_NAME. We don't have hamradio.o and Linus
137 # sort of insisted on making hamradio/ a subdirectory of drivers/net/.
139 ifeq ($(CONFIG_HAMRADIO),y)
140 SUB_DIRS += net/hamradio
141 MOD_SUB_DIRS += net/hamradio
142 endif
144 include $(TOPDIR)/Rules.make