From e768f022197aaf1265b0afcdf673a0414f1ab9cd Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 24 Sep 2011 00:04:01 +0100 Subject: Optionally support unibilium for reading terminfo instead of curses --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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= -- cgit v1.2.3-70-g09d2