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 28WARNS?= 5 29 30.PATH: ${NCURSESDIR}/include ${.CURDIR}/../include 31.if defined(ZPANEL) 32.PATH: ${NCURSESDIR}/panel 33.endif 34.if defined(ZNCURSES) 35.PATH: ${NCURSESBASEDIR} 36.PATH: ${NCURSESSERIALDIR} 37.PATH: ${NCURSESTINFODIR} 38.PATH: ${NCURSESDIR}/ncurses/trace 39. if defined (ENABLE_WIDEC) 40.PATH: ${NCURSESDIR}/ncurses/widechar 41. endif 42.endif 43 44ncurses_def.h: MKncurses_def.sh ncurses_defs 45 AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \ 46 ${NCURSESDIR}/include/ncurses_defs > ${.TARGET} 47 48curses.h: $(TERMINFO_CAPS) curses.head curses.tail MKkey_defs.sh 49 cat ${.CURDIR}/../include/curses.head | \ 50 sed -e 's|SET_NEED_WCHAR_H|${SW_WIDEC}|' \ 51 -e 's|SET_NCURSES_CH_T|${SW_TYPE}|' > ${.TARGET}.new 52 AWK=awk sh ${NCURSESDIR}/include/MKkey_defs.sh $(TERMINFO_CAPS) >> ${.TARGET}.new 53.if defined(ENABLE_WIDEC) 54 cat ${NCURSESDIR}/include/curses.wide >> ${.TARGET}.new 55.endif 56 cat ${NCURSESDIR}/include/curses.tail >> ${.TARGET}.new 57 mv -f ${.TARGET}.new ${.TARGET} 58 59.include "../Makefile.inc" 60