]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/bf533-ezkit/Makefile
[Blackfin]PATCH-1/2]: Remove obsolete blackfin port and add bf533 platform support
[people/ms/u-boot.git] / board / bf533-ezkit / Makefile
similarity index 73%
rename from board/ezkit533/Makefile
rename to board/bf533-ezkit/Makefile
index 4f3c22321a844b69ceeec10477d527112fda3607..677668e07b74f82b563cd738a86627a48396534b 100644 (file)
@@ -1,9 +1,9 @@
 #
 # U-boot - Makefile
 #
-# Copyright (c) 2005 blackfin.uclinux.org
+# Copyright (c) 2005-2007 Analog Device Inc.
 #
-# (C) Copyright 2000-2006
+# (C) Copyright 2000-2004
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 #
 # See file CREDITS for list of people who contributed to this
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = lib$(BOARD).a
 
-COBJS  = $(BOARD).o flash.o ezkit533.o
+OBJS   = $(BOARD).o flash.o
 
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
+$(LIB):        .depend $(OBJS) u-boot.lds
+       $(AR) cr $@ $(OBJS)
 
-$(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+u-boot.lds: u-boot.lds.S
+       $(CPP) $(CPPFLAGS) -P -Ubfin $^ > $@.tmp
+       mv -f $@.tmp $@
 
 #########################################################################
 
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
+.depend:       Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
+               $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
 
-sinclude $(obj).depend
+sinclude .depend
 
 #########################################################################