.PHONY: all $(SUBDIRS-y) $(SUBDIRS-n)

create_objs_lst: $(SUBDIRS-y)
	@echo '$(addprefix $(CURDIR)/,$(OBJS-y)) \' >> $(ROOT_DIR)/objs.lst

create_include_dirs_lst: $(SUBDIRS-y) $(SUBDIRS-n)
	@echo ' -I$(CURDIR)\' >> $(ROOT_DIR)/include_dirs.lst

$(SUBDIRS-y):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

$(SUBDIRS-n):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

all: $(SUBDIRS-y) $(OBJS-y)

%.o:%.S
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $(OBJ_DIR)/$(BUILD)/$@ $<
	@printf "  [M]\t$@\n"

%.o:%.c
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $(OBJ_DIR)/$(BUILD)/$@ $<
	@printf "  [M]\t$@\n"

clean:
	@$(RM) $(OBJS-y) *.d

.PHONY: all $(SUBDIRS-y) $(SUBDIRS-n) copy_objs

create_objs_lst: $(SUBDIRS-y)
	@echo '$(addprefix $(CURDIR)/,$(OBJS-y)) \' >> $(ROOT_DIR)/objs.lst

create_include_dirs_lst: $(SUBDIRS-y) $(SUBDIRS-n)
	@echo ' -I$(CURDIR)\' >> $(ROOT_DIR)/include_dirs.lst

$(SUBDIRS-y):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

$(SUBDIRS-n):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

all: $(SUBDIRS-y) $(OBJS-y) copy_objs

%.o:%.S
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $@ $<
	@printf "  [M]\t$@\n"

%.o:%.c
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $@ $<
	@printf "  [M]\t$@\n"

copy_objs:
	  if [ ! -z "$(OBJS-y)" ]; then  cp -f $(OBJS-y) $(OBJ_DIR)/$(BUILD); fi

clean:
	rm -f  $(OBJS-y)

Fix some make files for increasing monitor build speed
Fix some make files for increasing monitor build speed