blob: 860a8a658fa0c762324188dc01b6bf4f887ac04e [file] [log] [blame]
Magnus Lilja8449f282009-07-01 01:07:55 +02001#
2# (C) Copyright 2008 Magnus Lilja <lilja.magnus@gmail.com>
3#
4# (C) Copyright 2000-2006
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Magnus Lilja8449f282009-07-01 01:07:55 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Magnus Lilja8449f282009-07-01 01:07:55 +020013
Benoît Thébaudeauda962b72013-04-11 09:35:51 +000014ifdef CONFIG_SPL_BUILD
15SOBJS := lowlevel_init.o
16endif
Magnus Lilja8449f282009-07-01 01:07:55 +020017COBJS := mx31pdk.o
18
19SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS))
21SOBJS := $(addprefix $(obj),$(SOBJS))
22
23$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Magnus Lilja8449f282009-07-01 01:07:55 +020025
Magnus Lilja8449f282009-07-01 01:07:55 +020026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################