1NCURSESDIR= ${.CURDIR}/../../contrib/ncurses 2TERMINFO_CAPS= ${NCURSESDIR}/include/Caps 3PROGSDIR= ${NCURSESDIR}/progs 4.PATH: ${PROGSDIR} 5 6PROG= tic 7 8CFLAGS+= -D_XOPEN_SOURCE_EXTENDED 9CFLAGS+= -DENABLE_WIDEC 10CFLAGS+= -DSET_NCURSES_CH_T=cchar_t 11CFLAGS+= -DSET_NEED_WCHAR_H=1 12CFLAGS+= -I${PROGSDIR} 13CFLAGS+= -I. 14CFLAGS+= -I${NCURSESDIR}/include 15CFLAGS+= -I${.CURDIR}/../../lib/libncurses/include 16CFLAGS+= -I${.CURDIR} 17CFLAGS+= -I${.OBJDIR} 18 19# Ideally this should be -lncursesw 20# Wide version can be used when DragonFly 3.3 branch is created 21DPADD= ${LIBNCURSES} 22LDADD= -lncurses 23 24ncurses_def.h: 25 AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \ 26 ${NCURSESDIR}/include/ncurses_defs > ${.TARGET} 27 28parametrized.h: 29 AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \ 30 ${TERMINFO_CAPS} > ${.TARGET} 31 32# Hack: It's really termsort.c, but bootstrap stage chokes on it 33termsort.h: 34 sh ${PROGSDIR}/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c 35 36tic.o: ${PROGSDIR}/tic.c 37 ${CC} ${CFLAGS} -c ${PROGSDIR}/tic.c -o ${.TARGET} 38 39transform.o: ${PROGSDIR}/transform.c 40 ${CC} ${CFLAGS} -c ${PROGSDIR}/transform.c -o ${.TARGET} 41 42dump_entry.o: ${PROGSDIR}/dump_entry.c termsort.h 43 ${CC} ${CFLAGS} -c ${PROGSDIR}/dump_entry.c -o ${.TARGET} 44 45CLEANFILES= ncurses_def.h parametrized.h termsort.c 46 47SRCS= ncurses_def.h parametrized.h termsort.h 48SRCS+= tic.c dump_entry.c transform.c 49 50.include <bsd.prog.mk>