diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-01-20 07:46:45 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-01-20 07:46:45 +0000 |
commit | f737c0d553ada44280371dfb7e052ae49215570e (patch) | |
tree | e282ef539b71b8305dc28d543bcce4296655069a /lib/ncurses/config.mk | |
parent | 85b787f81b11ec1c9f53b41d5c888f7327051b38 (diff) | |
download | src-f737c0d553ada44280371dfb7e052ae49215570e.tar.gz src-f737c0d553ada44280371dfb7e052ae49215570e.zip |
Introduce new ncurses build glues which are part of ncurses 5.6 update.
Approved by: delphij
Inspired by: DragonFly's and lib/bind
Notes
Notes:
svn path=/head/; revision=166130
Diffstat (limited to 'lib/ncurses/config.mk')
-rw-r--r-- | lib/ncurses/config.mk | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/ncurses/config.mk b/lib/ncurses/config.mk new file mode 100644 index 000000000000..fab0fd8457f8 --- /dev/null +++ b/lib/ncurses/config.mk @@ -0,0 +1,37 @@ +# This Makefile is shared by libncurses, libform, libmenu, libpanel. +# +# $FreeBSD$ + +NCURSES_DIR= ${.CURDIR}/../../../contrib/ncurses + +NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h + +CFLAGS+= -I. +.if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX}) +CFLAGS+= -I${.OBJDIR}/../ncurses${LIB_SUFFIX} +.endif +CFLAGS+= -I${.CURDIR}/../ncurses${LIB_SUFFIX} + +# for ${NCURSES_CFG_H} +CFLAGS+= -I${.CURDIR}/../ncurses + +CFLAGS+= -I${NCURSES_DIR}/include +CFLAGS+= -I${NCURSES_DIR}/ncurses + +CFLAGS+= -Wall + +CFLAGS+= -DNDEBUG + +CFLAGS+= -DHAVE_CONFIG_H + +# everyone needs this +.PATH: ${NCURSES_DIR}/include + +# tools and directories +AWK?= awk +TERMINFODIR?= ${SHAREDIR}/misc + +# Generate headers +ncurses_def.h: MKncurses_def.sh ncurses_defs + AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \ + ${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h |