Detect Darwin in the Makefile and plan accordingly
This commit is contained in:
parent
d2e9486f2d
commit
0bb46c8968
13
src/Makefile
13
src/Makefile
|
@ -10,15 +10,24 @@ sharedir := $(DESTDIR)$(PREFIX)/share/kak
|
||||||
docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
|
docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
|
||||||
|
|
||||||
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic
|
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic
|
||||||
LIBS += -lncursesw
|
|
||||||
|
|
||||||
os := $(shell uname -o)
|
os := $(shell uname)
|
||||||
|
|
||||||
|
ifeq ($(os),Darwin)
|
||||||
|
LIBS += -lncurses
|
||||||
|
else
|
||||||
|
LIBS += -lncursesw
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(os),Cygwin)
|
ifeq ($(os),Cygwin)
|
||||||
LIBS += -lboost_regex-mt
|
LIBS += -lboost_regex-mt
|
||||||
|
else ifeq ($(os),Darwin)
|
||||||
|
LIBS += -lboost_regex-mt
|
||||||
else
|
else
|
||||||
LIBS += -lboost_regex
|
LIBS += -lboost_regex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
debug ?= yes
|
debug ?= yes
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
CXXFLAGS += -DKAK_DEBUG
|
CXXFLAGS += -DKAK_DEBUG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user