blob: 4ff6b2d995ea68d3172a276dbd362698de66e3d6 [file] [log] [blame]
wdenk21136db2003-07-16 21:53:01 +00001
2#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2003-2006
wdenk21136db2003-07-16 21:53:01 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
wdenk21136db2003-07-16 21:53:01 +00007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
wdenk21136db2003-07-16 21:53:01 +000012
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013COBJS := $(BOARD).o flash.o
wdenk21136db2003-07-16 21:53:01 +000014
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)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
wdenk21136db2003-07-16 21:53:01 +000021
wdenk21136db2003-07-16 21:53:01 +000022#########################################################################
23
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
wdenk21136db2003-07-16 21:53:01 +000026
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027sinclude $(obj).depend
wdenk21136db2003-07-16 21:53:01 +000028
29#########################################################################