diff --git a/Make.defs b/Make.defs index d13634ff9..10aa51ead 100644 --- a/Make.defs +++ b/Make.defs @@ -169,9 +169,17 @@ endef ifeq ($(CONFIG_WINDOWS_NATIVE),y) define CLEANAROBJS $(call DELFILE,$(subst /,\,$(AROBJS))) + $(call DELFILE,$(subst /,\,$(OBJS))) + $(eval OBJS :=) endef else define CLEANAROBJS - $(Q) rm -f $(AROBJS) + $(call SPLITVARIABLE,CLEAN_AROBJS,${AROBJS},100) + $(foreach BATCH, $(CLEAN_AROBJS_TOTAL), \ + $(shell rm -rf $(CLEAN_AROBJS_$(BATCH)))) + $(call SPLITVARIABLE,CLEAN_OBJS,${OBJS},100) + $(foreach BATCH, $(CLEAN_OBJS_TOTAL), \ + $(shell rm -rf $(CLEAN_OBJS_$(BATCH)))) + $(eval OBJS :=) endef endif \ No newline at end of file