Mark Jackson | 1744f5b | 2008-07-30 13:07:27 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2005-2006 Atmel Corporation |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Mark Jackson | 1744f5b | 2008-07-30 13:07:27 +0100 | [diff] [blame] | 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 8 | LIB := $(obj)lib$(BOARD).o |
Mark Jackson | 1744f5b | 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 | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | $(call cmd_link_o_target, $(OBJS)) |
Mark Jackson | 1744f5b | 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 | ######################################################################### |