git.openpandora.org
/
pandora-u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MAINTAINERS: delete stale entry for EOL Wind River boards
[pandora-u-boot.git]
/
board
/
sbc8240
/
Makefile
diff --git
a/board/sbc8240/Makefile
b/board/sbc8240/Makefile
index
7a2014d
..
12e4aa6
100644
(file)
--- a/
board/sbc8240/Makefile
+++ b/
board/sbc8240/Makefile
@@
-1,5
+1,5
@@
#
#
-# (C) Copyright 2001
+# (C) Copyright 2001
-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,18
+23,22
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB =
lib$(BOARD).a
+LIB =
$(obj)lib$(BOARD).o
-
OBJS
= $(BOARD).o flash.o
+
COBJS
= $(BOARD).o flash.o
-$(LIB): .depend $(OBJS)
- $(AR) crv $@ $(OBJS)
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
+$(LIB): $(obj).depend $(OBJS)
+ $(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
#########################################################################
#########################################################################