Merge branches 'topic/fix/asoc', 'topic/fix/hda', 'topic/fix/misc' and 'topic/pci...
[linux-2.6] / drivers / ide / Makefile
1 #
2 # link order is important here
3 #
4
5 EXTRA_CFLAGS                            += -Idrivers/ide
6
7 ide-core-y += ide.o ide-ioctls.o ide-io.o ide-iops.o ide-lib.o ide-probe.o \
8               ide-taskfile.o ide-park.o ide-pio-blacklist.o
9
10 # core IDE code
11 ide-core-$(CONFIG_IDE_TIMINGS)          += ide-timings.o
12 ide-core-$(CONFIG_IDE_ATAPI)            += ide-atapi.o
13 ide-core-$(CONFIG_BLK_DEV_IDEPCI)       += setup-pci.o
14 ide-core-$(CONFIG_BLK_DEV_IDEDMA)       += ide-dma.o
15 ide-core-$(CONFIG_BLK_DEV_IDEDMA_SFF)   += ide-dma-sff.o
16 ide-core-$(CONFIG_IDE_PROC_FS)          += ide-proc.o
17 ide-core-$(CONFIG_BLK_DEV_IDEACPI)      += ide-acpi.o
18
19 obj-$(CONFIG_IDE)                       += ide-core.o
20
21 ifeq ($(CONFIG_IDE_ARM), y)
22         ide-arm-core-y += arm/ide_arm.o
23         obj-y += ide-arm-core.o
24 endif
25
26 obj-$(CONFIG_IDE)                       += legacy/ pci/
27
28 obj-$(CONFIG_IDEPCI_PCIBUS_ORDER)       += ide-scan-pci.o
29
30 ifeq ($(CONFIG_BLK_DEV_CMD640), y)
31         cmd640-core-y += pci/cmd640.o
32         obj-y += cmd640-core.o
33 endif
34
35 obj-$(CONFIG_IDE)                       += ppc/
36 obj-$(CONFIG_IDE_H8300)                 += h8300/
37 obj-$(CONFIG_IDE_GENERIC)               += ide-generic.o
38 obj-$(CONFIG_BLK_DEV_IDEPNP)            += ide-pnp.o
39
40 ide-gd_mod-y += ide-gd.o
41 ide-cd_mod-y += ide-cd.o ide-cd_ioctl.o ide-cd_verbose.o
42
43 ifeq ($(CONFIG_IDE_GD_ATA), y)
44         ide-gd_mod-y += ide-disk.o ide-disk_ioctl.o
45 ifeq ($(CONFIG_IDE_PROC_FS), y)
46         ide-gd_mod-y += ide-disk_proc.o
47 endif
48 endif
49
50 ifeq ($(CONFIG_IDE_GD_ATAPI), y)
51         ide-gd_mod-y += ide-floppy.o ide-floppy_ioctl.o
52 ifeq ($(CONFIG_IDE_PROC_FS), y)
53         ide-gd_mod-y += ide-floppy_proc.o
54 endif
55 endif
56
57 obj-$(CONFIG_IDE_GD)                    += ide-gd_mod.o
58 obj-$(CONFIG_BLK_DEV_IDECD)             += ide-cd_mod.o
59 obj-$(CONFIG_BLK_DEV_IDETAPE)           += ide-tape.o
60
61 ifeq ($(CONFIG_BLK_DEV_IDECS), y)
62         ide-cs-core-y += legacy/ide-cs.o
63         obj-y += ide-cs-core.o
64 endif
65
66 ifeq ($(CONFIG_BLK_DEV_PLATFORM), y)
67         ide-platform-core-y += legacy/ide_platform.o
68         obj-y += ide-platform-core.o
69 endif
70
71 obj-$(CONFIG_IDE)                       += arm/ mips/