From f0f7ae0abcf0ab73a75bd111c3e036e0722d1daa Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 30 Dec 2017 12:27:06 -0500 Subject: uploaded code --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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/* -- cgit v1.2.3