Skip to content

Commit

Permalink
allow compiling without ncurses.pc
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerwk committed Apr 18, 2018
1 parent 80b98d4 commit adca201
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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
Expand Down

0 comments on commit adca201

Please sign in to comment.