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 d1b00563bf7d32f590df5efd535c5a16aad54ec3..10e566da5c2c6cc82a6a47f6a4c4915e203caae2 100644
(file)
--- a/
board/purple/Makefile
+++ b/
board/purple/Makefile
@@
-1,5
+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
@@
-23,19
+24,23
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).o
+
+COBJS = $(BOARD).o flash.o sconsole.o
+SOBJS = lowlevel_init.o
-OBJS = $(BOARD).o flash.o sconsole.o
-SOBJS = memsetup.o
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
-$(LIB): .depend $(OBJS) $(SOBJS)
- $(
AR) crv $@ $^
+$(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
#########################################################################
#########################################################################