Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/libhack Provide a way for crunched programs to...



details:   https://anonhg.NetBSD.org/src/rev/542b6aafc436
branches:  trunk
changeset: 458049:542b6aafc436
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jul 28 10:27:57 2019 +0000

description:
Provide a way for crunched programs to use a non-WIDE_CHAR version of
libcurses by setting HACK_CURSES=yes before including this makefile.

diffstat:

 distrib/utils/libhack/Makefile.inc |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r a2e0fb4d00df -r 542b6aafc436 distrib/utils/libhack/Makefile.inc
--- a/distrib/utils/libhack/Makefile.inc        Sun Jul 28 10:24:08 2019 +0000
+++ b/distrib/utils/libhack/Makefile.inc        Sun Jul 28 10:27:57 2019 +0000
@@ -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+=     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
 



Home | Main Index | Thread Index | Old Index