Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003-2008 |
Stelian Pop | f9e848b | 2008-05-08 22:52:09 +0200 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 4 | # |
Stelian Pop | 9774582 | 2008-05-08 20:52:12 +0200 | [diff] [blame] | 5 | # (C) Copyright 2008 |
Stelian Pop | 5ee0c7f | 2011-11-01 00:00:39 +0100 | [diff] [blame] | 6 | # Stelian Pop <stelian@popies.net> |
Stelian Pop | 9774582 | 2008-05-08 20:52:12 +0200 | [diff] [blame] | 7 | # Lead Tech Design <www.leadtechdesign.com> |
| 8 | # |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 9 | # See file CREDITS for list of people who contributed to this |
| 10 | # project. |
| 11 | # |
| 12 | # This program is free software; you can redistribute it and/or |
| 13 | # modify it under the terms of the GNU General Public License as |
| 14 | # published by the Free Software Foundation; either version 2 of |
| 15 | # the License, or (at your option) any later version. |
| 16 | # |
| 17 | # This program is distributed in the hope that it will be useful, |
| 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | # GNU General Public License for more details. |
| 21 | # |
| 22 | # You should have received a copy of the GNU General Public License |
| 23 | # along with this program; if not, write to the Free Software |
| 24 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 25 | # MA 02111-1307 USA |
| 26 | # |
| 27 | |
| 28 | include $(TOPDIR)/config.mk |
| 29 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 30 | LIB = $(obj)lib$(BOARD).o |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 31 | |
Jean-Christophe PLAGNIOL-VILLARD | fbbcc39 | 2008-03-31 21:31:04 +0200 | [diff] [blame] | 32 | COBJS-y += at91sam9260ek.o |
| 33 | COBJS-y += led.o |
Jean-Christophe PLAGNIOL-VILLARD | 07baac9 | 2009-03-21 21:08:01 +0100 | [diff] [blame] | 34 | COBJS-$(CONFIG_HAS_DATAFLASH) += partition.o |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 35 | |
Jean-Christophe PLAGNIOL-VILLARD | fbbcc39 | 2008-03-31 21:31:04 +0200 | [diff] [blame] | 36 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 37 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 38 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 39 | |
| 40 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 41 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 42 | |
Stelian Pop | 7837993 | 2008-03-26 18:52:33 +0100 | [diff] [blame] | 43 | ######################################################################### |
| 44 | |
| 45 | # defines $(obj).depend target |
| 46 | include $(SRCTREE)/rules.mk |
| 47 | |
| 48 | sinclude $(obj).depend |
| 49 | |
| 50 | ######################################################################### |