summaryrefslogtreecommitdiffstats
path: root/lib/ncurses
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ncurses')
-rw-r--r--lib/ncurses/panel/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ncurses/panel/Makefile b/lib/ncurses/panel/Makefile
index f9733db..5c1f601 100644
--- a/lib/ncurses/panel/Makefile
+++ b/lib/ncurses/panel/Makefile
@@ -16,8 +16,13 @@ SRCS= ncurses_def.h \
INCS= ${NCURSES}/panel/panel.h
CLEANFILES+= ncurses_def.h
-CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/panel -I${NCURSES}/include \
- -Wall -DNDEBUG -DHAVE_CONFIG_H
+CFLAGS+= -I.
+.if exists(${.OBJDIR}/../libncurses)
+CFLAGS+= -I${.OBJDIR}/../libncurses
+.endif
+CFLAGS+= -I${.CURDIR}/../libncurses
+CFLAGS+= -I${NCURSES}/panel -I${NCURSES}/include -I${NCURSES}/ncurses \
+ -Wall -DNDEBUG -DHAVE_CONFIG_H
ncurses_def.h: MKncurses_def.sh ncurses_defs
AWK=${AWK} sh ${NCURSES}/include/MKncurses_def.sh \
OpenPOWER on IntegriCloud