blob: 9024919913d46e55efdd416acd603b096dc9ab30 [file] [log] [blame]
wdenk5da627a2003-10-09 20:09:04 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
wdenk5da627a2003-10-09 20:09:04 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk5da627a2003-10-09 20:09:04 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenk5da627a2003-10-09 20:09:04 +000011
Daniel Schwierzeck17a990b2011-02-03 14:17:10 +010012COBJS = $(BOARD).o
wdenk400558b2005-04-02 23:52:25 +000013SOBJS = lowlevel_init.o
wdenk5da627a2003-10-09 20:09:04 +000014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenk5da627a2003-10-09 20:09:04 +000021
22#########################################################################
23
Marian Balakowiczf9328632006-09-01 19:49:50 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
wdenk5da627a2003-10-09 20:09:04 +000026
Marian Balakowiczf9328632006-09-01 19:49:50 +020027sinclude $(obj).depend
wdenk5da627a2003-10-09 20:09:04 +000028
29#########################################################################