blob: de9b4a72cdbc0919019f6deb9cabfca70810ed08 [file] [log] [blame]
wdenk14874972002-02-17 23:22:29 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenk14874972002-02-17 23:22:29 +00005# (C) Copyright 2001
6# Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
7#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk14874972002-02-17 23:22:29 +00009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
wdenk14874972002-02-17 23:22:29 +000014
15START = start.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020016SOBJS = cache.o kgdb.o io.o
17COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o
wdenk14874972002-02-17 23:22:29 +000018
Marian Balakowiczd62379d2006-09-01 19:49:50 +020019SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
21START := $(addprefix $(obj),$(START))
22
23all: $(obj).depend $(START) $(LIB)
wdenk14874972002-02-17 23:22:29 +000024
25$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
wdenk14874972002-02-17 23:22:29 +000027
28#########################################################################
29
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
wdenk14874972002-02-17 23:22:29 +000032
Marian Balakowiczd62379d2006-09-01 19:49:50 +020033sinclude $(obj).depend
wdenk14874972002-02-17 23:22:29 +000034
35#########################################################################