]>
Commit | Line | Data |
---|---|---|
37e5708a ML |
1 | # |
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 | # | |
1a459660 | 9 | # SPDX-License-Identifier: GPL-2.0+ |
37e5708a ML |
10 | # |
11 | ||
12 | include $(TOPDIR)/config.mk | |
13 | ||
14 | LIB = $(obj)lib$(CPU).o | |
15 | ||
16 | START = start.o | |
17 | ||
18 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) | |
19 | OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) | |
20 | START := $(addprefix $(obj),$(START)) | |
21 | ||
22 | all: $(obj).depend $(START) $(LIB) | |
23 | ||
24 | $(LIB): $(OBJS) | |
25 | $(call cmd_link_o_target, $(OBJS)) | |
26 | ||
27 | ######################################################################### | |
28 | ||
29 | # defines $(obj).depend target | |
30 | include $(SRCTREE)/rules.mk | |
31 | ||
32 | sinclude $(obj).depend | |
33 | ||
34 | ######################################################################### |