mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Makefile: use libncurses instead of libncursesw on Darwin
macOS 10.12.4 and many earlier versions have libncurses 5.4 with wide character support, but not libncursesw.
This commit is contained in:
parent
5b68fa1a67
commit
afa0540934
4
Makefile
4
Makefile
|
@ -4,7 +4,11 @@ PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
||||||
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
|
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
|
||||||
|
ifeq ($(shell uname), Darwin)
|
||||||
|
LDLIBS = -lncurses
|
||||||
|
else
|
||||||
LDLIBS = -lncursesw
|
LDLIBS = -lncursesw
|
||||||
|
endif
|
||||||
|
|
||||||
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
||||||
LOCALCONFIG = config.h
|
LOCALCONFIG = config.h
|
||||||
|
|
|
@ -4,7 +4,11 @@ PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
||||||
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
|
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
|
||||||
|
ifeq ($(shell uname), Darwin)
|
||||||
|
LDLIBS = -lncurses
|
||||||
|
else
|
||||||
LDLIBS = -lncursesw
|
LDLIBS = -lncursesw
|
||||||
|
endif
|
||||||
|
|
||||||
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
|
||||||
LOCALCONFIG = config.h
|
LOCALCONFIG = config.h
|
||||||
|
|
Loading…
Reference in a new issue