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