blob: cc516f744b9c8339a5ca46cba229e387d9a3baee [file] [log] [blame]
wdenkf8062712005-01-09 23:16:25 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkf8062712005-01-09 23:16:25 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkf8062712005-01-09 23:16:25 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenkf8062712005-01-09 23:16:25 +000011
12START = start.o
Sascha Hauer7a19cea2008-03-26 20:40:36 +010013COBJS = cpu.o
wdenkf8062712005-01-09 23:16:25 +000014
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))
18
19all: $(obj).depend $(START) $(LIB)
wdenkf8062712005-01-09 23:16:25 +000020
21$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenkf8062712005-01-09 23:16:25 +000023
24#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenkf8062712005-01-09 23:16:25 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenkf8062712005-01-09 23:16:25 +000030
31#########################################################################