temp_contoller_firmware/Makefile
2025-04-07 03:34:21 +03:00

33 lines
939 B
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SHELL=/bin/bash
# в этой папке храним все .mk файлы
DIR_MK=./tools/makefiles
include $(DIR_MK)/settings.mk
all: dir_build
make all --file=$(DIR_MK)/mc_firmware.mk DIR_MK=$(DIR_MK)
doc: dir_build
make doc --file=$(DIR_MK)/mc_firmware.mk DIR_MK=$(DIR_MK)
check: dir_build
make check --file=$(DIR_MK)/mc_firmware.mk DIR_MK=$(DIR_MK)
test: dir_build
@echo $(MC_UTESTS_OUTPATH_OBJS) $(MC_UTESTS_OUTPATH_LIB) $(MC_UTESTS)
make --file=$(DIR_MK)/utests.mk DIR_MK=$(DIR_MK)
dir_build:
mkdir -p ${MAIN_OUTPATH}
clean:
rm -rf ${MAIN_OUTPATH}
# для загрузи прошивки в мк, нужно забрать с репозитория microcontroller_flash_uploader и сделать переменную окружения
ifeq ($(strip $(MC_UPLOADER)),)
$(info Переменная MC_UPLOADER не задана)
else
include $(MC_UPLOADER)/flash_uploader.mk #monitor reset halt
endif