blob: 7ccd9a85749a6b51d9e4d1d9ff5082e9f8b7f5a5 [file] [log] [blame]
Matthias Fuchs2108cd32008-01-17 10:52:30 +01001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Matthias Fuchs2108cd32008-01-17 10:52:30 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Matthias Fuchs2108cd32008-01-17 10:52:30 +010011
12COBJS = $(BOARD).o
13SOBJS = init.o
14
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Wolfgang Denkfe33e6e2010-11-21 20:55:42 +010019all: $(LIB) $(SOBJS)
20
21$(LIB): $(OBJS)
22 $(call cmd_link_o_target, $^)
Matthias Fuchs2108cd32008-01-17 10:52:30 +010023
Matthias Fuchs2108cd32008-01-17 10:52:30 +010024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################