Merge pull request #43 from anarcat/make-fixes

another shot at fixing buildchain
reverse-branch
xorg62 9 years ago committed by GitHub
commit e66826169f
  1. 12
      Makefile

@ -10,14 +10,14 @@ INSTALLPATH = ${DESTDIR}${PREFIX}/bin
MANPATH = ${DESTDIR}${PREFIX}/share/man/man1
ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
CFLAGS ?= -Wall -g -I $$(ncurses5-config --includedir)
LDFLAGS ?= -L $$(ncurses5-config --libdir) $$(ncursesw5-config --libs)
CFLAGS ?= -Wall -g $$(ncurses5-config --cflags)
LDFLAGS ?= $$(ncurses5-config --libs)
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)
CFLAGS ?= -Wall -g $$(ncursesw5-config --cflags)
LDFLAGS ?= $$(ncursesw5-config --libs)
else
CFLAGS ?= -Wall -g $((pkg-config --cflags ncurses))
LDFLAGS ?= $$(pkg-config --libs ncurses))
CFLAGS ?= -Wall -g $$(pkg-config --cflags ncurses)
LDFLAGS ?= $$(pkg-config --libs ncurses)
endif
tty-clock : ${SRC}

Loading…
Cancel
Save