Jean-Christophe PLAGNIOL-VILLARD | 93a686e | 2007-11-20 20:28:09 +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 | 93a686e | 2007-11-20 20:28:09 +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)libpci.o |
Jean-Christophe PLAGNIOL-VILLARD | 93a686e | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 11 | |
Jean-Christophe PLAGNIOL-VILLARD | ab6878c | 2008-08-13 01:40:40 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_pci_init.o |
Gabor Juhos | 842033e | 2013-05-30 07:06:12 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_PCI) += pci.o pci_auto.o |
| 14 | COBJS-$(CONFIG_PCI_INDIRECT_BRIDGE) += pci_indirect.o |
Gavin Guo | 014e467 | 2011-11-28 20:48:14 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_FTPCI100) += pci_ftpci100.o |
Jean-Christophe PLAGNIOL-VILLARD | 8cb79b5 | 2009-01-31 08:56:49 +0100 | [diff] [blame] | 16 | COBJS-$(CONFIG_IXP_PCI) += pci_ixp.o |
Nobuhiro Iwamatsu | ab8f4d4 | 2008-03-24 02:11:26 +0900 | [diff] [blame] | 17 | COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o |
Nobuhiro Iwamatsu | 28e5efd | 2008-03-24 01:53:01 +0900 | [diff] [blame] | 18 | COBJS-$(CONFIG_SH7751_PCI) +=pci_sh7751.o |
Nobuhiro Iwamatsu | ab8f4d4 | 2008-03-24 02:11:26 +0900 | [diff] [blame] | 19 | COBJS-$(CONFIG_SH7780_PCI) +=pci_sh7780.o |
Jean-Christophe PLAGNIOL-VILLARD | ab6878c | 2008-08-13 01:40:40 +0200 | [diff] [blame] | 20 | COBJS-$(CONFIG_TSI108_PCI) += tsi108_pci.o |
| 21 | COBJS-$(CONFIG_WINBOND_83C553) += w83c553f.o |
Jean-Christophe PLAGNIOL-VILLARD | 93a686e | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 22 | |
| 23 | COBJS := $(COBJS-y) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 24 | SRCS := $(COBJS:.o=.c) |
| 25 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 93a686e | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 26 | |
| 27 | all: $(LIB) |
| 28 | |
| 29 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | $(call cmd_link_o_target, $(OBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 93a686e | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 31 | |
| 32 | ######################################################################### |
| 33 | |
| 34 | # defines $(obj).depend target |
| 35 | include $(SRCTREE)/rules.mk |
| 36 | |
| 37 | sinclude $(obj).depend |
| 38 | |
| 39 | ######################################################################### |