blob: c84b7b975e6ddfa32d09d851cc475b456a2220c0 [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkc6097192002-11-03 00:24:07 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkc6097192002-11-03 00:24:07 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenkc6097192002-11-03 00:24:07 +000011
12START = start.o
Jean-Christophe PLAGNIOL-VILLARD8c9fc002009-05-15 23:47:02 +020013
14COBJS += cpu.o
15COBJS += timer.o
wdenkc6097192002-11-03 00:24:07 +000016
Marian Balakowiczd62379d2006-09-01 19:49:50 +020017SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19START := $(addprefix $(obj),$(START))
20
21all: $(obj).depend $(START) $(LIB)
wdenkc6097192002-11-03 00:24:07 +000022
23$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
wdenkc6097192002-11-03 00:24:07 +000025
26#########################################################################
27
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
wdenkc6097192002-11-03 00:24:07 +000030
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031sinclude $(obj).depend
wdenkc6097192002-11-03 00:24:07 +000032
33#########################################################################