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