blob: 97fc2b6ce4d112f1d6e92d008bc8907daec2dd01 [file] [log] [blame]
Heiko Schocher23cd0b12008-01-11 15:15:14 +01001#
Wolfgang Denk1fc6f1b2008-01-13 00:55:18 +01002# (C) Copyright 2003-2008
Heiko Schocher23cd0b12008-01-11 15:15:14 +01003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocher23cd0b12008-01-11 15:15:14 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Heiko Schocher23cd0b12008-01-11 15:15:14 +010011
Wolfgang Denk1fc6f1b2008-01-13 00:55:18 +010012COBJS := $(BOARD).o
Heiko Schocher23cd0b12008-01-11 15:15:14 +010013
Wolfgang Denk1fc6f1b2008-01-13 00:55:18 +010014SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS))
16SOBJS := $(addprefix $(obj),$(SOBJS))
Heiko Schocher23cd0b12008-01-11 15:15:14 +010017
Wolfgang Denk1fc6f1b2008-01-13 00:55:18 +010018$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Heiko Schocher23cd0b12008-01-11 15:15:14 +010020
Heiko Schocher23cd0b12008-01-11 15:15:14 +010021#########################################################################
22
Wolfgang Denk1fc6f1b2008-01-13 00:55:18 +010023# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
Heiko Schocher23cd0b12008-01-11 15:15:14 +010025
Wolfgang Denk1fc6f1b2008-01-13 00:55:18 +010026sinclude $(obj).depend
Heiko Schocher23cd0b12008-01-11 15:15:14 +010027
28#########################################################################