Module Name: src Committed By: martin Date: Sun Jul 28 10:27:58 UTC 2019
Modified Files: src/distrib/utils/libhack: Makefile.inc Log Message: Provide a way for crunched programs to use a non-WIDE_CHAR version of libcurses by setting HACK_CURSES=yes before including this makefile. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/distrib/utils/libhack/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/libhack/Makefile.inc diff -u src/distrib/utils/libhack/Makefile.inc:1.31 src/distrib/utils/libhack/Makefile.inc:1.32 --- src/distrib/utils/libhack/Makefile.inc:1.31 Sun Jul 28 10:21:18 2019 +++ src/distrib/utils/libhack/Makefile.inc Sun Jul 28 10:27:57 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.31 2019/07/28 10:21:18 martin Exp $ +# $NetBSD: Makefile.inc,v 1.32 2019/07/28 10:27:57 martin Exp $ # # Include this fragment to build libhack.o # It is .o and not .a to make sure these are the @@ -29,6 +29,19 @@ HACKOBJS+= getcap.o getgrent.o getnet.o HACKOBJS+= yplib.o .endif +.if ${HACK_CURSES:Uno} == "yes" +CURSES_SRC!= cd ${HACKSRC}/../../../lib/libcurses && \ + ${MAKE} DISABLE_WCHAR=yes -v SRCS + +.for s in ${CURSES_SRC} +CPPFLAGS.${s}+= -DDISABLE_WCHAR -DSMALL \ + -I${HACKSRC}/../../../lib/libcurses \ + -I${HACKSRC}/../../../lib/libterminfo +HACKOBJS+= ${s:S/.c/.o/} +${s:S/.c/.o/}: ${HACKSRC}/../../../lib/libcurses/${s} +.endfor +.endif + CPPFLAGS.runetable.c+= -I${HACKSRC}/../../../lib/libc/citrus \ -DALL_80_TO_FF_SW1