nt9856x/rtos/code/application/Makefile
2023-03-28 15:07:53 +08:00

32 lines
617 B
Makefile

include $(NVT_PRJCFG_MODEL_CFG)
TARGET_DIR = ./source/$(RTOS_APP_MAIN)
SUBDIRS := $(dir $(shell find . -name Makefile))
SUBDIRS := $(shell echo $(SUBDIRS) | sed -e 's/\.\///g';)
all:
ifeq ($(RTOS_APP_MAIN),)
@echo ERROR: RTOS_MAIN cannot be empty in nvt-xxx-info.dtsi
@exit 1;
else
@$(MAKE) -C $(TARGET_DIR)
endif
cim:
ifeq ($(RTOS_APP_MAIN),)
@echo ERROR: RTOS_MAIN cannot be empty in nvt-xxx-info.dtsi
@exit 1;
else
@$(MAKE) -C $(TARGET_DIR) cim
endif
clean:
@for n in $(SUBDIRS); do \
$(MAKE) -C $$n clean $(NVT_MULTI_CORES_FLAG); \
done
@rm output -rf
install:
@$(MAKE) -C $(TARGET_DIR) install