blob: 07fa3f3a2f8c39d709760bc463c8dc07d8763c77 [file] [log] [blame]
Wolfgang Denk84c960c2006-03-12 23:17:31 +01001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk84c960c2006-03-12 23:17:31 +01005# Copyright (C) 2004 Arabella Software Ltd.
6# Yuli Barcohen <yuli@arabellasw.com>
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk84c960c2006-03-12 23:17:31 +01009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Wolfgang Denk84c960c2006-03-12 23:17:31 +010014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015COBJS := $(BOARD).o
Wolfgang Denk84c960c2006-03-12 23:17:31 +010016
Marian Balakowiczf9328632006-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 Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk84c960c2006-03-12 23:17:31 +010023
Wolfgang Denk84c960c2006-03-12 23:17:31 +010024#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Wolfgang Denk84c960c2006-03-12 23:17:31 +010028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
Wolfgang Denk84c960c2006-03-12 23:17:31 +010030
31#########################################################################