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