Haavard Skinnemoen | 6b44394 | 2007-04-14 17:11:49 +0200 | [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+ |
Haavard Skinnemoen | 6b44394 | 2007-04-14 17:11:49 +0200 | [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 |
Haavard Skinnemoen | 6b44394 | 2007-04-14 17:11:49 +0200 | [diff] [blame] | 9 | |
Ben Warren | c8c845c | 2008-07-05 00:08:48 -0700 | [diff] [blame] | 10 | COBJS := $(BOARD).o |
Haavard Skinnemoen | 6b44394 | 2007-04-14 17:11:49 +0200 | [diff] [blame] | 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)) |
Haavard Skinnemoen | 6b44394 | 2007-04-14 17:11:49 +0200 | [diff] [blame] | 17 | |
| 18 | ######################################################################### |
| 19 | |
| 20 | # defines $(obj).depend target |
| 21 | include $(SRCTREE)/rules.mk |
| 22 | |
| 23 | sinclude $(obj).depend |
| 24 | |
| 25 | ######################################################################### |