blob: 39fdbf86c91f758bbfd18843023ca8442c12b5d3 [file] [log] [blame]
wdenk074cff02004-02-24 00:16:43 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk074cff02004-02-24 00:16:43 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk074cff02004-02-24 00:16:43 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenk074cff02004-02-24 00:16:43 +000011
12START = start.o
Jean-Christophe PLAGNIOL-VILLARDb54384e2009-05-15 23:47:02 +020013
14COBJS += cache.o
15COBJS += cpu.o
16COBJS += timer.o
wdenk074cff02004-02-24 00:16:43 +000017
Marian Balakowiczf9328632006-09-01 19:49:50 +020018SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
20START := $(addprefix $(obj),$(START))
21
22all: $(obj).depend $(START) $(LIB)
wdenk074cff02004-02-24 00:16:43 +000023
24$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
wdenk074cff02004-02-24 00:16:43 +000026
27#########################################################################
28
Marian Balakowiczf9328632006-09-01 19:49:50 +020029# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
wdenk074cff02004-02-24 00:16:43 +000031
Marian Balakowiczf9328632006-09-01 19:49:50 +020032sinclude $(obj).depend
wdenk074cff02004-02-24 00:16:43 +000033
34#########################################################################