summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)