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