1 NCURSESDIR= ${.CURDIR}/../../contrib/ncurses
2 TERMINFO_CAPS= ${NCURSESDIR}/include/Caps
3 PROGSDIR= ${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${PROGSDIR}
14 CFLAGS+= -I${NCURSESDIR}/include
15 CFLAGS+= -I${.CURDIR}/../../lib/libncurses/include
19 DPADD= ${LIBNCURSES} ${LIBNCURSESW}
20 LDADD= -lncurses -lncursesw
23 AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \
24 ${NCURSESDIR}/include/ncurses_defs > ${.TARGET}
27 AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \
28 ${TERMINFO_CAPS} > ${.TARGET}
30 # Hack: It's really termsort.c, but bootstrap stage chokes on it
32 sh ${PROGSDIR}/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c
34 tic.o: ${PROGSDIR}/tic.c
35 ${CC} ${CFLAGS} -c ${PROGSDIR}/tic.c -o ${.TARGET}
37 transform.o: ${PROGSDIR}/transform.c
38 ${CC} ${CFLAGS} -c ${PROGSDIR}/transform.c -o ${.TARGET}
40 dump_entry.o: ${PROGSDIR}/dump_entry.c termsort.h
41 ${CC} ${CFLAGS} -c ${PROGSDIR}/dump_entry.c -o ${.TARGET}
43 CLEANFILES= ncurses_def.h parametrized.h termsort.c
45 SRCS= ncurses_def.h parametrized.h termsort.h
46 SRCS+= tic.c dump_entry.c transform.c
48 .include <bsd.prog.mk>