summaryrefslogtreecommitdiffstats
path: root/lib/libmenu
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-05-21 07:08:30 +0000
committerpeter <peter@FreeBSD.org>2002-05-21 07:08:30 +0000
commit1a267f24cad090ad6e013849c039e3b798cec38e (patch)
tree69d7a366de7df6ee65533a5eb7017deed9bb3b87 /lib/libmenu
parentfac83c44d2943a214bdb126c2fcc360cf47fadb1 (diff)
downloadFreeBSD-src-1a267f24cad090ad6e013849c039e3b798cec38e.zip
FreeBSD-src-1a267f24cad090ad6e013849c039e3b798cec38e.tar.gz
Make this a little easier to build standalone. (same change as libpanel)
Diffstat (limited to 'lib/libmenu')
-rw-r--r--lib/libmenu/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libmenu/Makefile b/lib/libmenu/Makefile
index 2ba1211..0c3088b 100644
--- a/lib/libmenu/Makefile
+++ b/lib/libmenu/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
OpenPOWER on IntegriCloud