Import 2.1.118
[davej-history.git] / drivers / Makefile
blobf6b73e35f93ba4aa94eaea15116c0e26e1d082d1
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 misc sound
11 MOD_SUB_DIRS := $(SUB_DIRS) sbus
12 ALL_SUB_DIRS := $(SUB_DIRS) pci scsi sbus cdrom isdn pnp \
13 macintosh video dio zorro fc4
15 ifdef CONFIG_DIO
16 SUB_DIRS += dio
17 MOD_SUB_DIRS += dio
18 endif
20 ifdef CONFIG_PCI
21 SUB_DIRS += pci
22 endif
24 ifdef CONFIG_SBUS
25 SUB_DIRS += sbus
26 endif
28 ifdef CONFIG_ZORRO
29 SUB_DIRS += zorro
30 endif
32 ifdef CONFIG_NUBUS
33 SUB_DIRS += nubus
34 endif
36 ifdef CONFIG_VT
37 SUB_DIRS += video
38 MOD_SUB_DIRS += video
39 endif
41 ifdef CONFIG_PPC
42 SUB_DIRS += macintosh
43 MOD_SUB_DIRS += macintosh
44 endif
46 # If CONFIG_SCSI is set, the core of SCSI support will be added to the kernel,
47 # but some of the low-level things may also be modules.
48 ifeq ($(CONFIG_SCSI),y)
49 SUB_DIRS += scsi
50 MOD_SUB_DIRS += scsi
51 else
52 ifeq ($(CONFIG_SCSI),m)
53 MOD_SUB_DIRS += scsi
54 endif
55 endif
57 ifeq ($(CONFIG_PNP),y)
58 SUB_DIRS += pnp
59 MOD_SUB_DIRS += pnp
60 else
61 ifeq ($(CONFIG_PNP),m)
62 MOD_SUB_DIRS += pnp
63 endif
64 endif
66 ifneq ($(CONFIG_CD_NO_IDESCSI)$(CONFIG_BLK_DEV_IDECD)$(CONFIG_BLK_DEV_SR)$(CONFIG_PARIDE_PCD),)
67 SUB_DIRS += cdrom
68 MOD_SUB_DIRS += cdrom
69 endif
71 ifeq ($(CONFIG_ISDN),y)
72 SUB_DIRS += isdn
73 MOD_SUB_DIRS += isdn
74 else
75 ifeq ($(CONFIG_ISDN),m)
76 MOD_SUB_DIRS += isdn
77 endif
78 endif
80 ifeq ($(CONFIG_AP1000),y)
81 SUB_DIRS += ap1000
82 ALL_SUB_DIRS += ap1000
83 endif
85 ifeq ($(CONFIG_FC4),y)
86 SUB_DIRS += fc4
87 MOD_SUB_DIRS += fc4
88 else
89 ifeq ($(CONFIG_FC4),m)
90 MOD_SUB_DIRS += fc4
91 endif
92 endif
94 # When MOD_LIST_NAME is set, make will try to add $(MOD_SUB_DIRS).o to
95 # modules/MOD_LIST_NAME. We don't have hamradio.o and Linus
96 # sort of insisted on making hamradio/ a subdirectory of drivers/net/.
98 ifeq ($(CONFIG_HAMRADIO),y)
99 SUB_DIRS += net/hamradio
100 MOD_SUB_DIRS += net/hamradio
101 endif
103 include $(TOPDIR)/Rules.make