Skip to content

Commit

Permalink
Merge pull request #12 from zmwangx/libncurses-darwin
Browse files Browse the repository at this point in the history
Makefile: use libncurses instead of libncursesw on Darwin
  • Loading branch information
jarun committed Apr 16, 2017
2 parents 1e574af + 3ea74a4 commit 0cc59f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -4,7 +4,11 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man

CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lncursesw
ifeq ($(shell uname), Darwin)
LDLIBS = -lncurses
else
LDLIBS = -lncursesw
endif

DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h
Expand Down
6 changes: 5 additions & 1 deletion Makefile.generic
Expand Up @@ -4,7 +4,11 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man

CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lncursesw
ifeq ($(shell uname), Darwin)
LDLIBS = -lncurses
else
LDLIBS = -lncursesw
endif

DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h
Expand Down

0 comments on commit 0cc59f7

Please sign in to comment.