blob: 07fa3f3a2f8c39d709760bc463c8dc07d8763c77 [file] [log] [blame]
wdenk76dd6c72004-06-09 14:47:54 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk4df0da52006-10-09 00:42:01 +02004#
wdenk76dd6c72004-06-09 14:47:54 +00005# Copyright (C) 2004 Arabella Software Ltd.
6# Yuli Barcohen <yuli@arabellasw.com>
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk76dd6c72004-06-09 14:47:54 +00009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenk76dd6c72004-06-09 14:47:54 +000014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015COBJS := $(BOARD).o
wdenk76dd6c72004-06-09 14:47:54 +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))
wdenk76dd6c72004-06-09 14:47:54 +000023
wdenk76dd6c72004-06-09 14:47:54 +000024#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenk76dd6c72004-06-09 14:47:54 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenk76dd6c72004-06-09 14:47:54 +000030
31#########################################################################