blob: cc516f744b9c8339a5ca46cba229e387d9a3baee [file] [log] [blame]
Wolfgang Denkadf20a12005-09-25 01:48:28 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Wolfgang Denkadf20a12005-09-25 01:48:28 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkadf20a12005-09-25 01:48:28 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
Wolfgang Denkadf20a12005-09-25 01:48:28 +020011
12START = start.o
Andreas Engel2d4b2532008-01-14 09:06:52 +000013COBJS = cpu.o
Wolfgang Denkadf20a12005-09-25 01:48:28 +020014
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)
Wolfgang Denkadf20a12005-09-25 01:48:28 +020020
21$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denkadf20a12005-09-25 01:48:28 +020023
24#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Wolfgang Denkadf20a12005-09-25 01:48:28 +020028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
Wolfgang Denkadf20a12005-09-25 01:48:28 +020030
31#########################################################################