blob: 216ad964af1e3794e5c684ea3ed0febf07bfab8a [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
Dirk Eibach20614a22013-06-26 16:04:26 +020016COBJS-$(CONFIG_SYS_FPGA_COMMON) += fpga.o
17
Dirk Eibach9a13d812010-10-21 10:50:05 +020018COBJS-$(CONFIG_IO) += miiphybb.o
Dirk Eibach6fabe552011-10-20 11:12:55 +020019COBJS-$(CONFIG_IO64) += miiphybb.o
Dirk Eibach437145e2013-07-25 19:28:13 +020020COBJS-$(CONFIG_IOCON) += osd.o mclink.o
Dirk Eibach81b37932011-01-21 09:31:21 +010021COBJS-$(CONFIG_DLVISION_10G) += osd.o
Dirk Eibach762d3df2013-06-26 15:55:17 +020022COBJS-$(CONFIG_CONTROLCENTERD) += dp501.o
Dirk Eibach9a13d812010-10-21 10:50:05 +020023
24COBJS := $(COBJS-y)
25SOBJS =
26
27SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
28OBJS := $(addprefix $(obj),$(COBJS))
29SOBJS := $(addprefix $(obj),$(SOBJS))
30
31$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010032 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Dirk Eibach9a13d812010-10-21 10:50:05 +020033
Dirk Eibach9a13d812010-10-21 10:50:05 +020034#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################