1 .
include <unleashed.mk
>
3 NCURSES_DIR
= ${SRCTOP}/contrib
/ncurses
4 TERMINFO_CAPS
= ${NCURSES_DIR}/include/Caps
5 PROGSDIR
= ${NCURSES_DIR}/progs
10 CFLAGS
+= -D_XOPEN_SOURCE_EXTENDED
11 CFLAGS
+= -DENABLE_WIDEC
12 CFLAGS
+= -DSET_NCURSES_CH_T
=cchar_t
13 CFLAGS
+= -DSET_NEED_WCHAR_H
=1
14 CFLAGS
+= -I
${PROGSDIR}
16 CFLAGS
+= -I
${NCURSES_DIR}/include
23 AWK
=awk sh
${NCURSES_DIR}/include/MKncurses_def.sh \
24 ${NCURSESDIR}/include/ncurses_defs
> $@
27 AWK
=awk sh
${NCURSES_DIR}/include/MKparametrized.sh \
30 _termsortc
= termsort.c
31 beforedepend
: termsort.c
34 sh
${PROGSDIR}/MKtermsort.sh awk
${TERMINFO_CAPS} > termsort.c
36 tic.o
: ${PROGSDIR}/tic.c
37 ${CC} ${CFLAGS} -c
${PROGSDIR}/tic.c
-o
$@
39 transform.o
: ${PROGSDIR}/transform.c
40 ${CC} ${CFLAGS} -c
${PROGSDIR}/transform.c
-o
$@
42 dump_entry.o
: ${PROGSDIR}/dump_entry.c
${_termsortc}
43 ${CC} ${CFLAGS} -c
${PROGSDIR}/dump_entry.c
-o
$@
45 CLEANFILES
= ncurses_def.h parametrized.h termsort.c clear.dep
47 SRCS
= ncurses_def.h parametrized.h
49 SRCS
+= tic.c dump_entry.c tparm_type.c transform.c
52 cd
${DESTDIR}/usr
/bin
&& ln
-f tic captoinfo
54 .
include <bsd.prog.mk
>