aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-04 01:05:35 +0530
committerGravatar GitHub <noreply@github.com>2017-04-04 01:05:35 +0530
commit8fbd97a1eada3208517ef4f5c31fc4ed99234717 (patch)
treebf808cbe1d8f99b33c80b24789c5e909ce982c04 /Makefile
parent10a18bf07ee18691e5f6ab716f6278a22885c276 (diff)
parent1c0c6de635b87d6012694376f29bb3ed52a948f0 (diff)
downloadnnn-8fbd97a1eada3208517ef4f5c31fc4ed99234717.tar.gz
Merge pull request #3 from zmwangx/travis
Test on Travis
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 02f4661..af8b10b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,7 @@ VERSION = 0.6
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/man
-#CPPFLAGS = -DDEBUG
-#CFLAGS = -g
-CFLAGS = -O3 -march=native
+CFLAGS += -O3 -march=native
LDLIBS = -lcurses
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
@@ -21,8 +19,8 @@ $(LOCALCONFIG): config.def.h
$(SRC): $(LOCALCONFIG)
$(BIN): $(SRC)
- $(CC) $(CFLAGS) -o $@ $(SRC) $(LDFLAGS) $(LDLIBS)
- strip $(BIN)
+ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
+ strip $@
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin