1 NCURSESDIR= ${.CURDIR}/../../../contrib/ncurses
2 TERMINFO_CAPS= ${NCURSESDIR}/include/Caps
3 .PATH: ${NCURSESDIR}/progs
7 CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
8 CFLAGS+= -DENABLE_WIDEC
9 CFLAGS+= -DSET_NCURSES_CH_T=cchar_t
10 CFLAGS+= -DSET_NEED_WCHAR_H=1
11 CFLAGS+= -I${NCURSESDIR}/progs
13 CFLAGS+= -I${NCURSESDIR}/include
14 CFLAGS+= -I${.OBJDIR}/../libtic
18 LDADD+= ../libtic/libtic.na
20 ncurses_def.h: MKncurses_def.sh ncurses_defs
21 AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \
22 ${NCURSESDIR}/include/ncurses_defs > ${.TARGET}
24 parametrized.h: termsort.c
25 AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \
26 ${TERMINFO_CAPS} > ${.TARGET}
29 sh ${NCURSESDIR}/progs/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c
31 tic_next.nx: ../libtic/libtic.na
33 CLEANFILES= ncurses_def.h parametrized.h termsort.c
35 SRCS= ncurses_def.h parametrized.h tic.c dump_entry.c tparm_type.c transform.c
37 build-tools: tic_next.nx
39 # this tic_next is used in place, it is not installed anywhere
42 .include <bsd.hostprog.mk>