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
43 MOD_SUB_DIRS
+= macintosh
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
)
52 ifeq ($(CONFIG_SCSI
),m
)
57 ifeq ($(CONFIG_PNP
),y
)
61 ifeq ($(CONFIG_PNP
),m
)
66 ifneq ($(CONFIG_CD_NO_IDESCSI
)$(CONFIG_BLK_DEV_IDECD
)$(CONFIG_BLK_DEV_SR
)$(CONFIG_PARIDE_PCD
),)
71 ifeq ($(CONFIG_ISDN
),y
)
75 ifeq ($(CONFIG_ISDN
),m
)
80 ifeq ($(CONFIG_AP1000
),y
)
82 ALL_SUB_DIRS
+= ap1000
85 ifeq ($(CONFIG_FC4
),y
)
89 ifeq ($(CONFIG_FC4
),m
)
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
103 include $(TOPDIR
)/Rules.make