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