X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fsorcery%2FMakefile;h=e1752e3fa3ecd5551c7cc3aa2857d0e9baf6b7d9;hb=714afa64f3d81a660715b61785f1f3a3b986f852;hp=3d6d673792a11735b3bd8fd378bcde2662290f09;hpb=12b43d515c62682fcf7b578f31920a2be49142fe;p=u-boot diff --git a/board/sorcery/Makefile b/board/sorcery/Makefile index 3d6d673792..e1752e3fa3 100644 --- a/board/sorcery/Makefile +++ b/board/sorcery/Makefile @@ -1,4 +1,5 @@ -# (C) Copyright 2005 +# +# (C) Copyright 2005-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # # See file CREDITS for list of people who contributed to this @@ -22,24 +23,22 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a - -OBJS := $(BOARD).o +LIB = $(obj)lib$(BOARD).o -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) +COBJS := $(BOARD).o -clean: - rm -f $(SOBJS) $(OBJS) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) -distclean: clean - rm -f $(LIB) core *.bak .depend +$(LIB): $(OBJS) + $(call cmd_link_o_target, $(OBJS)) ######################################################################### -.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 #########################################################################