blob: 41555abc34a00c8041262bf426cbdab35ae26e66 [file] [log] [blame]
wdenk591dda52002-11-18 00:14:45 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk4df0da52006-10-09 00:42:01 +02004#
wdenk591dda52002-11-18 00:14:45 +00005# (C) Copyright 2002
Albert ARIBAUD60fbc8d2011-08-04 18:45:45 +02006# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
wdenk591dda52002-11-18 00:14:45 +00007#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk591dda52002-11-18 00:14:45 +00009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(CPU).o
wdenk591dda52002-11-18 00:14:45 +000014
Gabe Black14f82462012-11-27 21:08:06 +000015START-y = start.o
Simon Glassbfb59802013-02-14 04:18:54 +000016START-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
Simon Glass64317162013-04-17 16:13:37 +000017COBJS = interrupts.o cpu.o
wdenk57b2d802003-06-27 21:31:46 +000018
Marian Balakowiczd62379d2006-09-01 19:49:50 +020019SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
Simon Glassbfb59802013-02-14 04:18:54 +000021START := $(addprefix $(obj),$(START-y))
wdenk591dda52002-11-18 00:14:45 +000022
Marian Balakowiczd62379d2006-09-01 19:49:50 +020023all: $(obj).depend $(START) $(LIB)
24
25$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
wdenk591dda52002-11-18 00:14:45 +000027
28#########################################################################
29
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
wdenk591dda52002-11-18 00:14:45 +000032
Marian Balakowiczd62379d2006-09-01 19:49:50 +020033sinclude $(obj).depend
wdenk591dda52002-11-18 00:14:45 +000034
35#########################################################################