From 7ae762e4f146f4d97bf8d50b6569c5cfcb622c7e Mon Sep 17 00:00:00 2001 From: czjstmax Date: Thu, 19 Mar 2026 18:44:16 +0100 Subject: added debug stuff and fixed ^C Signed-off-by: czjstmax --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8140274..37d7840 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ CC = gcc IN = nm.c OUT = nshm -LIBS = -lreadline -OPTS = -O0 -g -Wall -Wextra -pedantic +LIBS = -lreadline +OPTS = -O2 -Wall -Wextra -pedantic +OPTSDBG = -O0 -g -Wall -Wextra -pedantic + +debug: + $(CC) -o$(OUT) $(LIBS) $(OPTSDBG) $(IN) all: - $(CC) -o$(OUT) $(LIBS) $(OPTS) $(IN) + $(CC) -o$(OUT) $(LIBS) $(OPTS) $(IN) run: all ./$(OUT) -- cgit v1.3.1