2 # Makefile for the Linux kernel device drivers.
4 # 15 Sep 2000, Christoph Hellwig <hch@caldera.de>
5 # Rewritten to use lists instead of if-statements.
9 mod-subdirs
:= dio mtd sbus video macintosh usb input telephony sgi i2o ide \
10 scsi md ieee1394 pnp isdn atm fc4 net
/hamradio i2c acpi
12 subdir-y
:= block char net parport sound misc media cdrom
13 subdir-m
:= $(subdir-y
)
16 subdir-
$(CONFIG_DIO
) += dio
17 subdir-
$(CONFIG_PCI
) += pci
18 subdir-
$(CONFIG_PCMCIA
) += pcmcia
19 subdir-
$(CONFIG_MTD
) += mtd
20 subdir-
$(CONFIG_SBUS
) += sbus
21 subdir-
$(CONFIG_ZORRO
) += zorro
22 subdir-
$(CONFIG_NUBUS
) += nubus
23 subdir-
$(CONFIG_TC
) += tc
24 subdir-
$(CONFIG_VT
) += video
25 subdir-
$(CONFIG_MAC
) += macintosh
26 subdir-
$(CONFIG_ALL_PPC
) += macintosh
27 subdir-
$(CONFIG_USB
) += usb
28 subdir-
$(CONFIG_INPUT
) += input
29 subdir-
$(CONFIG_PHONE
) += telephony
30 subdir-
$(CONFIG_SGI
) += sgi
31 subdir-
$(CONFIG_IDE
) += ide
32 subdir-
$(CONFIG_SCSI
) += scsi
33 subdir-
$(CONFIG_I2O
) += i2o
34 subdir-
$(CONFIG_MD
) += md
35 subdir-
$(CONFIG_IEEE1394
) += ieee1394
36 subdir-
$(CONFIG_PNP
) += pnp
37 subdir-
$(CONFIG_ISDN
) += isdn
38 subdir-
$(CONFIG_ATM
) += atm
39 subdir-
$(CONFIG_FC4
) += fc4
41 # CONFIG_HAMRADIO can be set without CONFIG_NETDEVICE being set -- ch
42 subdir-
$(CONFIG_HAMRADIO
) += net
/hamradio
43 subdir-
$(CONFIG_I2C
) += i2c
44 subdir-
$(CONFIG_ACPI
) += acpi
47 # Subdirectories that should be entered when MAKING_MODULES=1, even if set to 'y'.
48 both-m
:= $(filter $(mod-subdirs
), $(subdir-y
))
50 # Translate to Rules.make lists.
51 SUB_DIRS
:= $(subdir-y
)
52 MOD_SUB_DIRS
:= $(sort $(subdir-m
) $(both-m
))
53 ALL_SUB_DIRS
:= $(sort $(subdir-y
) $(subdir-m
) $(subdir-n
) $(subdir-
))
55 # net/hamradio is already in ALL_SUB_DIRS of drivers/net/Makefile
56 ALL_SUB_DIRS
:= $(filter-out net
/hamradio
, $(ALL_SUB_DIRS
))
58 include $(TOPDIR
)/Rules.make