blob: f43d3d2cd3519001204af7bde751d2767e218022 [file] [log] [blame]
Daniel Hellstrom207e6952008-03-28 10:00:33 +01001#
2# (C) Copyright 2003-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom207e6952008-03-28 10:00:33 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(CPU).o
Daniel Hellstrom207e6952008-03-28 10:00:33 +010011
12START = start.o
13SOBJS =
14COBJS = cpu_init.o serial.o cpu.o interrupts.o prom.o
15
16SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
18START := $(addprefix $(obj),$(START))
19
20all: $(obj).depend $(START) $(LIB)
21
22$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Daniel Hellstrom207e6952008-03-28 10:00:33 +010024
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
Daniel Hellstrom207e6952008-03-28 10:00:33 +010030sinclude $(obj).depend
31
32#########################################################################