diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-09-12 02:44:22 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-09-12 02:44:22 -0300 |
| commit | 16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c (patch) | |
| tree | 76e04d77b3f313fd883ad502e9afd5f54f8c55c3 | |
| parent | af49c0bd105d244afc169df15d14e5401cb4e362 (diff) | |
| download | game-16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c.tar.gz game-16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c.zip | |
update script that generates the Makefile
| -rw-r--r-- | tools/makefile.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
