Sandeep Paulraj | 6ab176d | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000, 2001, 2002 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net> |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Sandeep Paulraj | 6ab176d | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)lib$(BOARD).o |
Sandeep Paulraj | 6ab176d | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 13 | |
| 14 | COBJS := $(BOARD).o |
| 15 | SOBJS := |
| 16 | |
| 17 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 19 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 20 | |
| 21 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 22 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Sandeep Paulraj | 6ab176d | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 23 | |
Sandeep Paulraj | 6ab176d | 2009-10-10 12:00:47 -0400 | [diff] [blame] | 24 | ######################################################################### |
| 25 | # This is for $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |