aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-09-12 02:44:22 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-09-12 02:44:22 -0300
commit16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c (patch)
tree76e04d77b3f313fd883ad502e9afd5f54f8c55c3 /tools
parentaf49c0bd105d244afc169df15d14e5401cb4e362 (diff)
downloadgame-16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c.tar.gz
game-16f2e00b055c8356a7e80fa3b92e7df5a5c89a4c.zip
update script that generates the Makefile
Diffstat (limited to 'tools')
-rw-r--r--tools/makefile.go4
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)