Merge pull request #38 from anarcat/pkg-config

unbreak building with arbitrary ncurses version using pkg-config
reverse-branch
xorg62 9 years ago committed by GitHub
commit 299450c209
  1. 3
      Makefile

@ -15,6 +15,9 @@ ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y)
CFLAGS ?= -Wall -g -I $$(ncursesw5-config --includedir)
LDFLAGS ?= -L $$(ncursesw5-config --libdir) $$(ncursesw5-config --libs)
else
CFLAGS ?= -Wall -g $((pkg-config --cflags ncurses))
LDFLAGS ?= $$(pkg-config --libs ncurses))
endif
tty-clock : ${SRC}

Loading…
Cancel
Save