X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fpleb2%2FMakefile;h=9b076f54ca0c8b3b00fbaa3dfccd7ebd35c3ca46;hb=310ae55efe14aa7923b16c718cbdb22ec364b18b;hp=5fdc874dfe25c2e719dbfb7aa078f3ecb66ece64;hpb=6310eb9da74b1cf33194ae88275cc63b76e7a764;p=u-boot diff --git a/board/pleb2/Makefile b/board/pleb2/Makefile index 5fdc874dfe..9b076f54ca 100644 --- a/board/pleb2/Makefile +++ b/board/pleb2/Makefile @@ -1,6 +1,6 @@ # -# (C) Copyright 2000 +# (C) Copyright 2000-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # # See file CREDITS for list of people who contributed to this @@ -24,25 +24,27 @@ include $(TOPDIR)/config.mk -LIB = lib$(BOARD).a +LIB = $(obj)lib$(BOARD).o -OBJS := pleb2.o flash.o -SOBJS := memsetup.o +COBJS := pleb2.o flash.o -$(LIB): $(OBJS) $(SOBJS) - $(AR) crv $@ $(OBJS) $(SOBJS) +SRCS := $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) + +$(LIB): $(obj).depend $(OBJS) + $(call cmd_link_o_target, $(OBJS)) clean: - rm -f $(SOBJS) $(OBJS) + rm -f $(OBJS) distclean: clean - rm -f $(LIB) core *.bak .depend + rm -f $(LIB) core *.bak $(obj).depend ######################################################################### -.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 #########################################################################