Changeset 2278


Ignore:
Timestamp:
Jan 22, 2007, 11:27:35 PM (14 years ago)
Author:
orlov
Message:
  • Special section for GMP in config.
  • Always copy rfp.bat when do configuring.
Location:
to-imperative/trunk/c++
Files:
3 edited

Legend:

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

    r2275 r2278  
    3535
    3636
    37 rem -2- Refal+ options
     37rem -2- GMP library location
     38
     39rem : You can copy gmp.h to c++\include and gmp.lib to c++\lib.
     40rem : Alternatively set two variables below to directories containing gmp.h and
     41rem : gmp.lib correspondingly.
     42rem : For example:
     43rem set GMPInclude=C:\gmp-4.1\include
     44rem set GMPLib=C:\gmp-4.1\lib
     45
     46rem : If you don't want to use GMP then uncomment the next line (only 32-bit
     47rem : integer arithmetics would be available for Refal programs).
     48rem set NOGMP=/DRFRT_WITHOUT_MPINT
     49
     50rem -3- Refal+ options
    3851
    3952set RFLAGS=-B "%~dp0\..\lib"
    4053
    4154
    42 rem -3- C++ compiler options
     55rem -4- C++ compiler options
    4356
    44 set CFLAGS=/TP /EHsc /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /DWINDOWS
     57set CFLAGS=/TP /EHsc /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE
     58set CFLAGS=%CFLAGS% /DWINDOWS %NOGMP%
    4559
    46 rem : %Include% should contain directory with gmp.h.  Add it if necessary.
    47 set Include=%~dp0\libp++;%~dp0\runtime;%~dp0\lib;%~dp0\include;%Include%
     60set Include=%~dp0\libp++;%~dp0\runtime;%~dp0\lib;%~dp0\include;%GMPInclude%;%Include%
    4861
    4962rem : The following turns on an agressive C++ code optimization.
     
    5366
    5467
    55 rem -4- Linker options
     68rem -5- Linker options
    5669
    57 set LFLAGS=gmp.lib pxx.lib rfrt.lib rf.lib
     70set LFLAGS=pxx.lib rfrt.lib rf.lib
    5871
    59 rem : %Lib% should contain directory with gmp.lib.  Add it if necessary.
    60 set Lib=%~dp0\libp++;%~dp0\runtime;%~dp0\lib;%Lib%
     72if not defined NOGMP set LFLAGS=gmp.lib %LFLAGS%
     73
     74set Lib=%~dp0\libp++;%~dp0\runtime;%~dp0\lib;%GMPLib%;%Lib%
    6175
    6276rem : If your programs use deep recursion you may want to increase
    6377rem : default stack size (which is 1 Mb) by uncommenting the following
    6478rem : line and setting an appropriate value (see
    65 rem : http://revenge.botik.ru/cgi-bin/twiki/view/Refaldevel/FrequentlyAskedQuestions).
     79rem : http://wiki.botik.ru/Refaldevel/FrequentlyAskedQuestions).
    6680
    6781rem set LFLAGS=%LFLAGS% /STACK:8388608
    6882
    6983
    70 rem -5- Auxiliary
     84rem -6- Auxiliary
    7185
    7286set PATH="%~dp0";"%~dp0\compiler";%PATH%
     
    7488set RFP_CONF_DONE=1
    7589
    76 if not exist "%~dp0rfp.bat" (
     90if not defined RFP_SCRIPT (
    7791        echo copy "%~dp0rfp-VS.bat" "%~dp0rfp.bat"
    7892        copy "%~dp0rfp-VS.bat" "%~dp0rfp.bat"
  • to-imperative/trunk/c++/lib/make-VS.bat

    r2274 r2278  
    22
    33setlocal enableextensions enabledelayedexpansion
     4
     5@set RFP_SCRIPT=1
    46
    57if not defined RFP_CONF_DONE call "%~dp0\..\config-VS.bat"
  • to-imperative/trunk/c++/rfp-VS.bat

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