blob: fdcbb43034c761cdcd3ad846159efcf336a0d17d [file] [log] [blame]
wdenkcd0a9de2004-02-23 20:48:38 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkcd0a9de2004-02-23 20:48:38 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkcd0a9de2004-02-23 20:48:38 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenkcd0a9de2004-02-23 20:48:38 +000011
Marian Balakowiczf9328632006-09-01 19:49:50 +020012#COBJS = $(BOARD).o flash.o
13#COBJS = $(BOARD).o strataflash.o
14COBJS = $(BOARD).o
wdenkcd0a9de2004-02-23 20:48:38 +000015
16SOBJS = init.o
17
Marian Balakowiczf9328632006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
wdenkcd0a9de2004-02-23 20:48:38 +000021
22$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $^)
wdenkcd0a9de2004-02-23 20:48:38 +000024
wdenkcd0a9de2004-02-23 20:48:38 +000025#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenkcd0a9de2004-02-23 20:48:38 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenkcd0a9de2004-02-23 20:48:38 +000031
32#########################################################################