blob: fe762e9de39313e5d3bc2132751fcd991889c818 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD55195772008-08-29 01:18:01 +02001#
Jean-Christophe PLAGNIOL-VILLARDba7b5b22008-08-29 21:53:56 +02002# (C) Copyright 2008
Jean-Christophe PLAGNIOL-VILLARD55195772008-08-29 01:18:01 +02003# 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-VILLARD55195772008-08-29 01:18:01 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libphy.o
Jean-Christophe PLAGNIOL-VILLARD55195772008-08-29 01:18:01 +020011
12COBJS-$(CONFIG_BITBANGMII) += miiphybb.o
Prafulla Wadaskar6f51deb2009-05-19 01:40:16 +053013COBJS-$(CONFIG_MV88E61XX_SWITCH) += mv88e61xx.o
Valentin Longchampb7373372012-08-16 01:17:26 +000014COBJS-$(CONFIG_MV88E6352_SWITCH) += mv88e6352.o
Andy Fleming9082eea2011-04-07 21:56:05 -050015
Andy Fleming5f184712011-04-08 02:10:27 -050016COBJS-$(CONFIG_PHYLIB) += phy.o
17COBJS-$(CONFIG_PHYLIB_10G) += generic_10g.o
Andy Fleming9082eea2011-04-07 21:56:05 -050018COBJS-$(CONFIG_PHY_ATHEROS) += atheros.o
19COBJS-$(CONFIG_PHY_BROADCOM) += broadcom.o
20COBJS-$(CONFIG_PHY_DAVICOM) += davicom.o
Matt Porterf485c8a2013-03-20 05:38:13 +000021COBJS-$(CONFIG_PHY_ET1011C) += et1011c.o
Yegor Yefremov0fae2502012-11-28 11:15:18 +010022COBJS-$(CONFIG_PHY_ICPLUS) += icplus.o
Andy Fleming9082eea2011-04-07 21:56:05 -050023COBJS-$(CONFIG_PHY_LXT) += lxt.o
24COBJS-$(CONFIG_PHY_MARVELL) += marvell.o
25COBJS-$(CONFIG_PHY_MICREL) += micrel.o
26COBJS-$(CONFIG_PHY_NATSEMI) += natsemi.o
27COBJS-$(CONFIG_PHY_REALTEK) += realtek.o
Nobuhiro Iwamatsu5751aa22011-11-23 21:24:15 +000028COBJS-$(CONFIG_PHY_SMSC) += smsc.o
Andy Fleming9082eea2011-04-07 21:56:05 -050029COBJS-$(CONFIG_PHY_TERANETICS) += teranetics.o
30COBJS-$(CONFIG_PHY_VITESSE) += vitesse.o
Jean-Christophe PLAGNIOL-VILLARD55195772008-08-29 01:18:01 +020031
32COBJS := $(COBJS-y)
33SRCS := $(COBJS:.o=.c)
34OBJS := $(addprefix $(obj),$(COBJS))
35
36all: $(LIB)
37
38$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010039 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD55195772008-08-29 01:18:01 +020040
41#########################################################################
42
43# defines $(obj).depend target
44include $(SRCTREE)/rules.mk
45
46sinclude $(obj).depend
47
48#########################################################################