summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-03-19 17:59:04 +0100
committerGitHub <noreply@github.com>2026-03-19 17:59:04 +0100
commit7b28c03528c1100729facbf6775493e1b531b574 (patch)
treecf3d4c60c937210f8a9401145ab5780d66a4ca35
parentc3b2482da0428b479fae48a32ff9d96cbac4e739 (diff)
added debug build
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 41d90f7..0789277 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
CC = gcc
IN = nosh.c
OUT = nsh
-LIBS =
-OPTS = -O0 -g -Wall -Wextra -pedantic
+OPTS = -O2 -Wall -Wextra -pedantic
+OPTSDBG = -O0 -g -Wall -Wextra -pedantic
+
+debug:
+ $(CC) -o$(OUT) $(OPTSDBG) $(IN)
all:
- $(CC) -o$(OUT) $(LIBS) $(OPTS) $(IN)
+ $(CC) -o$(OUT) $(OPTS) $(IN)
run: all
./$(OUT)