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