blob: 53179131c24de2d60ae41f88963a75c69014423f [file] [log] [blame]
Daniel Gorsulowski44d80252010-01-25 10:50:41 +01001#
2# (C) Copyright 2003-2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2008
Stelian Popc9e798d2011-11-01 00:00:39 +01006# Stelian Pop <stelian@popies.net>
Daniel Gorsulowski44d80252010-01-25 10:50:41 +01007# Lead Tech Design <www.leadtechdesign.com>
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Daniel Gorsulowski44d80252010-01-25 10:50:41 +010010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Daniel Gorsulowski44d80252010-01-25 10:50:41 +010015
16COBJS-y += $(BOARD).o
17COBJS-$(CONFIG_HAS_DATAFLASH) += partition.o
18
19SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS-y))
21SOBJS := $(addprefix $(obj),$(SOBJS))
22
23$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Daniel Gorsulowski44d80252010-01-25 10:50:41 +010025
Daniel Gorsulowski44d80252010-01-25 10:50:41 +010026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################