Merge pull request #8 from mistydemeo/makefile

Makefile: support OS X system ncurses
This commit is contained in:
Murilo Pereira 2015-05-10 19:31:39 -03:00
commit b7daef5885

View File

@ -3,8 +3,9 @@ CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
LDFLAGS = -lncursesw LDFLAGS = -lncursesw
# OS X installs ncurses with wide character support, but not as "libncurses"
ifeq ($(shell uname -s),Darwin) ifeq ($(shell uname -s),Darwin)
LDFLAGS += -L /opt/local/lib LDFLAGS = -lncurses
endif endif
PREFIX = /usr/local PREFIX = /usr/local