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