tic(1): Add man page for new tic utility
[dragonfly.git] / usr.bin / tic / Makefile
1 NCURSESDIR=     ${.CURDIR}/../../contrib/ncurses
2 TERMINFO_CAPS=  ${NCURSESDIR}/include/Caps
3 PROGSDIR=       ${NCURSESDIR}/progs
4 .PATH:          ${PROGSDIR}
5
6 PROG=           tic
7
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}
13 CFLAGS+=        -I.
14 CFLAGS+=        -I${NCURSESDIR}/include
15 CFLAGS+=        -I${.CURDIR}/../../lib/libncurses/include
16 CFLAGS+=        -I${.CURDIR}
17 CFLAGS+=        -I${.OBJDIR}
18
19 DPADD=          ${LIBNCURSES} ${LIBNCURSESW}
20 LDADD=          -lncurses -lncursesw
21
22 ncurses_def.h:
23         AWK=awk sh ${NCURSESDIR}/include/MKncurses_def.sh \
24           ${NCURSESDIR}/include/ncurses_defs > ${.TARGET}
25
26 parametrized.h:
27         AWK=awk sh ${NCURSESDIR}/include/MKparametrized.sh \
28           ${TERMINFO_CAPS} > ${.TARGET}
29
30 # Hack: It's really termsort.c, but bootstrap stage chokes on it
31 termsort.h:
32         sh ${PROGSDIR}/MKtermsort.sh awk ${TERMINFO_CAPS} > termsort.c
33
34 tic.o: ${PROGSDIR}/tic.c
35         ${CC} ${CFLAGS} -c ${PROGSDIR}/tic.c -o ${.TARGET}
36
37 transform.o: ${PROGSDIR}/transform.c
38         ${CC} ${CFLAGS} -c ${PROGSDIR}/transform.c -o ${.TARGET}
39
40 dump_entry.o: ${PROGSDIR}/dump_entry.c termsort.h
41         ${CC} ${CFLAGS} -c ${PROGSDIR}/dump_entry.c -o ${.TARGET}
42
43 CLEANFILES=     ncurses_def.h parametrized.h termsort.c
44
45 SRCS=   ncurses_def.h parametrized.h termsort.h
46 SRCS+=  tic.c dump_entry.c transform.c
47
48 .include <bsd.prog.mk>