X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=lib_blackfin%2FMakefile;h=36171048acb35815fa5454c5f47e4fa72e518515;hb=756f5dacda3810b094b94bcceffd3ce6c7ff9a28;hp=bc280d01f86d6e3ffa5842aa9298cabfcfe0c3fb;hpb=a3f0169880a44ac06de5177e7926d7c732368663;p=oweals%2Fu-boot.git diff --git a/lib_blackfin/Makefile b/lib_blackfin/Makefile index bc280d01f8..36171048ac 100644 --- a/lib_blackfin/Makefile +++ b/lib_blackfin/Makefile @@ -1,9 +1,9 @@ # # U-boot Makefile # -# Copyright (c) 2005 blackfin.uclinux.org +# Copyright (c) 2005-2008 Analog Devices Inc. # -# (C) Copyright 2000-2004 +# (C) Copyright 2000-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # # See file CREDITS for list of people who contributed to this @@ -21,27 +21,40 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, -# MA 02111-1307 USA +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA # include $(TOPDIR)/config.mk -LIB = lib$(ARCH).a +CFLAGS += -DBFIN_BOARD_NAME='"$(BOARD)"' -AOBJS = +LIB = $(obj)lib$(ARCH).a -COBJS = board.o bf533_linux.o bf533_string.o cache.o muldi3.o -OBJS = $(AOBJS) $(COBJS) +SOBJS-y += memcmp.o +SOBJS-y += memcpy.o +SOBJS-y += memmove.o +SOBJS-y += memset.o -$(LIB): .depend $(OBJS) - $(AR) crv $@ $(OBJS) +COBJS-y += board.o +COBJS-y += bootm.o +COBJS-y += cache.o +COBJS-y += muldi3.o +COBJS-y += post.o +COBJS-y += string.o +COBJS-y += tests.o + +SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) + +$(LIB): $(obj).depend $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) ######################################################################### -.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c) - $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@ +# defines $(obj).depend target +include $(SRCTREE)/rules.mk -sinclude .depend +sinclude $(obj).depend #########################################################################