blob: 6a5464d597b358879401bf95c271e8e32b173001 [file] [log] [blame]
wdenk935ecca2002-08-06 20:46:37 +00001#
Stefan Roesea471db02007-06-01 15:19:29 +02002# (C) Copyright 2002-2007
wdenk935ecca2002-08-06 20:46:37 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk935ecca2002-08-06 20:46:37 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenk935ecca2002-08-06 20:46:37 +000011
Marian Balakowiczf9328632006-09-01 19:49:50 +020012COBJS = $(BOARD).o flash.o
wdenk935ecca2002-08-06 20:46:37 +000013SOBJS = init.o
14
Marian Balakowiczf9328632006-09-01 19:49:50 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Wolfgang Denkee8028b2010-11-21 20:55:42 +010019all: $(LIB) $(SOBJS)
20
21$(LIB): $(OBJS)
22 $(call cmd_link_o_target, $^)
wdenk935ecca2002-08-06 20:46:37 +000023
wdenk935ecca2002-08-06 20:46:37 +000024#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenk935ecca2002-08-06 20:46:37 +000028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenk935ecca2002-08-06 20:46:37 +000030
31#########################################################################