Bo Shen | 60f3dd3 | 2013-05-12 22:40:54 +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@popies.net> |
| 7 | # Lead Tech Design <www.leadtechdesign.com> |
| 8 | # |
| 9 | # (C) Copyright 2013 |
| 10 | # Bo Shen <voice.shen@atmel.com> |
| 11 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 12 | # SPDX-License-Identifier: GPL-2.0+ |
Bo Shen | 60f3dd3 | 2013-05-12 22:40:54 +0000 | [diff] [blame] | 13 | # |
| 14 | |
| 15 | include $(TOPDIR)/config.mk |
| 16 | |
| 17 | LIB = $(obj)lib$(BOARD).o |
| 18 | |
| 19 | COBJS-y += sama5d3xek.o |
| 20 | |
| 21 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 23 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 26 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |