import of ftp.dlink.com/GPL/DSMG-600_reB/ppclinux.tar.gz
[linux-2.4.21-pre4.git] / drivers / ide / Makefile
1 #
2 # Makefile for the kernel ata, atapi, and ide block device drivers.
3 #
4 # 12 September 2000, Bartlomiej Zolnierkiewicz <bkz@linux-ide.org>
5 # Rewritten to use lists instead of if-statements.
6 #
7 # Note : at this point, these files are compiled on all systems.
8 # In the future, some of these should be built conditionally.
9 #
10
11 O_TARGET := idedriver.o
12
13 export-objs := ide-iops.o ide-taskfile.o ide-proc.o ide.o ide-probe.o ide-dma.o ide-lib.o setup-pci.o ide-io.o
14
15 all-subdirs     := arm legacy pci ppc raid
16 mod-subdirs     := arm legacy pci ppc raid
17
18 obj-y           :=
19 obj-m           :=
20 ide-obj-y       :=
21
22 obj-$(CONFIG_IBM_OCP_IDE)       += ibm_ocp_ide.o
23 obj-$(CONFIG_BLK_DEV_REDWOOD_IDE)       += ocp_stbxxxxx.o
24
25 subdir-$(CONFIG_BLK_DEV_IDE) += legacy ppc arm raid pci
26
27 # First come modules that register themselves with the core
28
29 ifeq ($(CONFIG_BLK_DEV_IDE),y)
30   obj-y         += pci/idedriver-pci.o
31 endif
32
33 # Core IDE code - must come before legacy
34
35 obj-$(CONFIG_BLK_DEV_IDE)               += ide-probe.o ide-geometry.o ide-iops.o ide-taskfile.o ide.o ide-lib.o ide-io.o
36 obj-$(CONFIG_BLK_DEV_IDEDISK)           += ide-disk.o
37 obj-$(CONFIG_BLK_DEV_IDECD)             += ide-cd.o
38 obj-$(CONFIG_BLK_DEV_IDETAPE)           += ide-tape.o
39 obj-$(CONFIG_BLK_DEV_IDEFLOPPY)         += ide-floppy.o
40
41 obj-$(CONFIG_BLK_DEV_IDEPCI)            += setup-pci.o
42 obj-$(CONFIG_BLK_DEV_IDEDMA_PCI)        += ide-dma.o
43 obj-$(CONFIG_BLK_DEV_ISAPNP)            += ide-pnp.o
44
45
46 ifeq ($(CONFIG_BLK_DEV_IDE),y)
47 obj-$(CONFIG_PROC_FS)                   += ide-proc.o
48 endif
49
50 ifeq ($(CONFIG_BLK_DEV_IDE),y)
51   obj-y         += legacy/idedriver-legacy.o
52   obj-y         += ppc/idedriver-ppc.o
53   obj-y         += arm/idedriver-arm.o
54 endif
55
56
57 ifeq ($(CONFIG_BLK_DEV_IDE),y)
58 # RAID must be last of all
59   obj-y         += raid/idedriver-raid.o
60 endif
61
62 include $(TOPDIR)/Rules.make