blob: b8e0d72739eecb15ea88a0e9d67b81ff383d62c5 [file] [log] [blame]
Macpaul Lin37e57082011-10-19 20:41:05 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2011 Andes Technology Corporation
6# Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
7# Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Macpaul Lin37e57082011-10-19 20:41:05 +000010#
11
12include $(TOPDIR)/config.mk
13
14LIB = $(obj)lib$(CPU).o
15
16START = start.o
17
ken kuo951344b2013-07-25 02:24:54 +080018SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS-y))
Macpaul Lin37e57082011-10-19 20:41:05 +000020START := $(addprefix $(obj),$(START))
21
22all: $(obj).depend $(START) $(LIB)
23
24$(LIB): $(OBJS)
25 $(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################