diff options
Diffstat (limited to 'lib/ncurses/form/Makefile')
-rw-r--r-- | lib/ncurses/form/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ncurses/form/Makefile b/lib/ncurses/form/Makefile index 308e97b..7c22588 100644 --- a/lib/ncurses/form/Makefile +++ b/lib/ncurses/form/Makefile @@ -21,7 +21,11 @@ SRCS= ncurses_def.h \ INCS= ${NCURSES}/form/form.h CLEANFILES+= ncurses_def.h -CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \ +CFLAGS+= -I. +.if exists(${.OBJDIR}/../libncurses) +CFLAGS+= -I${.OBJDIR}/../libncurses +.endif +CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/form -I${NCURSES}/menu \ -I${NCURSES}/include -Wall -DNDEBUG -DHAVE_CONFIG_H ncurses_def.h: MKncurses_def.sh ncurses_defs |