1 NCURSESDIR= ${.CURDIR}/../../../contrib/ncurses
2 TERMINFO_CAPS= ${NCURSESDIR}/include/Caps
3 .PATH: ${NCURSESDIR}/progs
7 CFLAGS+= -DENABLE_WIDEC
8 CFLAGS+= -DSET_NCURSES_CH_T=cchar_t
9 CFLAGS+= -DSET_NEED_WCHAR_H=1
10 CFLAGS+= -I${NCURSESDIR}/progs
12 CFLAGS+= -I${NCURSESDIR}/include
13 CFLAGS+= -I${.OBJDIR}/../libtic
17 LDADD+= ../libtic/libtic.na
19 ncurses_def.h: MKncurses_def.sh ncurses_defs
20 AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \
21 ${NCURSESDIR}/include/ncurses_defs > ${.TARGET}
23 parametrized.h: termsort.c
24 AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \
25 ${TERMINFO_CAPS} > ${.TARGET}
28 sh ${NCURSESDIR}/progs/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c
30 tic_next.nx: ../libtic/libtic.na
32 CLEANFILES= ncurses_def.h parametrized.h termsort.c
34 SRCS= ncurses_def.h parametrized.h tic.c dump_entry.c tparm_type.c transform.c
36 build-tools: tic_next.nx
38 # this tic_next is used in place, it is not installed anywhere
41 .include <bsd.hostprog.mk>