1NCURSESDIR= ${.CURDIR}/../../../contrib/ncurses 2 3SHLIB_MAJOR= 60 4VERSION_DEF= ${.CURDIR}/../Versions.def 5SYMBOL_MAPS= ${.CURDIR}/../Symbol.base.map 6TERMINFO_CAPS= ${NCURSESDIR}/include/Caps 7 8.if defined (ENABLE_WIDEC) 9CFLAGS+= -D_XOPEN_SOURCE_EXTENDED 10CFLAGS+= -DENABLE_WIDEC 11SW_WIDEC= 1 12SW_TYPE= cchar_t 13LIB_SUFFIX= w 14SYMBOL_MAPS+= ${.CURDIR}/../Symbol.wide.map 15.else 16SW_WIDEC= 0 17SW_TYPE= chtype 18LIB_SUFFIX= 19.endif 20 21CFLAGS+= -I. 22CFLAGS+= -I${NCURSESDIR}/include 23CFLAGS+= -I${NCURSESDIR}/ncurses 24CFLAGS+= -I${.CURDIR}/../include 25CFLAGS+= -I${.CURDIR} 26CFLAGS+= -I${.OBJDIR} 27 28.PATH: ${NCURSESDIR}/include ${.CURDIR}/../include 29.if defined(ZPANEL) 30.PATH: ${NCURSESDIR}/panel 31.endif 32.if defined(ZNCURSES) 33.PATH: ${NCURSESBASEDIR} 34.PATH: ${NCURSESSERIALDIR} 35.PATH: ${NCURSESTINFODIR} 36.PATH: ${NCURSESDIR}/ncurses/trace 37. if defined (ENABLE_WIDEC) 38.PATH: ${NCURSESDIR}/ncurses/widechar 39. endif 40.endif 41 42ncurses_def.h: MKncurses_def.sh ncurses_defs 43 AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \ 44 ${NCURSESDIR}/include/ncurses_defs > ${.TARGET} 45 46curses.h: $(TERMINFO_CAPS) curses.head curses.tail MKkey_defs.sh 47 cat ${.CURDIR}/../include/curses.head | \ 48 sed -e 's|SET_NEED_WCHAR_H|${SW_WIDEC}|' \ 49 -e 's|SET_NCURSES_CH_T|${SW_TYPE}|' > ${.TARGET}.new 50 AWK=awk sh ${NCURSESDIR}/include/MKkey_defs.sh $(TERMINFO_CAPS) >> ${.TARGET}.new 51.if defined(ENABLE_WIDEC) 52 cat ${NCURSESDIR}/include/curses.wide >> ${.TARGET}.new 53.endif 54 cat ${NCURSESDIR}/include/curses.tail >> ${.TARGET}.new 55 mv -f ${.TARGET}.new ${.TARGET} 56