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