diff options
Diffstat (limited to 'arch/nds32/lib/Makefile')
-rw-r--r-- | arch/nds32/lib/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/nds32/lib/Makefile b/arch/nds32/lib/Makefile index 5de2d289dfc..2f7e1555782 100644 --- a/arch/nds32/lib/Makefile +++ b/arch/nds32/lib/Makefile @@ -13,12 +13,15 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(ARCH).o -OBJS := board.o cache.o interrupts.o +COBJS-y += board.o +COBJS-y += cache.o COBJS-$(CONFIG_CMD_BOOTM) += bootm.o +COBJS-y += interrupts.o -all: $(LIB) +SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) -$(LIB): $(OBJS) $(SOBJS) +$(LIB): $(obj).depend $(OBJS) $(call cmd_link_o_target, $(OBJS)) ######################################################################### |