projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consolidate mpc824x linker scripts
[oweals/u-boot.git]
/
cpu
/
arm926ejs
/
Makefile
diff --git
a/cpu/arm926ejs/Makefile
b/cpu/arm926ejs/Makefile
index 060fd20c65efb250c0ca14833da8a1676a349134..0facce4703154856ba1784422c371286f576b410 100644
(file)
--- a/
cpu/arm926ejs/Makefile
+++ b/
cpu/arm926ejs/Makefile
@@
-1,5
+1,5
@@
#
#
-# (C) Copyright 2000-200
3
+# (C) Copyright 2000-200
6
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
@@
-23,21
+23,25
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB = lib$(CPU).a
+LIB =
$(obj)
lib$(CPU).a
START = start.o
START = start.o
-
OBJS
= interrupts.o cpu.o cpuinfo.o
+
COBJS
= interrupts.o cpu.o cpuinfo.o
-all: .depend $(START) $(LIB)
+SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
+START := $(addprefix $(obj),$(START))
+
+all: $(obj).depend $(START) $(LIB)
$(LIB): $(OBJS)
$(LIB): $(OBJS)
- $(AR)
crv
$@ $(OBJS)
+ $(AR)
$(ARFLAGS)
$@ $(OBJS)
#########################################################################
#########################################################################
-.depend: Makefile $(START:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################