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