blob: 5524e4f5b10f1a643126e36b6a42a4c23ed22055 [file] [log] [blame]
Stefan Roese181e06b2012-05-30 22:59:08 +00001#
2# (C) Copyright 2000-2004
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese181e06b2012-05-30 22:59:08 +00006#
7
8include $(TOPDIR)/config.mk
9
10LIB = $(obj)lib$(BOARD).o
11
12ifndef CONFIG_SPL_BUILD
13COBJS := fpga.o $(BOARD).o
14endif
15SOBJS :=
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
22 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
23
24#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################