blob: c573be952c952638df8d6c8b89c002442eb80b7b [file] [log] [blame]
wdenk8b0bfc62005-04-03 23:11:38 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2001-2006
wdenk8b0bfc62005-04-03 23:11:38 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk8b0bfc62005-04-03 23:11:38 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenk8b0bfc62005-04-03 23:11:38 +000011
Marian Balakowiczf9328632006-09-01 19:49:50 +020012COBJS := $(BOARD).o
wdenk8b0bfc62005-04-03 23:11:38 +000013
Marian Balakowiczf9328632006-09-01 19:49:50 +020014SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS))
16SOBJS := $(addprefix $(obj),$(SOBJS))
17
18$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
wdenk8b0bfc62005-04-03 23:11:38 +000020
wdenk8b0bfc62005-04-03 23:11:38 +000021#########################################################################
22
Marian Balakowiczf9328632006-09-01 19:49:50 +020023# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
wdenk8b0bfc62005-04-03 23:11:38 +000025
Marian Balakowiczf9328632006-09-01 19:49:50 +020026sinclude $(obj).depend
wdenk8b0bfc62005-04-03 23:11:38 +000027
28#########################################################################