Merge pull request #25 from jcvernaleo/master

Allow C and LD flags to be overwritten.
reverse-branch
xorg62 11 years ago
commit 516afbf9f9
  1. 11
      Makefile

@ -10,16 +10,13 @@ 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 -I $$(ncurses5-config --includedir)
LDFLAGS ?= -L $$(ncurses5-config --libdir) $$(ncursesw5-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 -I $$(ncursesw5-config --includedir)
LDFLAGS ?= -L $$(ncursesw5-config --libdir) $$(ncursesw5-config --libs)
endif
tty-clock : ${SRC}
@echo "build ${SRC}"

Loading…
Cancel
Save