blob: ed7370f9a6bc20c9f798362d03916c93ab43370a [file] [log] [blame]
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Wolfgang Denk0cbaf642005-09-25 00:53:22 +020011
Marian Balakowiczd62379d2006-09-01 19:49:50 +020012COBJS = $(BOARD).o flash.o
Shinya Kuribayashia8f8c672007-10-27 15:00:24 +090013SOBJS = lowlevel_init.o
Wolfgang Denk0cbaf642005-09-25 00:53:22 +020014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Wolfgang Denk0cbaf642005-09-25 00:53:22 +020021
22#########################################################################
23
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
Wolfgang Denk0cbaf642005-09-25 00:53:22 +020026
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027sinclude $(obj).depend
Wolfgang Denk0cbaf642005-09-25 00:53:22 +020028
29#########################################################################