Jean-Christophe PLAGNIOL-VILLARD | 33daf5b | 2007-11-24 21:13:59 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2007 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | 33daf5b | 2007-11-24 21:13:59 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libblock.o |
Jean-Christophe PLAGNIOL-VILLARD | 33daf5b | 2007-11-24 21:13:59 +0100 | [diff] [blame] | 11 | |
Albert Aribaud | 4fc7d28 | 2010-08-08 05:17:05 +0530 | [diff] [blame] | 12 | COBJS-$(CONFIG_SCSI_AHCI) += ahci.o |
Jean-Christophe PLAGNIOL-VILLARD | 1a02806 | 2008-08-13 01:40:39 +0200 | [diff] [blame] | 13 | COBJS-$(CONFIG_ATA_PIIX) += ata_piix.o |
Stefano Babic | 9f472e6 | 2012-02-22 00:24:39 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_DWC_AHSATA) += dwc_ahsata.o |
Dave Liu | fd0b1fe | 2008-03-26 22:55:32 +0800 | [diff] [blame] | 15 | COBJS-$(CONFIG_FSL_SATA) += fsl_sata.o |
Macpaul Lin | 4bed726 | 2011-05-01 21:28:56 +0000 | [diff] [blame] | 16 | COBJS-$(CONFIG_IDE_FTIDE020) += ftide020.o |
Dave Liu | ffc664e | 2008-03-26 22:51:44 +0800 | [diff] [blame] | 17 | COBJS-$(CONFIG_LIBATA) += libata.o |
Albert Aribaud | 39419ce | 2010-08-08 05:17:06 +0530 | [diff] [blame] | 18 | COBJS-$(CONFIG_MVSATA_IDE) += mvsata_ide.o |
Marek Vasut | 76f260d | 2011-01-13 07:27:55 +0000 | [diff] [blame] | 19 | COBJS-$(CONFIG_MX51_PATA) += mxc_ata.o |
Sonic Zhang | 8a6b272 | 2008-11-26 22:16:45 -0500 | [diff] [blame] | 20 | COBJS-$(CONFIG_PATA_BFIN) += pata_bfin.o |
Kazuaki Ichinohe | e405afa | 2009-06-12 18:10:12 +0900 | [diff] [blame] | 21 | COBJS-$(CONFIG_SATA_DWC) += sata_dwc.o |
Tor Krill | f135265 | 2008-05-29 10:40:17 +0200 | [diff] [blame] | 22 | COBJS-$(CONFIG_SATA_SIL3114) += sata_sil3114.o |
Tang Yuantian | 83c484d | 2011-10-07 19:26:58 +0000 | [diff] [blame] | 23 | COBJS-$(CONFIG_SATA_SIL) += sata_sil.o |
Albert Aribaud | 4fc7d28 | 2010-08-08 05:17:05 +0530 | [diff] [blame] | 24 | COBJS-$(CONFIG_IDE_SIL680) += sil680.o |
Jean-Christophe PLAGNIOL-VILLARD | 1a02806 | 2008-08-13 01:40:39 +0200 | [diff] [blame] | 25 | COBJS-$(CONFIG_SCSI_SYM53C8XX) += sym53c8xx.o |
| 26 | COBJS-$(CONFIG_SYSTEMACE) += systemace.o |
Jean-Christophe PLAGNIOL-VILLARD | 33daf5b | 2007-11-24 21:13:59 +0100 | [diff] [blame] | 27 | |
| 28 | COBJS := $(COBJS-y) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 29 | SRCS := $(COBJS:.o=.c) |
| 30 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 33daf5b | 2007-11-24 21:13:59 +0100 | [diff] [blame] | 31 | |
| 32 | all: $(LIB) |
| 33 | |
| 34 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 35 | $(call cmd_link_o_target, $(OBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 33daf5b | 2007-11-24 21:13:59 +0100 | [diff] [blame] | 36 | |
| 37 | ######################################################################### |
| 38 | |
| 39 | # defines $(obj).depend target |
| 40 | include $(SRCTREE)/rules.mk |
| 41 | |
| 42 | sinclude $(obj).depend |
| 43 | |
| 44 | ######################################################################### |