blob: 43e6a4cdefbd99981fcb420f627a4016313bb841 [file] [log] [blame]
Dirk Eibach9a13d812010-10-21 10:50:05 +02001#
2# (C) Copyright 2007
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Eibach9a13d812010-10-21 10:50:05 +02006#
7
8include $(TOPDIR)/config.mk
9
10ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)board/$(VENDOR)/common)
12endif
13
Sebastien Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(VENDOR).o
Dirk Eibach9a13d812010-10-21 10:50:05 +020015
16COBJS-$(CONFIG_IO) += miiphybb.o
Dirk Eibach6fabe552011-10-20 11:12:55 +020017COBJS-$(CONFIG_IO64) += miiphybb.o
Dirk Eibach9a13d812010-10-21 10:50:05 +020018COBJS-$(CONFIG_IOCON) += osd.o
Dirk Eibach81b37932011-01-21 09:31:21 +010019COBJS-$(CONFIG_DLVISION_10G) += osd.o
Dirk Eibach762d3df2013-06-26 15:55:17 +020020COBJS-$(CONFIG_CONTROLCENTERD) += dp501.o
Dirk Eibach9a13d812010-10-21 10:50:05 +020021
22COBJS := $(COBJS-y)
23SOBJS =
24
25SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
26OBJS := $(addprefix $(obj),$(COBJS))
27SOBJS := $(addprefix $(obj),$(SOBJS))
28
29$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010030 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Dirk Eibach9a13d812010-10-21 10:50:05 +020031
Dirk Eibach9a13d812010-10-21 10:50:05 +020032#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################