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