Mark Jackson | 13b50fe | 2008-07-30 13:07:27 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2005-2006 Atmel Corporation |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Mark Jackson | 13b50fe | 2008-07-30 13:07:27 +0100 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB := $(obj)lib$(BOARD).o |
Mark Jackson | 13b50fe | 2008-07-30 13:07:27 +0100 | [diff] [blame] | 9 | |
| 10 | COBJS := $(BOARD).o |
| 11 | |
| 12 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 13 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) |
| 14 | |
| 15 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | $(call cmd_link_o_target, $(OBJS)) |
Mark Jackson | 13b50fe | 2008-07-30 13:07:27 +0100 | [diff] [blame] | 17 | |
| 18 | ######################################################################### |
| 19 | |
| 20 | # defines $(obj).depend target |
| 21 | include $(SRCTREE)/rules.mk |
| 22 | |
| 23 | sinclude $(obj).depend |
| 24 | |
| 25 | ######################################################################### |