Wu, Josh | 9e33690 | 2013-04-16 23:42:44 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003-2008 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2008 |
| 6 | # Stelian Pop <stelian.pop@leadtechdesign.com> |
| 7 | # Lead Tech Design <www.leadtechdesign.com> |
| 8 | # |
| 9 | # (C) Copyright 2013 |
| 10 | # Josh Wu <josh.wu@atmel.com> |
| 11 | # Atmel corporation <www.atmel.com> |
| 12 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 13 | # SPDX-License-Identifier: GPL-2.0+ |
Wu, Josh | 9e33690 | 2013-04-16 23:42:44 +0000 | [diff] [blame] | 14 | # |
| 15 | |
| 16 | include $(TOPDIR)/config.mk |
| 17 | |
| 18 | LIB = $(obj)lib$(BOARD).o |
| 19 | |
| 20 | COBJS-y += at91sam9n12ek.o |
| 21 | |
| 22 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 24 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 27 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 28 | |
| 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################### |