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
22 _termsortc
= termsort.c
23 beforedepend
: termsort.c
26 sh
${PROGSDIR}/MKtermsort.sh awk
${TERMINFO_CAPS} > termsort.c
28 infocmp.o
: ${PROGSDIR}/infocmp.c
29 ${CC} ${CFLAGS} -c
${PROGSDIR}/infocmp.c
-o
$@
31 dump_entry.o
: ${PROGSDIR}/dump_entry.c
${_termsortc}
32 ${CC} ${CFLAGS} -c
${PROGSDIR}/dump_entry.c
-o
$@
34 CLEANFILES
= termsort.c
36 SRCS
+= infocmp.c dump_entry.c
38 .
include <bsd.prog.mk
>