Christian Riesch | 9a3aae2 | 2012-02-02 00:44:42 +0000 | [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+ |
Christian Riesch | 9a3aae2 | 2012-02-02 00:44:42 +0000 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)lib$(BOARD).o |
| 13 | |
| 14 | COBJS := $(BOARD).o |
| 15 | |
| 16 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 17 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 18 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 19 | |
| 20 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 21 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 22 | |
| 23 | ######################################################################### |
| 24 | # This is for $(obj).depend target |
| 25 | include $(SRCTREE)/rules.mk |
| 26 | |
| 27 | sinclude $(obj).depend |
| 28 | |
| 29 | ######################################################################### |