blob: 3b48ac9b2b275f9a6059a5f4e4c06bfedeb843ba [file] [log] [blame]
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00001#
2# (C) Copyright 2000-2003
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2012 Altera Corporation <www.altera.com>
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00008#
9
10
11include $(TOPDIR)/config.mk
12
13LIB = $(obj)lib$(SOC).o
14
15SOBJS := lowlevel_init.o
16COBJS-y := misc.o timer.o
17COBJS-$(CONFIG_SPL_BUILD) += spl.o
18
19COBJS := $(COBJS-y)
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
22
23all: $(obj).depend $(LIB)
24
25$(LIB): $(OBJS)
26 $(call cmd_link_o_target, $(OBJS))
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################