projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-arm
[oweals/u-boot.git]
/
cpu
/
arm925t
/
Makefile
diff --git
a/cpu/arm925t/Makefile
b/cpu/arm925t/Makefile
index a1db818a8ff8e866e33f05cc201a41f7361c5f81..0d4912cd72803fb86008e2942d21fd6ae0889a49 100644
(file)
--- a/
cpu/arm925t/Makefile
+++ b/
cpu/arm925t/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 omap925.o
+
COBJS
= interrupts.o cpu.o omap925.o
-all: .depend $(START) $(LIB)
+SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
+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
#########################################################################
#########################################################################