From 1a267f24cad090ad6e013849c039e3b798cec38e Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 21 May 2002 07:08:30 +0000 Subject: Make this a little easier to build standalone. (same change as libpanel) --- lib/ncurses/form/Makefile | 6 +++++- lib/ncurses/menu/Makefile | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/ncurses') 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 diff --git a/lib/ncurses/menu/Makefile b/lib/ncurses/menu/Makefile index 2ba1211..0c3088b 100644 --- a/lib/ncurses/menu/Makefile +++ b/lib/ncurses/menu/Makefile @@ -18,7 +18,11 @@ SRCS= ncurses_def.h \ INCS= ${NCURSES}/menu/menu.h ${NCURSES}/menu/eti.h CLEANFILES+= ncurses_def.h -CFLAGS+= -I. -I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \ +CFLAGS+= -I. +.if exists(${.OBJDIR}/../libncurses) +CFLAGS+= -I${.OBJDIR}/../libncurses +.endif +CFLAGS+=-I${.CURDIR}/../libncurses -I${NCURSES}/menu -I${NCURSES}/include \ -Wall -DNDEBUG -DHAVE_CONFIG_H ncurses_def.h: MKncurses_def.sh ncurses_defs -- cgit v1.1