aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-09-24 00:04:01 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-09-24 00:04:01 +0100
commite768f022197aaf1265b0afcdf673a0414f1ab9cd (patch)
treee4f36a05f2b1f39def13542f4876fe5120a85945 /Makefile
parent7d623be041f671f3eb6af188d128b7f07642a24a (diff)
downloadtermo-e768f022197aaf1265b0afcdf673a0414f1ab9cd.tar.gz
termo-e768f022197aaf1265b0afcdf673a0414f1ab9cd.tar.xz
termo-e768f022197aaf1265b0afcdf673a0414f1ab9cd.zip
Optionally support unibilium for reading terminfo instead of curses
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 60e5fc5..ae29688 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
LIBTOOL=libtool
CFLAGS?=
-LDFLAGS=-lcurses
+
+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
+ LDFLAGS+=-lncurses
+endif
CFLAGS_DEBUG=