diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-12-30 12:27:06 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-12-30 12:27:06 -0500 |
commit | f0f7ae0abcf0ab73a75bd111c3e036e0722d1daa (patch) | |
tree | d6bdb9f9adf3d82175d6cfc8545f187ca12d2d32 /Makefile | |
parent | 8217c76e2255119fadba76daed3b3e1ec960285a (diff) |
uploaded code
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..44dd059 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +MCUFLAGS = -mthumb -mcpu=cortex-m4 +CFLAGS = -Iinclude $(MCUFLAGS) + +all: + arm-none-eabi-as $(MCUFLAGS) startup_stm32l476xx.s -c -o out/startup_stm32l476xx.o + arm-none-eabi-gcc $(CFLAGS) system_stm32l4xx.c -c -o out/system_stm32l4xx.o + arm-none-eabi-gcc $(CFLAGS) stm32l4xx_it.c -c -o out/stm32l4xx_it.o + arm-none-eabi-gcc $(CFLAGS) main.c -c -o out/main.o + arm-none-eabi-gcc $(CFLAGS) -T link.ld out/*.o -o out/main.elf + arm-none-eabi-objcopy -O ihex out/main.elf main.hex + +clean: + rm -rf out/* |