From 9b30ef6db6fcc61442010b6bf3280919360da477 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 9 Feb 2025 15:50:52 +0100 Subject: [PATCH] Break out flag variables into multiple lines --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2e908a6..2fdbc9d 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,22 @@ CURL_FLAGS := -O -\# --fail --location --tlsv1.3 --proto =https --max-time 300 TARGET = blink TARGET_MCU?=CH32V003 NEWLIB=/usr/arm-none-eabi/include -CFLAGS=-g -Os -flto -ffunction-sections -fdata-sections -fmessage-length=0 -msmall-data-limit=8 -LDFLAGS+=-Wl,--print-memory-usage -Wl,-Map=$(TARGET).map,--build-id=none TOOL_PREFIX := riscv64-linux-gnu CC := $(TOOL_PREFIX)-gcc OBJDUMP := $(TOOL_PREFIX)-objdump OBJCOPY := $(TOOL_PREFIX)-objcopy +CFLAGS = -g \ + -Os \ + -flto \ + -ffunction-sections \ + -fdata-sections \ + -fmessage-length=0 \ + -msmall-data-limit=8 + +LDFLAGS = -Wl,--print-memory-usage \ + -Wl,-Map=$(TARGET).map,--build-id=none + EXTFLAGS := -march=rv32ec \ -mabi=ilp32e \ -DCH32V003=1 \