diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-09-24 00:04:01 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-09-24 00:04:01 +0100 |
commit | e768f022197aaf1265b0afcdf673a0414f1ab9cd (patch) | |
tree | e4f36a05f2b1f39def13542f4876fe5120a85945 /Makefile | |
parent | 7d623be041f671f3eb6af188d128b7f07642a24a (diff) | |
download | termo-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-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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= |