From 7b28c03528c1100729facbf6775493e1b531b574 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Thu, 19 Mar 2026 17:59:04 +0100 Subject: added debug build --- Makefile | 9 ++++++--- 1 file 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) -- cgit v1.3.1