xref: /openbmc/u-boot/drivers/net/phy/Makefile (revision 1a459660)
1#
2# (C) Copyright 2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	:= $(obj)libphy.o
11
12COBJS-$(CONFIG_BITBANGMII) += miiphybb.o
13COBJS-$(CONFIG_MV88E61XX_SWITCH) += mv88e61xx.o
14COBJS-$(CONFIG_MV88E6352_SWITCH) += mv88e6352.o
15
16COBJS-$(CONFIG_PHYLIB) += phy.o
17COBJS-$(CONFIG_PHYLIB_10G) += generic_10g.o
18COBJS-$(CONFIG_PHY_ATHEROS) += atheros.o
19COBJS-$(CONFIG_PHY_BROADCOM) += broadcom.o
20COBJS-$(CONFIG_PHY_DAVICOM) += davicom.o
21COBJS-$(CONFIG_PHY_ET1011C) += et1011c.o
22COBJS-$(CONFIG_PHY_ICPLUS) += icplus.o
23COBJS-$(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
28COBJS-$(CONFIG_PHY_SMSC) += smsc.o
29COBJS-$(CONFIG_PHY_TERANETICS) += teranetics.o
30COBJS-$(CONFIG_PHY_VITESSE) += vitesse.o
31
32COBJS	:= $(COBJS-y)
33SRCS	:= $(COBJS:.o=.c)
34OBJS	:= $(addprefix $(obj),$(COBJS))
35
36all:	$(LIB)
37
38$(LIB):	$(obj).depend $(OBJS)
39	$(call cmd_link_o_target, $(OBJS))
40
41#########################################################################
42
43# defines $(obj).depend target
44include $(SRCTREE)/rules.mk
45
46sinclude $(obj).depend
47
48#########################################################################
49