build project using makefile
1 #include <Windows.h> 2 3 int main() 4 { 5 //system("dir"); 6 //system("arm-none-eabi-gcc -v"); 7 //system("cmake --version"); 8 system("cd /d G:\\stm32\\teststm32 && make &&arm-none-eabi-size build/teststm32.elf"); 9 //arm-none-eabi-objcopy -O ihex build/teststm32.elf build/teststm32.hex 10 //arm-none-eabi-objcopy -O binary -S build/teststm32.elf build/teststm32.bin 11 12 system("pause"); 13 return 0; 14 }