]>
Commit | Line | Data |
---|---|---|
c609719b | 1 | # |
f9328639 | 2 | # (C) Copyright 2000-2006 |
c609719b WD |
3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
4 | # | |
1a459660 | 5 | # SPDX-License-Identifier: GPL-2.0+ |
c609719b WD |
6 | # |
7 | ||
8 | include $(TOPDIR)/config.mk | |
9 | ||
6d8962e8 | 10 | LIB = $(obj)lib$(CPU).o |
c609719b WD |
11 | |
12 | START = start.o | |
b54384e3 JCPV |
13 | |
14 | COBJS += cpu.o | |
15 | COBJS += timer.o | |
c609719b | 16 | |
f9328639 MB |
17 | SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) |
18 | OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) | |
19 | START := $(addprefix $(obj),$(START)) | |
20 | ||
21 | all: $(obj).depend $(START) $(LIB) | |
c609719b WD |
22 | |
23 | $(LIB): $(OBJS) | |
6d8962e8 | 24 | $(call cmd_link_o_target, $(OBJS)) |
c609719b WD |
25 | |
26 | ######################################################################### | |
27 | ||
f9328639 MB |
28 | # defines $(obj).depend target |
29 | include $(SRCTREE)/rules.mk | |
c609719b | 30 | |
f9328639 | 31 | sinclude $(obj).depend |
c609719b WD |
32 | |
33 | ######################################################################### |