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