Hugo Villeneuve | 4f3f671 | 2008-05-21 13:58:41 -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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Hugo Villeneuve | 4f3f671 | 2008-05-21 13:58:41 -0400 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)lib$(BOARD).o |
Hugo Villeneuve | 4f3f671 | 2008-05-21 13:58:41 -0400 | [diff] [blame] | 13 | |
Hugo Villeneuve | 20eca7e | 2008-07-08 11:02:05 -0400 | [diff] [blame] | 14 | COBJS := $(BOARD).o |
Hugo Villeneuve | 4f3f671 | 2008-05-21 13:58:41 -0400 | [diff] [blame] | 15 | SOBJS := board_init.o |
| 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 | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 22 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Hugo Villeneuve | 4f3f671 | 2008-05-21 13:58:41 -0400 | [diff] [blame] | 23 | |
Hugo Villeneuve | 4f3f671 | 2008-05-21 13:58:41 -0400 | [diff] [blame] | 24 | ######################################################################### |
| 25 | # This is for $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |