blob: b84e6624bfffb34e930ccace10589c3d291b6fe2 [file] [log] [blame]
stroese27a0ddc2004-12-16 18:20:14 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
stroese27a0ddc2004-12-16 18:20:14 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
stroese27a0ddc2004-12-16 18:20:14 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
stroese27a0ddc2004-12-16 18:20:14 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
stroese27a0ddc2004-12-16 18:20:14 +000014
Matthias Fuchs814f5372008-04-21 14:42:11 +020015COBJS = $(BOARD).o \
16 ../common/misc.o \
17 ../common/auto_update.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020018
19SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS))
21SOBJS := $(addprefix $(obj),$(SOBJS))
stroese27a0ddc2004-12-16 18:20:14 +000022
23$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $^)
stroese27a0ddc2004-12-16 18:20:14 +000025
stroese27a0ddc2004-12-16 18:20:14 +000026#########################################################################
27
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
stroese27a0ddc2004-12-16 18:20:14 +000030
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031sinclude $(obj).depend
stroese27a0ddc2004-12-16 18:20:14 +000032
33#########################################################################