Jean-Christophe PLAGNIOL-VILLARD | 67572cf | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | 67572cf | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libpci.o |
Jean-Christophe PLAGNIOL-VILLARD | 67572cf | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 11 | |
Jean-Christophe PLAGNIOL-VILLARD | 4838ebc | 2008-08-13 01:40:40 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_pci_init.o |
Gabor Juhos | b445873 | 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 | b009b02 | 2011-11-28 20:48:14 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_FTPCI100) += pci_ftpci100.o |
Jean-Christophe PLAGNIOL-VILLARD | 2495361 | 2009-01-31 08:56:49 +0100 | [diff] [blame] | 16 | COBJS-$(CONFIG_IXP_PCI) += pci_ixp.o |
Nobuhiro Iwamatsu | 5aa5d67 | 2008-03-24 02:11:26 +0900 | [diff] [blame] | 17 | COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o |
Nobuhiro Iwamatsu | 7d180fd | 2008-03-24 01:53:01 +0900 | [diff] [blame] | 18 | COBJS-$(CONFIG_SH7751_PCI) +=pci_sh7751.o |
Nobuhiro Iwamatsu | 5aa5d67 | 2008-03-24 02:11:26 +0900 | [diff] [blame] | 19 | COBJS-$(CONFIG_SH7780_PCI) +=pci_sh7780.o |
Jean-Christophe PLAGNIOL-VILLARD | 4838ebc | 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 | 67572cf | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 22 | |
| 23 | COBJS := $(COBJS-y) |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 24 | SRCS := $(COBJS:.o=.c) |
| 25 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 67572cf | 2007-11-20 20:28:09 +0100 | [diff] [blame] | 26 | |
| 27 | all: $(LIB) |
| 28 | |
| 29 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | $(call cmd_link_o_target, $(OBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 67572cf | 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 | ######################################################################### |