summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
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)