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