blob: d0931f8495397136d4ffa40b0805e1ee39e754a2 [file] [log] [blame]
wdenk12490652004-04-18 21:13:41 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk12490652004-04-18 21:13:41 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk12490652004-04-18 21:13:41 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
wdenk12490652004-04-18 21:13:41 +000011
12START = start.o
Michal Simekc4f5ef82007-05-07 19:25:08 +020013SOBJS = irq.o
Michal Simek922ce202007-03-11 13:48:24 +010014COBJS = cpu.o interrupts.o cache.o exception.o timer.o
wdenk12490652004-04-18 21:13:41 +000015
Marian Balakowiczd62379d2006-09-01 19:49:50 +020016SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
18START := $(addprefix $(obj),$(START))
19
20all: $(obj).depend $(START) $(LIB)
wdenk12490652004-04-18 21:13:41 +000021
22$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenk12490652004-04-18 21:13:41 +000024
25#########################################################################
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenk12490652004-04-18 21:13:41 +000029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenk12490652004-04-18 21:13:41 +000031
32#########################################################################