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