projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc/85xx: Removed support for MPC8540EVAL board
[oweals/u-boot.git]
/
board
/
purple
/
Makefile
diff --git
a/board/purple/Makefile
b/board/purple/Makefile
index b2f2fc0fd35dcc98098b1f935604dc89159a067a..10e566da5c2c6cc82a6a47f6a4c4915e203caae2 100644
(file)
--- a/
board/purple/Makefile
+++ b/
board/purple/Makefile
@@
-1,6
+1,6
@@
#
#
-# (C) Copyright 2003
+# (C) Copyright 2003
-2006
# 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
@@
-24,19
+24,23
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB =
lib$(BOARD).a
+LIB =
$(obj)lib$(BOARD).o
-
OBJS
= $(BOARD).o flash.o sconsole.o
+
COBJS
= $(BOARD).o flash.o sconsole.o
SOBJS = lowlevel_init.o
SOBJS = lowlevel_init.o
-$(LIB): .depend $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS)
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+ $(call cmd_link_o_target, $(OBJS))
#########################################################################
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################