diff options
author | Andrés M <andmarti1424@users.noreply.github.com> | 2017-02-10 09:25:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 09:25:02 -0300 |
commit | d7b3561968aa52b3674eb187d25e5979d4e94f7d (patch) | |
tree | 2458096da0614e52548e2d2892931b9547cfe5a3 | |
parent | 0e3a1354ee3a74fa35a8b177efeede2242e9ce61 (diff) | |
parent | dd77dba4c572b0234c8ed0f4be2c32018d8dd094 (diff) |
Merge pull request #129 from melak/fix/ncurses_libs
Fix/ncurses libs. Added BSDmakefile.
-rw-r--r-- | src/BSDmakefile | 6 | ||||
-rw-r--r-- | src/Makefile | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/BSDmakefile b/src/BSDmakefile new file mode 100644 index 0000000..30b935b --- /dev/null +++ b/src/BSDmakefile @@ -0,0 +1,6 @@ +all: .DEFAULT + +.DEFAULT: + gmake ${.MAKEFLAGS} ${.TARGETS} + +.PHONY: all diff --git a/src/Makefile b/src/Makefile index b2c39d7..167f4ea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,15 @@ MANDIR = $(prefix)/man/man1 #YACC = bison -y #SED = sed -LDLIBS += -lm $(shell pkg-config --libs ncursesw) +ifeq ($(shell pkg-config --exists ncursesw || echo 'no'),no) +NCURSES_CFLAGS ?= +NCURSES_LIBS ?= -lncursesw +else +NCURSES_CFLAGS := $(shell pkg-config --cflags ncursesw) +NCURSES_LIBS := $(shell pkg-config --libs ncursesw) +endif + +LDLIBS += -lm $(NCURSES_LIBS) CFLAGS += -Wall -g CFLAGS += $(shell pkg-config --cflags ncursesw) |