2007-01-20 07:46:45 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2007-03-09 09:54:07 +00:00
|
|
|
# This Makefile is shared by libncurses, libform, libmenu, libpanel.
|
|
|
|
|
2017-01-20 04:27:40 +00:00
|
|
|
NCURSES_DIR= ${SRCTOP}/contrib/ncurses
|
2007-01-20 07:46:45 +00:00
|
|
|
|
2007-03-09 12:11:58 +00:00
|
|
|
.if defined(ENABLE_WIDEC)
|
|
|
|
LIB_SUFFIX= w
|
|
|
|
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
|
2017-01-20 04:27:40 +00:00
|
|
|
NCURSES_CFG_H= ${.CURDIR:H}/ncurses/ncurses_cfg.h
|
2007-03-09 12:11:58 +00:00
|
|
|
.else
|
|
|
|
LIB_SUFFIX=
|
2007-01-20 07:46:45 +00:00
|
|
|
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
|
2007-03-09 12:11:58 +00:00
|
|
|
.endif
|
2007-01-20 07:46:45 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I.
|
2017-01-20 04:27:40 +00:00
|
|
|
.if exists(${.OBJDIR:H}/ncurses${LIB_SUFFIX})
|
|
|
|
CFLAGS+= -I${.OBJDIR:H}/ncurses${LIB_SUFFIX}
|
2007-01-20 07:46:45 +00:00
|
|
|
.endif
|
2017-01-20 04:27:40 +00:00
|
|
|
CFLAGS+= -I${.CURDIR:H}/ncurses${LIB_SUFFIX}
|
2007-01-20 07:46:45 +00:00
|
|
|
|
|
|
|
# for ${NCURSES_CFG_H}
|
2017-01-20 04:27:40 +00:00
|
|
|
CFLAGS+= -I${.CURDIR:H}/ncurses
|
2007-01-20 07:46:45 +00:00
|
|
|
|
|
|
|
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
|
2007-07-21 00:27:17 +00:00
|
|
|
|
|
|
|
# Manual pages filter
|
|
|
|
MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
|
|
|
|
-e 's%@DATADIR@%/usr/share%g' \
|
|
|
|
-e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
|
|
|
|
-e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
|
|
|
|
-e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
|
|
|
|
-e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
|
|
|
|
-e 's%@TIC@%tic%g' \
|
|
|
|
-e 's%@INFOCMP@%infocmp%g'
|