aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-17 23:36:26 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-12-17 23:36:26 +0530
commit3da5f5d130367ce5fe74ce237e4b7d872d7ad21f (patch)
tree283be2bceb19fdefa854d07416ab202b16db63e4 /Makefile
parent7a16440e1f1e6002d8a38e2b1ade9437dc3c79de (diff)
downloadnnn-3da5f5d130367ce5fe74ce237e4b7d872d7ad21f.tar.gz
Remove -O2 from debug build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 996b293..9c7bac2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ VERSION = 1.5
PREFIX ?= /usr/local
MANPREFIX = $(PREFIX)/share/man
-CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
+CFLAGS += -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lreadline
ifeq ($(shell pkg-config ncursesw && echo 1),1)
@@ -23,7 +23,7 @@ all: $(BIN) $(PLAYER)
$(SRC): nnn.h
$(BIN): $(SRC)
- $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
+ $(CC) -O2 $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
strip $@
debug: $(SRC)