blob: b519477c112e665129dab02e22fe50ed490a6f01 [file] [log] [blame]
Wolfgang Denkd86ec382006-03-13 12:37:35 +01001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Wolfgang Denkd86ec382006-03-13 12:37:35 +01003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkd86ec382006-03-13 12:37:35 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(SOC).o
Wolfgang Denkd86ec382006-03-13 12:37:35 +010011
Roman Mashakd71fec02008-10-22 16:00:26 -040012COBJS = timer.o cpuinfo.o
Wolfgang Denkd86ec382006-03-13 12:37:35 +010013SOBJS = reset.o
14
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
17START := $(addprefix $(obj),$(START))
Wolfgang Denkd86ec382006-03-13 12:37:35 +010018
Marian Balakowiczd62379d2006-09-01 19:49:50 +020019all: $(obj).depend $(LIB)
20
21$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denkd86ec382006-03-13 12:37:35 +010023
24#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Wolfgang Denkd86ec382006-03-13 12:37:35 +010028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
Wolfgang Denkd86ec382006-03-13 12:37:35 +010030
31#########################################################################