summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-03-13 16:05:55 +0100
committerWolfgang Denk <wd@denx.de>2007-03-13 16:05:55 +0100
commita7090b993d3d4d2221ac3f33e6cb1d1b2ccc6bf0 (patch)
treeec30a2e3ab7d5246176877198184ff1e78191b68 /board
parentf6d3faae792be848567688df7ea3f803c25af5b2 (diff)
downloadu-boot-imx-a7090b993d3d4d2221ac3f33e6cb1d1b2ccc6bf0.zip
u-boot-imx-a7090b993d3d4d2221ac3f33e6cb1d1b2ccc6bf0.tar.gz
u-boot-imx-a7090b993d3d4d2221ac3f33e6cb1d1b2ccc6bf0.tar.bz2
Make SC3 board build with 'make O='; use 'addcons' consistently
(SC3 and Jupiter used to use 'addcon' instead). Signed-off-by: Wolfgang Denk wd@denx.de
Diffstat (limited to 'board')
-rw-r--r--board/sc3/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/board/sc3/Makefile b/board/sc3/Makefile
index 1b0b15f..4cc2b41 100644
--- a/board/sc3/Makefile
+++ b/board/sc3/Makefile
@@ -23,13 +23,17 @@
include $(TOPDIR)/config.mk
-LIB = lib$(BOARD).a
+LIB = $(obj)lib$(BOARD).a
-OBJS = $(BOARD).o sc3nand.o
+COBJS = $(BOARD).o sc3nand.o
SOBJS = init.o
+SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+SOBJS := $(addprefix $(obj),$(SOBJS))
+
$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $^
+ $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
clean:
rm -f $(SOBJS) $(OBJS)
@@ -39,9 +43,9 @@ distclean: clean
#########################################################################
-.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
#########################################################################