blob: 0e95230bf0c85339770f1981281a97948f95482f [file] [log] [blame]
Larry Johnsonc591dff2007-12-27 11:28:51 -05001#
2# (C) Copyright 2002-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Larry Johnsonc591dff2007-12-27 11:28:51 -05006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Larry Johnsonc591dff2007-12-27 11:28:51 -050011
12COBJS = $(BOARD).o
13SOBJS = init.o
14
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Wolfgang Denkee8028b2010-11-21 20:55:42 +010019all: $(LIB) $(SOBJS)
20
21$(LIB): $(OBJS)
22 $(call cmd_link_o_target, $^)
Larry Johnsonc591dff2007-12-27 11:28:51 -050023
Larry Johnsonc591dff2007-12-27 11:28:51 -050024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################