Hans-Christian Egtvedt | 0eb5717 | 2008-08-06 14:42:13 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2001-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # Copyright (C) 2008 Atmel Corporation |
| 6 | # |
| 7 | # See file CREDITS for list of people who contributed to this project. |
| 8 | # |
| 9 | # This program is free software; you can redistribute it and/or modify it under |
| 10 | # the terms of the GNU General Public License as published by the Free Software |
| 11 | # Foundation; either version 2 of the License, or (at your option) any later |
| 12 | # version. |
| 13 | # |
| 14 | # This program is distributed in the hope that it will be useful, but WITHOUT |
| 15 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 16 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 17 | # details. |
| 18 | # |
| 19 | # You should have received a copy of the GNU General Public License along with |
| 20 | # this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
| 21 | # Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | |
| 23 | include $(TOPDIR)/config.mk |
| 24 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | LIB := $(obj)lib$(BOARD).o |
Hans-Christian Egtvedt | 0eb5717 | 2008-08-06 14:42:13 +0200 | [diff] [blame] | 26 | |
| 27 | COBJS := $(BOARD).o flash.o |
| 28 | |
| 29 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 30 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 31 | |
| 32 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 33 | $(call cmd_link_o_target, $(OBJS)) |
Hans-Christian Egtvedt | 0eb5717 | 2008-08-06 14:42:13 +0200 | [diff] [blame] | 34 | |
| 35 | ######################################################################### |
| 36 | |
| 37 | # defines $(obj).depend target |
| 38 | include $(SRCTREE)/rules.mk |
| 39 | |
| 40 | sinclude $(obj).depend |
| 41 | |
| 42 | ######################################################################### |