From 16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 12 Sep 2025 02:44:22 -0300 Subject: update script that generates the Makefile --- tools/makefile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/makefile.go b/tools/makefile.go index 7dae41f..6b0ad55 100644 --- a/tools/makefile.go +++ b/tools/makefile.go @@ -78,7 +78,7 @@ func main() { // DEBUG SWITCH fmt.Fprint(&output, "DEBUG ?= 0\n") fmt.Fprint(&output, "ifneq ($(DEBUG), 0)\n") - fmt.Fprint(&output, "\tCFLAGS += -g -O0\n") + fmt.Fprint(&output, "\tCFLAGS += -g -Og\n") fmt.Fprint(&output, "else\n") fmt.Fprint(&output, "\tCFLAGS += -O2\n") fmt.Fprint(&output, "endif\n\n") @@ -107,7 +107,7 @@ func main() { // PHONY fmt.Fprint(&output, ".PHONY: clean\n\n") - fmt.Fprint(&output, "clean:\n\t@rm -r $(BUILDDIR)\n\n") + fmt.Fprint(&output, "clean:\n\t@rm -rf $(BUILDDIR)\n\n") if err := os.WriteFile("Makefile", output.Bytes(), 0644); err != nil { fmt.Printf("failed to write Makefile: %v\n", err) -- cgit v1.2.3