]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/lwmon5/Makefile
ppc4xx: Cleanup for partial linking and --gc-sections
[karo-tx-uboot.git] / board / lwmon5 / Makefile
index 06ef7f93317fe7c9d5192ee9b6f1f2cd8790e638..f7fef96fb44dc7fc4155934ac1f220f6ef3cf9c8 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
-COBJS  = $(BOARD).o sdram.o
+COBJS  = $(BOARD).o kbd.o sdram.o
 SOBJS  = init.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
-$(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+all:   $(LIB) $(SOBJS)
+
+$(LIB):        $(OBJS)
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS)
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       rm -f $(LIB) core *.bak $(obj).depend
 
 #########################################################################