blob: 482f1181854d1ae76c92d965e850f2096d00f630 [file] [log] [blame]
Albert Aribaudacc41ff2010-06-17 19:38:21 +05301#
Albert ARIBAUD340983d2011-04-22 19:41:02 +02002# Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
Albert Aribaudacc41ff2010-06-17 19:38:21 +05303#
4# Based on original Kirkwood support which is
5# (C) Copyright 2009
6# Marvell Semiconductor <www.marvell.com>
7# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Albert Aribaudacc41ff2010-06-17 19:38:21 +053010#
11
12include $(TOPDIR)/config.mk
Simon Guinota35cb4c2011-11-21 19:25:47 +053013ifneq ($(OBJTREE),$(SRCTREE))
14$(shell mkdir -p $(obj)../common)
15endif
Albert Aribaudacc41ff2010-06-17 19:38:21 +053016
Sebastien Carliera8d426f2010-11-05 15:48:07 +010017LIB = $(obj)lib$(BOARD).o
Albert Aribaudacc41ff2010-06-17 19:38:21 +053018
Simon Guinota35cb4c2011-11-21 19:25:47 +053019COBJS := edminiv2.o ../common/common.o
Albert Aribaudacc41ff2010-06-17 19:38:21 +053020
21SRCS := $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23
24$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Albert Aribaudacc41ff2010-06-17 19:38:21 +053026
Albert Aribaudacc41ff2010-06-17 19:38:21 +053027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################