19e71362fSJohn MarinoNCURSESDIR= ${.CURDIR}/../../contrib/ncurses 29e71362fSJohn MarinoTERMINFO_CAPS= ${NCURSESDIR}/include/Caps 39e71362fSJohn MarinoPROGSDIR= ${NCURSESDIR}/progs 49e71362fSJohn Marino.PATH: ${PROGSDIR} 59e71362fSJohn Marino 69e71362fSJohn MarinoPROG= tic 79e71362fSJohn Marino 89e71362fSJohn MarinoCFLAGS+= -D_XOPEN_SOURCE_EXTENDED 99e71362fSJohn MarinoCFLAGS+= -DENABLE_WIDEC 109e71362fSJohn MarinoCFLAGS+= -DSET_NCURSES_CH_T=cchar_t 119e71362fSJohn MarinoCFLAGS+= -DSET_NEED_WCHAR_H=1 129e71362fSJohn MarinoCFLAGS+= -I${PROGSDIR} 139e71362fSJohn MarinoCFLAGS+= -I. 149e71362fSJohn MarinoCFLAGS+= -I${NCURSESDIR}/include 159e71362fSJohn MarinoCFLAGS+= -I${.CURDIR}/../../lib/libncurses/include 169e71362fSJohn MarinoCFLAGS+= -I${.CURDIR} 179e71362fSJohn MarinoCFLAGS+= -I${.OBJDIR} 189e71362fSJohn Marino 1923b3ef78SJohn Marino# Ideally this should be -lprivate_ncursesw 206b7d23fcSJohn Marino# Wide version can be used when DragonFly 3.3 branch is created 2123b3ef78SJohn MarinoDPADD= ${LIBNCURSES} 2223b3ef78SJohn MarinoLDADD= -lprivate_ncurses 23cfe0a42bSJohn MarinoCFLAGS+= -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses 2438b720cdSzrjLDFLAGS+= ${PRIVATELIB_LDFLAGS} 259e71362fSJohn Marino 269e71362fSJohn Marinoncurses_def.h: 279e71362fSJohn Marino AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \ 289e71362fSJohn Marino ${NCURSESDIR}/include/ncurses_defs > ${.TARGET} 299e71362fSJohn Marino 309e71362fSJohn Marinoparametrized.h: 319e71362fSJohn Marino AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \ 329e71362fSJohn Marino ${TERMINFO_CAPS} > ${.TARGET} 339e71362fSJohn Marino 348e57c7e6Szrjbeforedepend: termsort.c 35*c2e4744eSzrj 36*c2e4744eSzrjtermsort.c: 379e71362fSJohn Marino sh ${PROGSDIR}/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c 389e71362fSJohn Marino 399e71362fSJohn Marinotic.o: ${PROGSDIR}/tic.c 409e71362fSJohn Marino ${CC} ${CFLAGS} -c ${PROGSDIR}/tic.c -o ${.TARGET} 419e71362fSJohn Marino 429e71362fSJohn Marinotransform.o: ${PROGSDIR}/transform.c 439e71362fSJohn Marino ${CC} ${CFLAGS} -c ${PROGSDIR}/transform.c -o ${.TARGET} 449e71362fSJohn Marino 45*c2e4744eSzrjdump_entry.o: ${PROGSDIR}/dump_entry.c termsort.c 469e71362fSJohn Marino ${CC} ${CFLAGS} -c ${PROGSDIR}/dump_entry.c -o ${.TARGET} 479e71362fSJohn Marino 489e71362fSJohn MarinoCLEANFILES= ncurses_def.h parametrized.h termsort.c 499e71362fSJohn Marino 50423ad346SzrjSRCS= ncurses_def.h parametrized.h 513eec8774SJohn MarinoSRCS+= tic.c dump_entry.c tparm_type.c transform.c 529e71362fSJohn Marino 539e71362fSJohn Marino.include <bsd.prog.mk> 54