Files
magic/readline/Makefile
T
Tim Edwards 1cec414618 Added the contents of the "readline" module back. This is
generally unused, as it is incompatible with the Tcl/Tk build of
magic.  However, I had not intended to remove it, only move the
name from "readline-4.3" to "readline".  But "readline/readline"
was in .gitignore, which caused the contents to be removed from
the repository.  This commit restores those files, and also
prevents the readline directory Makefile from making a symbolic
link called "readline" to itself, which was causing compile-time
issues.  The readline code is only kept for backwards compatibility
with ancient versions of magic not using the Tcl/Tk interpreter.
2025-01-10 09:58:57 -05:00

28 lines
674 B
Makefile

MAGICDIR = ..
include ${MAGICDIR}/defs.mak
module: readline readline/libreadline.a readline/libhistory.a
depend:
# NOTE: Previously, source code was in a directory readline-4.3 and
# recipe "readline" created a symbolic link to it. This symbolic
# link has been removed, and code is now just in real directory
# "readline".
readline:
readline/libhistory.a: readline/libreadline.a
readline/libreadline.a:
@echo --- building GNU readline
(cd readline; CC="${CC}" CFLAGS="${CFLAGS}" LOCAL_DEFS="${READLINE_DEFS}" ./configure --disable-shared ; ${MAKE})
clean:
@if ( test -f readline/Makefile ) ; then \
(cd readline && ${MAKE} distclean) ; \
fi
${RM} readline