1 .
include <unleashed.mk
>
3 NCURSES_DIR
= ${SRCTOP}/contrib
/ncurses
4 PROGSDIR
= ${NCURSES_DIR}/progs
9 CFLAGS
+= -D_XOPEN_SOURCE_EXTENDED
10 CFLAGS
+= -DENABLE_WIDEC
11 CFLAGS
+= -DSET_NCURSES_CH_T
=cchar_t
12 CFLAGS
+= -DSET_NEED_WCHAR_H
=1
13 CFLAGS
+= -I
${PROGSDIR}
15 CFLAGS
+= -I
${NCURSES_DIR}/include
21 tput.o
: ${PROGSDIR}/tput.c
22 ${CC} ${CFLAGS} -c
${PROGSDIR}/tput.c
-o
$@
24 transform.o
: ${PROGSDIR}/transform.c
25 ${CC} ${CFLAGS} -c
${PROGSDIR}/transform.c
-o
$@
27 tty_settings.o
: ${PROGSDIR}/tty_settings.c
28 ${CC} ${CFLAGS} -c
${PROGSDIR}/tty_settings.c
-o
$@
30 reset_cmd.o
: ${PROGSDIR}/reset_cmd.c
31 ${CC} ${CFLAGS} -c
${PROGSDIR}/reset_cmd.c
-o
$@
33 clear_cmd.o
: ${PROGSDIR}/clear_cmd.c
34 ${CC} ${CFLAGS} -c
${PROGSDIR}/clear_cmd.c
-o
$@
37 SRCS
+= tput.c tparm_type.c transform.c tty_settings.c reset_cmd.c clear_cmd.c
39 .
include <bsd.prog.mk
>