From ebfe279f3de64dcf53279669e61cd8db8e82db66 Mon Sep 17 00:00:00 2001 From: Juan Manuel Guerrero Date: Sun, 19 Nov 2017 17:58:44 +0200 Subject: Support building the DJGPP port with Readline. --- pc/ChangeLog | 10 ++++++++++ pc/Makefile | 15 +++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/pc/ChangeLog b/pc/ChangeLog index 155c9dc2..4f081b4a 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,13 @@ +2017-11-19 Juan Manuel Guerrero + + * pc/Makefile (default): Add lines for the djgpp-readline-mpfr + and the djgpp-readline targets. + (djgpp-readline): New target, passes -DHAVE_LIBREADLINE to the + compiler and adds -lreadline to the linker command line. + (djgpp-readline-mpfr): New target, passes -DHAVE_LIBREADLINE and + -DHAVE_MPFR to the compiler and adds -lreadline -lmpfr -lgmp to + the linker command line. + 2017-11-13 Juan Manuel Guerrero * Makefile (default): Add a line for the djgpp-mpfr target. diff --git a/pc/Makefile b/pc/Makefile index 8b53cdaa..fb34965b 100644 --- a/pc/Makefile +++ b/pc/Makefile @@ -23,6 +23,9 @@ default: @echo " djgpp ... DOS 32-bit exe [GNU C, Delorie, v2] " @echo " djgpp-mpfr . Like djgpp, but with MPFR " @echo " [You will need to have GNU MPFR library installed.] " + @echo " djgpp-readline . Like djgpp, but with readline " + @echo " [You will need to have GNU readline library installed.] " + @echo " djgpp-readline-mpfr . djgpp with readline and MPFR " @echo " emx ..... OS/2 32-bit exe [emx/gcc; uses emxlibc.dll] " @echo " emxnt ... NT exe [emx/gcc with RSXNT] " @echo " emxbnd .. OS/2 and DOS 32-bit exe [emx/gcc] " @@ -133,6 +136,18 @@ djgpp-mpfr: LNK=LDJG LF=-s LF2="-lmpfr -lgmp -lm" \ BIND=BDJG +djgpp-readline: + $(MAK) all \ + CC=gcc O=.o CF='-O2 -DHAVE_LIBREADLINE' \ + LNK=LDJG LF=-s LF2="-lreadline -lm" \ + BIND=BDJG + +djgpp-readline-mpfr: + $(MAK) all \ + CC=gcc O=.o CF='-O2 -DHAVE_LIBREADLINE -DHAVE_MPFR' \ + LNK=LDJG LF=-s LF2="-lreadline -lmpfr -lgmp -lm" \ + BIND=BDJG + #======================================================================== #========================== EMX ========================================= #======================================================================== -- cgit v1.2.3