diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-03-08 12:05:27 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-03-08 12:05:27 +0000 |
commit | 80fd6a2346ecab7463dd714ed2b19509779f5144 (patch) | |
tree | 524a3eb58edd7b70aa071f5015690244967dc8db | |
parent | 5d44c08ecf399021f579488335b37dcbe63631ee (diff) | |
download | termo-80fd6a2346ecab7463dd714ed2b19509779f5144.tar.gz termo-80fd6a2346ecab7463dd714ed2b19509779f5144.tar.xz termo-80fd6a2346ecab7463dd714ed2b19509779f5144.zip |
Optionally build against libncursesw if unibilium isn't present, before falling back on plain libncurses
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5,6 +5,9 @@ CFLAGS?= ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1) CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_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 LDFLAGS+=-lncurses endif |