Skip to content

Commit

Permalink
Merge pull request xorg62#25 from jcvernaleo/master
Browse files Browse the repository at this point in the history
Allow C and LD flags to be overwritten.
  • Loading branch information
xorg62 committed Mar 19, 2015
2 parents 9f75de2 + 5f138c5 commit 516afbf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 516afbf

Please sign in to comment.