From adca201cc4362daed32205aa08d3a3e3bea9469b Mon Sep 17 00:00:00 2001 From: sgerwk Date: Wed, 18 Apr 2018 08:38:01 +0200 Subject: [PATCH] allow compiling without ncurses.pc --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index aa36fcf..5ea0eb3 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ -PROGS=pdftoroff pdffit pdfrects hovacui xhovacui +PROGS=pdftoroff pdffit pdfrects hovacui fbhovacui xhovacui CFLAGS+=-g -Wall -Wextra -Wformat -Wformat-security CFLAGS+=${shell pkg-config --cflags poppler-glib} LDFLAGS+=${shell pkg-config --libs poppler-glib} -fbhovacui hovacui: LDFLAGS+=${shell pkg-config --libs ncurses} +fbhovacui hovacui: LDFLAGS+=\ + ${shell pkg-config --libs ncurses || echo '' -lncurses -ltinfo} xhovacui hovacui: LDFLAGS+=${shell pkg-config --libs x11} all: ${PROGS} @@ -16,7 +17,7 @@ install: all pdftoroff: pdftext.o pdfrects: pdfrects-main.o -pdftoroff pdffit pdfrects hovacui xhovacui: pdfrects.o +pdftoroff pdffit pdfrects hovacui fbhovacui xhovacui: pdfrects.o fbhovacui: cairofb.o vt.o hovacui.o fbhovacui.o xhovacui: cairofb.o vt.o hovacui.o xhovacui.o hovacui: cairofb.o vt.o hovacui.o hovacui-main.o