projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
punt unused clean/distclean targets
[platform/kernel/u-boot.git]
/
board
/
mpl
/
vcma9
/
Makefile
diff --git
a/board/mpl/vcma9/Makefile
b/board/mpl/vcma9/Makefile
index
f9b78f9
..
213741c
100644
(file)
--- a/
board/mpl/vcma9/Makefile
+++ b/
board/mpl/vcma9/Makefile
@@
-1,5
+1,5
@@
#
#
-# (C) Copyright 2000
, 2001, 2002
+# (C) Copyright 2000
-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
@@
-22,28
+22,29
@@
#
include $(TOPDIR)/config.mk
#
include $(TOPDIR)/config.mk
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
-LIB =
lib$(BOARD).a
+LIB =
$(obj)lib$(BOARD).o
-
OBJS := vcma9.o flash.o cmd_vcma9
.o
-
OBJS += ../common/common_util.o ../common/memtst
.o
+
COBJS := ../common/common_util
.o
+
COBJS += $(BOARD).o cmd_$(BOARD)
.o
-SOBJS :=
memsetup
.o
+SOBJS :=
lowlevel_init
.o
-$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $(OBJS) $(SOBJS)
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
-clean:
- rm -f $(SOBJS) $(OBJS)
-
-distclean: clean
- rm -f $(LIB) core *.bak .depend
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+ $(call cmd_link_o_target, $(OBJS) $(SOBJS))
#########################################################################
#########################################################################
-.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
- $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-
-include
.depend
+
sinclude $(obj)
.depend
#########################################################################
#########################################################################