From 772817b4a33bc8838b8a779105b2567e4a0fa02a Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 4 Sep 2024 06:34:57 -0400 Subject: [PATCH] build: sync Makefile with Klipper Signed-off-by: Eric Callahan --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e383c0e..22ccc97 100644 --- a/Makefile +++ b/Makefile @@ -30,10 +30,10 @@ dirs-y = src cc-option=$(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`" \ ; then echo "$(2)"; else echo "$(3)"; fi ;) -CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -std=gnu11 -Os -MD \ +CFLAGS := -iquote $(OUT) -iquote src -iquote $(OUT)board-generic/ -std=gnu11 -Os -MD \ -Wall -Wold-style-definition $(call cc-option,$(CC),-Wtype-limits,) \ -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -CFLAGS += -flto -fwhole-program -fno-use-linker-plugin -ggdb3 +CFLAGS += -flto=auto -fwhole-program -fno-use-linker-plugin -ggdb3 OBJS_katapult.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y)) OBJS_katapult.elf += $(OUT)compile_time_request.o