3 # This Makefile is shared by libncurses, libform, libmenu, libpanel.
5 NCURSES_DIR= ${.CURDIR}/../../../contrib/ncurses
7 .if defined(ENABLE_WIDEC)
9 CFLAGS+= -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
10 NCURSES_CFG_H= ${.CURDIR}/../ncurses/ncurses_cfg.h
13 NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
17 .if exists(${.OBJDIR}/../ncurses${LIB_SUFFIX})
18 CFLAGS+= -I${.OBJDIR}/../ncurses${LIB_SUFFIX}
20 CFLAGS+= -I${.CURDIR}/../ncurses${LIB_SUFFIX}
22 # for ${NCURSES_CFG_H}
23 CFLAGS+= -I${.CURDIR}/../ncurses
25 CFLAGS+= -I${NCURSES_DIR}/include
26 CFLAGS+= -I${NCURSES_DIR}/ncurses
32 CFLAGS+= -DHAVE_CONFIG_H
35 .PATH: ${NCURSES_DIR}/include
37 # tools and directories
39 TERMINFODIR?= ${SHAREDIR}/misc
42 ncurses_def.h: MKncurses_def.sh ncurses_defs
43 AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \
44 ${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h
47 MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
48 -e 's%@DATADIR@%/usr/share%g' \
49 -e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
50 -e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
51 -e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
52 -e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
54 -e 's%@INFOCMP@%infocmp%g'