blob: 5a23914ba465391f3646a5b46eb3004b0588709e [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +01001#
2# (C) Copyright 2000-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libpci.o
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010011
Jean-Christophe PLAGNIOL-VILLARDab6878c2008-08-13 01:40:40 +020012COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_pci_init.o
Gabor Juhos842033e2013-05-30 07:06:12 +000013COBJS-$(CONFIG_PCI) += pci.o pci_auto.o
14COBJS-$(CONFIG_PCI_INDIRECT_BRIDGE) += pci_indirect.o
Gavin Guo014e4672011-11-28 20:48:14 +000015COBJS-$(CONFIG_FTPCI100) += pci_ftpci100.o
Jean-Christophe PLAGNIOL-VILLARD8cb79b52009-01-31 08:56:49 +010016COBJS-$(CONFIG_IXP_PCI) += pci_ixp.o
Nobuhiro Iwamatsuab8f4d42008-03-24 02:11:26 +090017COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o
Nobuhiro Iwamatsu28e5efd2008-03-24 01:53:01 +090018COBJS-$(CONFIG_SH7751_PCI) +=pci_sh7751.o
Nobuhiro Iwamatsuab8f4d42008-03-24 02:11:26 +090019COBJS-$(CONFIG_SH7780_PCI) +=pci_sh7780.o
Jean-Christophe PLAGNIOL-VILLARDab6878c2008-08-13 01:40:40 +020020COBJS-$(CONFIG_TSI108_PCI) += tsi108_pci.o
21COBJS-$(CONFIG_WINBOND_83C553) += w83c553f.o
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010022
23COBJS := $(COBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020024SRCS := $(COBJS:.o=.c)
25OBJS := $(addprefix $(obj),$(COBJS))
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010026
27all: $(LIB)
28
29$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010031
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################