diff options
author | Aubrey Li <aubrey.adi@gmail.com> | 2007-03-20 22:58:25 +0800 |
---|---|---|
committer | Aubrey Li <aubrey.adi@gmail.com> | 2007-03-20 22:58:25 +0800 |
commit | b2777c087b5a564e9209988873da4ec749f85aad (patch) | |
tree | 91da9fb57d35f23b643066bb3a5fd03c01202aed /board/sc3/Makefile | |
parent | 654589873dbafcf104dff133ce0d03a4506e9cc3 (diff) | |
parent | 87e0662762b78ed7731f14add60ba0edb0479252 (diff) | |
download | u-boot-imx-b2777c087b5a564e9209988873da4ec749f85aad.zip u-boot-imx-b2777c087b5a564e9209988873da4ec749f85aad.tar.gz u-boot-imx-b2777c087b5a564e9209988873da4ec749f85aad.tar.bz2 |
Merge http://www.denx.de/git/u-boot
Diffstat (limited to 'board/sc3/Makefile')
-rw-r--r-- | board/sc3/Makefile | 16 |
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 ######################################################################### |