blob: be26b60592d2e0f2a751470a91f305ee2cd76940 [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
Gabor Juhosfeaa6062013-05-22 03:57:42 +000015COBJS-$(CONFIG_PCI_GT64120) += pci_gt64120.o
Gavin Guo014e4672011-11-28 20:48:14 +000016COBJS-$(CONFIG_FTPCI100) += pci_ftpci100.o
Jean-Christophe PLAGNIOL-VILLARD8cb79b52009-01-31 08:56:49 +010017COBJS-$(CONFIG_IXP_PCI) += pci_ixp.o
Nobuhiro Iwamatsuab8f4d42008-03-24 02:11:26 +090018COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o
Nobuhiro Iwamatsu28e5efd2008-03-24 01:53:01 +090019COBJS-$(CONFIG_SH7751_PCI) +=pci_sh7751.o
Nobuhiro Iwamatsuab8f4d42008-03-24 02:11:26 +090020COBJS-$(CONFIG_SH7780_PCI) +=pci_sh7780.o
Jean-Christophe PLAGNIOL-VILLARDab6878c2008-08-13 01:40:40 +020021COBJS-$(CONFIG_TSI108_PCI) += tsi108_pci.o
22COBJS-$(CONFIG_WINBOND_83C553) += w83c553f.o
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010023
24COBJS := $(COBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020025SRCS := $(COBJS:.o=.c)
26OBJS := $(addprefix $(obj),$(COBJS))
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010027
28all: $(LIB)
29
30$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010031 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +010032
33#########################################################################
34
35# defines $(obj).depend target
36include $(SRCTREE)/rules.mk
37
38sinclude $(obj).depend
39
40#########################################################################