2 # (C) Copyright 2000-2003
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # Copyright (C) 2012 Altera Corporation <www.altera.com>
7 # SPDX-License-Identifier: GPL-2.0+
11 include $(TOPDIR)/config.mk
13 LIB = $(obj)lib$(SOC).o
15 SOBJS := lowlevel_init.o
16 COBJS-y := misc.o timer.o reset_manager.o system_manager.o
17 COBJS-$(CONFIG_SPL_BUILD) += spl.o
20 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21 OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
23 all: $(obj).depend $(LIB)
26 $(call cmd_link_o_target, $(OBJS))
28 #########################################################################
30 # defines $(obj).depend target
31 include $(SRCTREE)/rules.mk
33 sinclude $(obj).depend
35 #########################################################################