aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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=