Changeset 2282


Ignore:
Timestamp:
Jan 23, 2007, 12:58:02 AM (14 years ago)
Author:
orlov
Message:
  • Changes for MinGW as in #2278 for VS.
Location:
to-imperative/trunk/c++
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/c++/config-MinGW.bat

    r2272 r2282  
    44
    55rem : MinGW /bin directory should be in %PATH%.  Add it if necessary.
     6rem : For example:
    67rem set PATH=C:\MinGW\bin;%PATH%
    78
    8 rem -2- Refal+ options
     9rem -2- GMP library location
     10
     11rem : If your copy of GMP library isn't in standard location in MinGW (top
     12rem : level lib and include directories) then set two variables below to
     13rem : directories containing gmp.h and gmp.lib correspondingly.
     14rem : For example:
     15rem set GMPInclude=C:\gmp-4.1\include
     16rem set GMPLib=C:\gmp-4.1\lib
     17
     18rem : If you don't want to use GMP then uncomment the next line (only 32-bit
     19rem : integer arithmetics would be available for Refal programs).
     20rem set NOGMP=-DRFRT_WITHOUT_MPINT
     21
     22rem -3- Refal+ options
    923
    1024set RFLAGS=-B "%~dp0\..\lib"
    1125
    12 rem -3- C++ compiler options
     26rem -4- C++ compiler options
    1327
    14 set CFLAGS=-DWINDOWS -I"%~dp0\libp++" -I"%~dp0\runtime" -I"%~dp0\lib" -I"%~dp0\include"
     28set CFLAGS=-I"%~dp0\libp++" -I"%~dp0\runtime" -I"%~dp0\lib" -I"%~dp0\include"
     29if defined GMPInclude set CFLAGS=%CFLAGS% -I"%GMPInclude%"
     30set CFLAGS=%CFLAGS% -DRFRT_USE_STATEMENT_EXPR -DWINDOWS %NOGMP%
    1531
    1632rem : The following turns on an agressive C++ code optimization.
     
    1935set CFLAGS=%CFLAGS% -O2
    2036
    21 rem -4- Linker options
     37rem -5- Linker options
    2238
    23 set LFLAGS="%~dp0\lib\librf.a" "%~dp0\runtime\librfrt.a" "%~dp0\libp++\libpxx.a" -lgmp -lsupc++
     39set LFLAGS=-L"%~dp0\lib" -L"%~dp0\runtime" -L"%~dp0\libp++" -lrf -lrfrt -lpxx
     40if defined GMPLib set LFLAGS=%LFLAGS% -L"%GMPLib%"
     41if not defined NOGMP set LFLAGS=%LFLAGS% -lgmp
     42set LFLAGS=%LFLAGS% -lsupc++
    2443
    2544rem : If your programs use deep recursion you may want to increase
     
    3049rem set LFLAGS=%LFLAGS% -Wl,--stack=8388608
    3150
    32 rem -5- Auxiliary
     51rem -6- Auxiliary
    3352
    3453set PATH="%~dp0";"%~dp0\compiler";%PATH%
     
    3655set RFP_CONF_DONE=1
    3756
    38 if not exist "%~dp0rfp.bat" (
     57if not defined RFP_SCRIPT (
    3958        echo copy "%~dp0rfp-MinGW.bat" "%~dp0rfp.bat"
    4059        copy "%~dp0rfp-MinGW.bat" "%~dp0rfp.bat"
  • to-imperative/trunk/c++/lib/dir_list

    r2269 r2282  
    11Access
    22Apply
     3Arithm
    34ShortArithm
    4 Arithm
    55Bit
    66Box
  • to-imperative/trunk/c++/lib/make-MinGW.bat

    r2272 r2282  
    11@setlocal enableextensions enabledelayedexpansion
     2
     3@set RFP_SCRIPT=1
    24
    35@if not defined RFP_CONF_DONE call "%~dp0\..\config-MinGW.bat"
  • to-imperative/trunk/c++/rfp-MinGW.bat

    r2272 r2282  
    22
    33setlocal enableextensions enabledelayedexpansion
     4
     5@set RFP_SCRIPT=1
    46
    57if not defined RFP_CONF_DONE call "%~dp0\config-MinGW.bat"
Note: See TracChangeset for help on using the changeset viewer.