summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-09-27 09:24:24 +0200
committerxengineering <me@xengineering.eu>2021-09-27 09:24:24 +0200
commit32d5ae9a51cd4727080689318bca65107c123ece (patch)
treeb341db3bb3f684e54fabacce0ee084167ea0233c
parent9e822663cbbb841ee7636cfd169426e91d8fa643 (diff)
downloadledcontrol-32d5ae9a51cd4727080689318bca65107c123ece.tar
ledcontrol-32d5ae9a51cd4727080689318bca65107c123ece.tar.zst
ledcontrol-32d5ae9a51cd4727080689318bca65107c123ece.zip
Update Makefile for easy incremental Builds
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3a2f096..a37a60f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ LD = $(PREFIX)-gcc
OBJCOPY = $(PREFIX)-objcopy
all: deps/libopencm3/lib/libopencm3_stm32f1.a
- mkdir build
+ mkdir -p build
$(CC) -O0 -c -g -DSTM32F1 -Ideps/libopencm3/include -mcpu=cortex-m3 -mthumb -o build/main.o src/main.c
$(LD) --static -nostartfiles -mcpu=cortex-m3 -mthumb -msoft-float -Tld/stm32f103c8t6.ld -Ldeps/libopencm3/lib build/main.o -lopencm3_stm32f1 -o build/ledcontrol.elf
$(OBJCOPY) -O binary build/ledcontrol.elf build/ledcontrol.bin