X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_sh%2FMakefile;h=f7c6479426d74458108d442baa55a01e313c3adf;hb=2f103ee284e68934a648732db5e0b6ceb4a1ed8f;hp=c84276af8836f627cf604ac40157c773e977bf3d;hpb=7fc792895be3c0edf423c4038992b40345672a12;p=u-boot diff --git a/lib_sh/Makefile b/lib_sh/Makefile index c84276af88..f7c6479426 100644 --- a/lib_sh/Makefile +++ b/lib_sh/Makefile @@ -22,12 +22,18 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(ARCH).a -SOBJS = - -COBJS = board.o sh_linux.o # time.o - -SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) +SOBJS-y += + +COBJS-y += board.o +COBJS-y += bootm.o +ifeq ($(CONFIG_SH2),y) +COBJS-y += time_sh2.o +else +COBJS-y += time.o +endif + +SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) $(LIB): $(obj).depend $(OBJS) $(AR) $(ARFLAGS) $@ $(OBJS)