2 # Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
4 # Based on sheevaplug/Makefile originally written by
5 # Prafulla Wadaskar <prafulla@marvell.com>
7 # Marvell Semiconductor <www.marvell.com>
9 # SPDX-License-Identifier: GPL-2.0+
12 include $(TOPDIR)/config.mk
14 LIB = $(obj)lib$(BOARD).o
18 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19 OBJS := $(addprefix $(obj),$(COBJS))
20 SOBJS := $(addprefix $(obj),$(SOBJS))
22 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
23 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
25 #########################################################################
27 # defines $(obj).depend target
28 include $(SRCTREE)/rules.mk
30 sinclude $(obj).depend
32 #########################################################################