aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-08-15 21:13:44 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-08-15 21:46:37 +0100
commitae9102482560b557628c83a247ab35063ade0bf7 (patch)
tree2f08afac5a943aac31186e2c5c0c7d60e6d8837a /Makefile
parent121edea90cde8295f720ed9d2f2fccca61f66bb4 (diff)
downloadkutter-ae9102482560b557628c83a247ab35063ade0bf7.tar.gz
kutter-ae9102482560b557628c83a247ab35063ade0bf7.tar.xz
kutter-ae9102482560b557628c83a247ab35063ade0bf7.zip
Rename everything significant to Kutter except for docs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 735d1863..e52945be 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Klipper build system
+# Kutter build system
#
# Copyright (C) 2016-2020 Kevin O'Connor <kevin@koconnor.net>
#
@@ -35,14 +35,14 @@ CFLAGS := -iquote $(OUT) -iquote src -iquote $(OUT)board-generic/ \
-ffunction-sections -fdata-sections -fno-delete-null-pointer-checks
CFLAGS += -flto=auto -fwhole-program -fno-use-linker-plugin -ggdb3
-OBJS_klipper.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y))
-OBJS_klipper.elf += $(OUT)compile_time_request.o
-CFLAGS_klipper.elf = $(CFLAGS) -Wl,--gc-sections
+OBJS_kutter.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y))
+OBJS_kutter.elf += $(OUT)compile_time_request.o
+CFLAGS_kutter.elf = $(CFLAGS) -Wl,--gc-sections
CPPFLAGS = -I$(OUT) -P -MD -MT $@
# Default targets
-target-y := $(OUT)klipper.elf
+target-y := $(OUT)kutter.elf
all:
@@ -68,9 +68,9 @@ $(OUT)%.ld: %.lds.S $(OUT)autoconf.h
@echo " Preprocessing $@"
$(Q)$(CPP) -I$(OUT) -P -MD -MT $@ $< -o $@
-$(OUT)klipper.elf: $(OBJS_klipper.elf)
+$(OUT)kutter.elf: $(OBJS_kutter.elf)
@echo " Linking $@"
- $(Q)$(CC) $(OBJS_klipper.elf) $(CFLAGS_klipper.elf) -o $@
+ $(Q)$(CC) $(OBJS_kutter.elf) $(CFLAGS_kutter.elf) -o $@
$(Q)scripts/check-gcc.sh $@ $(OUT)compile_time_request.o
################ Compile time requests
@@ -81,7 +81,7 @@ $(OUT)%.o.ctr: $(OUT)%.o
$(OUT)compile_time_request.o: $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) ./scripts/buildcommands.py
@echo " Building $@"
$(Q)cat $(patsubst %.c, $(OUT)src/%.o.ctr,$(src-y)) | tr -s '\0' '\n' > $(OUT)compile_time_request.txt
- $(Q)$(PYTHON) ./scripts/buildcommands.py -d $(OUT)klipper.dict -t "$(CC);$(AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)compile_time_request.txt $(OUT)compile_time_request.c
+ $(Q)$(PYTHON) ./scripts/buildcommands.py -d $(OUT)kutter.dict -t "$(CC);$(AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)compile_time_request.txt $(OUT)compile_time_request.c
$(Q)$(CC) $(CFLAGS) -c $(OUT)compile_time_request.c -o $@
################ Auto generation of "board/" include file link