From 8da9efaa2894d02a7ff9b5d9707c711d909e904d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 21 Oct 2014 21:52:07 +0200 Subject: allow to build with MacOS X Yosemite and Homebrew. --- adk/config/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'adk') diff --git a/adk/config/Makefile b/adk/config/Makefile index 8eb45f5c0..7e91da1bf 100644 --- a/adk/config/Makefile +++ b/adk/config/Makefile @@ -27,6 +27,10 @@ else ifeq (/usr/local/include/ncurses/curses.h, $(wildcard /usr/local/include/ncurses/curses.h)) HOST_CFLAGS+= -I/usr/local/include/ncurses -DCURSES_LOC="" else +ifeq (/usr/local/opt/ncurses/include/ncursesw/ncurses.h, $(wildcard /usr/local/opt/ncurses/include/ncursesw/ncurses.h)) +HOST_CFLAGS+= -I/usr/local/opt/ncurses/include -DCURSES_LOC="" +LIBS+= -L/usr/local/opt/ncurses/lib -Wl,-rpath -Wl,/usr/local/opt/ncurses/lib +else ifeq (/usr/pkg/include/ncurses.h, $(wildcard /usr/pkg/include/ncurses.h)) HOST_CFLAGS+= -I/usr/pkg/include -DCURSES_LOC="" LIBS+= -L/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkg/lib @@ -42,6 +46,7 @@ endif endif endif endif +endif CONF_SRC =conf.c MCONF_SRC =mconf.c $(wildcard lxdialog/*.c) -- cgit v1.2.3