1# 2# Makefile for the linux kernel device drivers. 3# 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 (ie not a .c file). 7# 8# Note 2! The CFLAGS definitions are now in the main makefile... 9 10SUB_DIRS := block char net misc #streams 11MOD_SUB_DIRS := $(SUB_DIRS) sbus 12ALL_SUB_DIRS := $(SUB_DIRS) pci scsi sbus sound cdrom isdn pnp macintosh 13 14ifdef CONFIG_PCI 15SUB_DIRS += pci 16endif 17 18ifdef CONFIG_SBUS 19SUB_DIRS += sbus 20endif 21 22ifdef CONFIG_PPC 23SUB_DIRS += macintosh 24MOD_SUB_DIRS += macintosh 25endif 26 27# If CONFIG_SCSI is set, the core of scsi support will be added to the kernel, 28# but some of the low-level things may also be modules. 29ifeq ($(CONFIG_SCSI),y) 30SUB_DIRS += scsi 31MOD_SUB_DIRS += scsi 32else 33 ifeq ($(CONFIG_SCSI),m) 34 MOD_SUB_DIRS += scsi 35 endif 36endif 37 38ifeq ($(CONFIG_SOUND),y) 39SUB_DIRS += sound 40else 41 ifeq ($(CONFIG_SOUND),m) 42 MOD_SUB_DIRS += sound 43 endif 44endif 45 46ifeq ($(CONFIG_PNP),y) 47SUB_DIRS += pnp 48MOD_SUB_DIRS += pnp 49else 50 ifeq ($(CONFIG_PNP),m) 51 MOD_SUB_DIRS += pnp 52 endif 53endif 54 55ifneq ($(CONFIG_CD_NO_IDESCSI)$(CONFIG_BLK_DEV_IDECD)$(CONFIG_BLK_DEV_SR),) 56SUB_DIRS += cdrom 57MOD_SUB_DIRS += cdrom 58endif 59 60ifeq ($(CONFIG_ISDN),y) 61SUB_DIRS += isdn 62MOD_SUB_DIRS += isdn 63else 64 ifeq ($(CONFIG_ISDN),m) 65 MOD_SUB_DIRS += isdn 66 endif 67endif 68 69ifeq ($(CONFIG_AP1000),y) 70SUB_DIRS += ap1000 71ALL_SUB_DIRS += ap1000 72endif 73 74include $(TOPDIR)/Rules.make 75

