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