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