Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003-2008 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2008 |
Stelian Pop | 5ee0c7f | 2011-11-01 00:00:39 +0100 | [diff] [blame] | 6 | # Stelian Pop <stelian@popies.net |
Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 7 | # 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 13 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 14 | # |
| 15 | |
| 16 | include $(TOPDIR)/config.mk |
| 17 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 18 | LIB = $(obj)lib$(BOARD).o |
Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 19 | |
| 20 | COBJS-y += $(BOARD).o |
| 21 | COBJS-y += led.o |
| 22 | |
| 23 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 24 | OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS)) |
| 25 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 26 | |
| 27 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 28 | $(call cmd_link_o_target, $(OBJS)) |
Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 29 | |
Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 30 | ######################################################################### |
| 31 | |
| 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |
| 36 | |
| 37 | ######################################################################### |