MC3302_SDK_V1.1.9_202507281.../bsp/test/Makefile
2025-11-11 12:08:31 +08:00

54 lines
1.6 KiB
Makefile
Executable File

## rule to build a sample application
# $(1): the dir of sample application
# $(2): the build command
define build_sample
@if [ -d $(1) ]; then \
echo -e "\e[0;32;1m--Compiling $(1)...\e[0;36;1m \e[0m"; \
cd $(1); \
$(2); \
cd -; \
fi
endef
all:
@echo -e "\e[0;32;1m--Compiling bsp test...\e[0;36;1m \e[0m";
$(call build_sample,crypto, make)
$(call build_sample,i2c, make)
$(call build_sample,sdio, make)
$(call build_sample,spi, make)
$(call build_sample,uart, make)
$(call build_sample,dma, make)
$(call build_sample,wdg_test, make)
$(call build_sample,nvmem, make)
$(call build_sample,gpio, make)
$(call build_sample,perfmon, make)
$(call build_sample,memcpy, make)
$(call build_sample,sfc_test, make)
$(call build_sample,memtester, make)
$(call build_sample,sys_timer, make)
$(call build_sample,timer_test, make)
$(call build_sample,pts_test, make)
clean:
$(call build_sample,crypto, make clean)
$(call build_sample,i2c, make clean)
$(call build_sample,sdio, make clean)
$(call build_sample,spi, make clean)
$(call build_sample,uart, make clean)
$(call build_sample,dma, make clean)
$(call build_sample,wdg_test, make clean)
$(call build_sample,nvmem, make clean)
$(call build_sample,gpio, make clean)
$(call build_sample,perfmon, make clean)
$(call build_sample,memcpy, make clean)
$(call build_sample,sfc_test, make clean)
$(call build_sample,memtester, make clean)
$(call build_sample,sys_timer, make clean)
$(call build_sample,timer_test, make clean)
$(call build_sample,pts_test, make clean)
@echo -e "\e[0;32;1m--cleaning bsp test...\e[0;36;1m \e[0m";