#
# Makefile for the kernel ata, atapi, and ide block device drivers.
#
# 12 September 2000, Bartlomiej Zolnierkiewicz <bkz@linux-ide.org>
# Rewritten to use lists instead of if-statements.
#
# Note : at this point, these files are compiled on all systems.
# In the future, some of these should be built conditionally.
#
# First come modules that register themselves with the core
obj-$(CONFIG_BLK_DEV_IDE)		+= pci/

# Core IDE code - must come before legacy

ide-obj-y				:=
ide-obj-$(CONFIG_BLK_DEV_IDEPCI)	+= setup-pci.o
ide-obj-$(CONFIG_BLK_DEV_IDEDMA_PCI)	+= ide-dma.o
ide-obj-$(CONFIG_BLK_DEV_IDE_TCQ)	+= ide-tcq.o
ide-obj-$(CONFIG_PROC_FS)		+= ide-proc.o
ide-obj-$(CONFIG_BLK_DEV_CMD640)	+= pci/cmd640.o

ide-mod-objs				:= ide-io.o ide-iops.o ide-taskfile.o ide.o ide-lib.o ide-default.o $(ide-obj-y)
ide-probe-mod-objs			:= ide-probe.o

obj-$(CONFIG_BLK_DEV_IDE)		+= ide-mod.o ide-probe-mod.o
obj-$(CONFIG_BLK_DEV_IDEDISK)		+= ide-disk.o
obj-$(CONFIG_BLK_DEV_IDECD)		+= ide-cd.o
obj-$(CONFIG_BLK_DEV_IDETAPE)		+= ide-tape.o
obj-$(CONFIG_BLK_DEV_IDEFLOPPY)		+= ide-floppy.o
obj-$(CONFIG_BLK_DEV_IDEPNP)		+= ide-pnp.o

obj-$(CONFIG_BLK_DEV_IDE)		+= legacy/ ppc/ arm/
obj-$(CONFIG_BLK_DEV_HD)		+= legacy/

EXTRA_CFLAGS	:= -Idrivers/ide
