blob: b2009e6eb15a34cd47815438173e935941cad36d [file] [log] [blame]
wdenka7316b02005-05-12 22:48:09 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenka7316b02005-05-12 22:48:09 +00005# (C) Copyright 2005
6# Heiko Schocher, DENX Software Engineering, <hs@denx.de>
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenka7316b02005-05-12 22:48:09 +00009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenka7316b02005-05-12 22:48:09 +000014
Wolfgang Denk6ec825a2010-11-24 00:00:16 +010015COBJS = $(BOARD).o
wdenka7316b02005-05-12 22:48:09 +000016
Marian Balakowiczd62379d2006-09-01 19:49:50 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenka7316b02005-05-12 22:48:09 +000023
24#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenka7316b02005-05-12 22:48:09 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenka7316b02005-05-12 22:48:09 +000030
31#########################################################################