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