blob: f78fe13d3552d14020ff657002f8b2e9d1b46621 [file] [log] [blame]
Wolfgang Denk52568c32009-05-16 10:47:46 +02001#
2# (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk52568c32009-05-16 10:47:46 +02005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Wolfgang Denk52568c32009-05-16 10:47:46 +020010
11COBJS-y := $(BOARD).o
12
13COBJS := $(COBJS-y)
14SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS))
16SOBJS := $(addprefix $(obj),$(SOBJS))
17
18$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk52568c32009-05-16 10:47:46 +020020
Wolfgang Denk52568c32009-05-16 10:47:46 +020021#########################################################################
22
23# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################