Optionally build against libncursesw if unibilium isn't present, before falling back on plain libncurses
This commit is contained in:
parent
5d44c08ecf
commit
80fd6a2346
3
Makefile
3
Makefile
|
@ -5,6 +5,9 @@ CFLAGS?=
|
||||||
ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1)
|
ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1)
|
||||||
CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM
|
CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM
|
||||||
LDFLAGS+=$(shell pkg-config --libs unibilium)
|
LDFLAGS+=$(shell pkg-config --libs unibilium)
|
||||||
|
else ifeq ($(shell pkg-config ncursesw && echo 1),1)
|
||||||
|
CFLAGS +=$(shell pkg-config --cflags ncursesw)
|
||||||
|
LDFLAGS+=$(shell pkg-config --libs ncursesw)
|
||||||
else
|
else
|
||||||
LDFLAGS+=-lncurses
|
LDFLAGS+=-lncurses
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue