Makefile: support OS X system ncurses

This commit is contained in:
Misty De Meo 2015-05-10 14:47:35 -07:00
parent 7b127c94f8
commit 0502f0f225

View File

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