blob: bd89fe1f49f1d0597ad7dc05436bb2bf2650f6a5 [file] [log] [blame]
Tom Rix799a05b2009-09-27 11:10:09 -05001#
2# (C) Copyright 2003-2008
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2008
Stelian Pop5ee0c7f2011-11-01 00:00:39 +01006# Stelian Pop <stelian@popies.net
Tom Rix799a05b2009-09-27 11:10:09 -05007# Lead Tech Design <www.leadtechdesign.com>
8# Ilko Iliev <www.ronetix.at>
9#
10# (C) Copyright 2009
11# Eric Benard <eric@eukrea.com>
12#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020013# SPDX-License-Identifier: GPL-2.0+
Tom Rix799a05b2009-09-27 11:10:09 -050014#
15
16include $(TOPDIR)/config.mk
17
Sebastien Carliera8d426f2010-11-05 15:48:07 +010018LIB = $(obj)lib$(BOARD).o
Tom Rix799a05b2009-09-27 11:10:09 -050019
20COBJS-y += $(BOARD).o
21COBJS-y += led.o
22
23SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
24OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS))
25SOBJS := $(addprefix $(obj),$(SOBJS))
26
27$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS))
Tom Rix799a05b2009-09-27 11:10:09 -050029
Tom Rix799a05b2009-09-27 11:10:09 -050030#########################################################################
31
32# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
34
35sinclude $(obj).depend
36
37#########################################################################