blob: fe762e9de39313e5d3bc2132751fcd991889c818 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDf2266792008-08-29 01:18:01 +02001#
Jean-Christophe PLAGNIOL-VILLARD84dd2262008-08-29 21:53:56 +02002# (C) Copyright 2008
Jean-Christophe PLAGNIOL-VILLARDf2266792008-08-29 01:18:01 +02003# 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-VILLARDf2266792008-08-29 01:18:01 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB := $(obj)libphy.o
Jean-Christophe PLAGNIOL-VILLARDf2266792008-08-29 01:18:01 +020011
12COBJS-$(CONFIG_BITBANGMII) += miiphybb.o
Prafulla Wadaskara055ce02009-05-19 01:40:16 +053013COBJS-$(CONFIG_MV88E61XX_SWITCH) += mv88e61xx.o
Valentin Longchamp2ebd1502012-08-16 01:17:26 +000014COBJS-$(CONFIG_MV88E6352_SWITCH) += mv88e6352.o
Andy Fleming60ca78b2011-04-07 21:56:05 -050015
Andy Flemingaecf6fc2011-04-08 02:10:27 -050016COBJS-$(CONFIG_PHYLIB) += phy.o
17COBJS-$(CONFIG_PHYLIB_10G) += generic_10g.o
Andy Fleming60ca78b2011-04-07 21:56:05 -050018COBJS-$(CONFIG_PHY_ATHEROS) += atheros.o
19COBJS-$(CONFIG_PHY_BROADCOM) += broadcom.o
20COBJS-$(CONFIG_PHY_DAVICOM) += davicom.o
Matt Porter3bbeb792013-03-20 05:38:13 +000021COBJS-$(CONFIG_PHY_ET1011C) += et1011c.o
Yegor Yefremov0b1d8382012-11-28 11:15:18 +010022COBJS-$(CONFIG_PHY_ICPLUS) += icplus.o
Andy Fleming60ca78b2011-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 Iwamatsu61134dc2011-11-23 21:24:15 +000028COBJS-$(CONFIG_PHY_SMSC) += smsc.o
Andy Fleming60ca78b2011-04-07 21:56:05 -050029COBJS-$(CONFIG_PHY_TERANETICS) += teranetics.o
30COBJS-$(CONFIG_PHY_VITESSE) += vitesse.o
Jean-Christophe PLAGNIOL-VILLARDf2266792008-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 Carliera8d426f2010-11-05 15:48:07 +010039 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARDf2266792008-08-29 01:18:01 +020040
41#########################################################################
42
43# defines $(obj).depend target
44include $(SRCTREE)/rules.mk
45
46sinclude $(obj).depend
47
48#########################################################################