blob: a9490005733da83f17581f9561e62915453c0a12 [file] [log] [blame]
Stelian Pop0176d432008-03-26 18:52:33 +01001#
2# (C) Copyright 2003-2008
Stelian Pop567fb852008-05-08 22:52:09 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Stelian Pop0176d432008-03-26 18:52:33 +01004#
Stelian Popd48abea2008-05-08 20:52:12 +02005# (C) Copyright 2008
Stelian Popc9e798d2011-11-01 00:00:39 +01006# Stelian Pop <stelian@popies.net>
Stelian Popd48abea2008-05-08 20:52:12 +02007# Lead Tech Design <www.leadtechdesign.com>
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Stelian Pop0176d432008-03-26 18:52:33 +010010#
11
12include $(TOPDIR)/config.mk
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Stelian Pop0176d432008-03-26 18:52:33 +010015
Jean-Christophe PLAGNIOL-VILLARD4e03dde2008-03-31 21:31:04 +020016COBJS-y += at91sam9260ek.o
17COBJS-y += led.o
Jean-Christophe PLAGNIOL-VILLARD16396602009-03-21 21:08:01 +010018COBJS-$(CONFIG_HAS_DATAFLASH) += partition.o
Stelian Pop0176d432008-03-26 18:52:33 +010019
Jean-Christophe PLAGNIOL-VILLARD4e03dde2008-03-31 21:31:04 +020020SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS-y))
Stelian Pop0176d432008-03-26 18:52:33 +010022SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Stelian Pop0176d432008-03-26 18:52:33 +010026
Stelian Pop0176d432008-03-26 18:52:33 +010027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################