diff options
author | Juan Manuel Guerrero <juan.guerrero@gmx.de> | 2017-11-14 19:07:12 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-11-14 19:07:12 +0200 |
commit | fe60f215f0dc446e39d69d4663cbb8c5ef406535 (patch) | |
tree | 90b0ba49024a2e812970d6f6a327aec3d1026b75 /pc | |
parent | 3f5b8e508f0fcaba4447ed98193e2ea3b8560ad9 (diff) | |
download | egawk-fe60f215f0dc446e39d69d4663cbb8c5ef406535.tar.gz egawk-fe60f215f0dc446e39d69d4663cbb8c5ef406535.tar.bz2 egawk-fe60f215f0dc446e39d69d4663cbb8c5ef406535.zip |
Support building with MPFR in the DJGPP port.
Diffstat (limited to 'pc')
-rw-r--r-- | pc/ChangeLog | 6 | ||||
-rw-r--r-- | pc/Makefile | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/pc/ChangeLog b/pc/ChangeLog index 51a71d95..155c9dc2 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-13 Juan Manuel Guerrero <juan.guerrero@gmx.de> + + * Makefile (default): Add a line for the djgpp-mpfr target. + (djgpp-mpfr): New target, passes -DHAVE_MPFR to the + compiler and adds -lmpfr -lgmp to the linker command line. + 2017-11-11 Juan Manuel Guerrero <juan.guerrero@gmx.de> * pc/Makefile.tst (sigpipe1): Exclude DJGPP from the sigpipe1 test. diff --git a/pc/Makefile b/pc/Makefile index bdec371c..8b53cdaa 100644 --- a/pc/Makefile +++ b/pc/Makefile @@ -21,6 +21,8 @@ default: @echo "Enter $(MAK) target " @echo " where 'target' is chosen from " @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 " 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] " @@ -125,6 +127,12 @@ djgpp-debug: LNK=LDJG LF2=-lm \ BIND=BDJG +djgpp-mpfr: + $(MAK) all \ + CC=gcc O=.o CF='-O2 -DHAVE_MPFR' \ + LNK=LDJG LF=-s LF2="-lmpfr -lgmp -lm" \ + BIND=BDJG + #======================================================================== #========================== EMX ========================================= #======================================================================== |