blob: 52c03198a74a2162e5327b871e5f7eb1393dd91d [file] [log] [blame]
wdenk012771d2002-03-08 21:31:05 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenk012771d2002-03-08 21:31:05 +00005# (C) Copyright 2002 Wolfgang Grandegger <wg@denx.de>
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
wdenk012771d2002-03-08 21:31:05 +00008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
wdenk012771d2002-03-08 21:31:05 +000013
Marian Balakowiczf9328632006-09-01 19:49:50 +020014COBJS := $(BOARD).o flash.o
wdenk012771d2002-03-08 21:31:05 +000015
Marian Balakowiczf9328632006-09-01 19:49:50 +020016SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
wdenk012771d2002-03-08 21:31:05 +000022
wdenk012771d2002-03-08 21:31:05 +000023#########################################################################
24
Marian Balakowiczf9328632006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
wdenk012771d2002-03-08 21:31:05 +000027
Marian Balakowiczf9328632006-09-01 19:49:50 +020028sinclude $(obj).depend
wdenk012771d2002-03-08 21:31:05 +000029
30#########################################################################