diff options
author | Peter Wemm <peter@FreeBSD.org> | 2002-05-21 07:08:30 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2002-05-21 07:08:30 +0000 |
commit | 42d4025c742786e78a80c755d1f1fcb7c5262311 (patch) | |
tree | 69d7a366de7df6ee65533a5eb7017deed9bb3b87 /lib/ncurses/menu | |
parent | 3e1a1dd23d801af32280b025056b8d7c10366661 (diff) | |
download | src-42d4025c742786e78a80c755d1f1fcb7c5262311.tar.gz src-42d4025c742786e78a80c755d1f1fcb7c5262311.zip |
Make this a little easier to build standalone. (same change as libpanel)
Notes
Notes:
svn path=/head/; revision=97057
Diffstat (limited to 'lib/ncurses/menu')
-rw-r--r-- | lib/ncurses/menu/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ncurses/menu/Makefile b/lib/ncurses/menu/Makefile index 2ba121162eeb..0c3088bd6db4 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 |