diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-10 14:13:32 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-10 14:13:32 +0100 |
commit | 2ba9175278ad9d0f67419508ff9f196a34e9328b (patch) | |
tree | 7a18338131a633e5190b0a00a5670aeeb2ac384a /stm32/makefile | |
parent | ab78a6761f011a9bdcaef07d151abb5ccef4204f (diff) | |
parent | 7b98ecd905f65fdc0ebbbc5d4e275d67b21e3a5f (diff) |
Merge branch 'master' of pipeframe.xyz:school/project-arcade
Diffstat (limited to 'stm32/makefile')
-rw-r--r-- | stm32/makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/stm32/makefile b/stm32/makefile index 81f3ec9..22e956e 100644 --- a/stm32/makefile +++ b/stm32/makefile @@ -72,7 +72,7 @@ OBJS += lib/STM32-base-STM32Cube/HAL/STM32F0xx/src/stm32f0xx_hal_rcc.o \ OBJS += idle_task_static_memory.o OBJS += main.o -.PHONY: flash clean +.PHONY: flash clean format $(TARGET).bin: $(TARGET).elf $(OC) -O binary $< $@ @@ -96,10 +96,14 @@ $(TARGET).elf: $(OBJS) flash: $(TARGET).bin st-flash --reset write $(TARGET).bin 0x08000000 -compile_commands: clean +compile_commands.json: clean compiledb make -Bn ../scripts/compiledb-full-path-mingw.sh compile_commands.json +format: + clang-format -i $(SRCS) + clang-tidy --fix-errors $(SRCS) + clean: $(RM) $(TARGET).bin $(TARGET).elf $(OBJS) |