diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4ef61dd --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ + +.PHONY: all clean + +all: + mkdir build + arm-none-eabi-gcc -O0 -c -g -mcpu=cortex-m3 -mthumb -o build/test_program.o src/test_program.c + arm-none-eabi-gcc -O0 -c -g -mcpu=cortex-m3 -mthumb -o build/startup.o src/startup.c + arm-none-eabi-ld -Tld/stm32.ld -o build/test_program.elf build/startup.o build/test_program.o + arm-none-eabi-objcopy -O binary build/test_program.elf build/test_program.bin + +clean: + rm -rf build |