Changeset 2200


Ignore:
Timestamp:
Dec 25, 2006, 9:31:19 PM (14 years ago)
Author:
orlov
Message:
  • Correctly work with spaces in file names and with files in other drives (in Windows).
Location:
to-imperative/trunk/c++
Files:
4 edited

Legend:

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

    r2189 r2200  
    2929rem -3- Refal+ options
    3030
    31 set RFLAGS=-B %~dp0\..\lib
     31set RFLAGS=-B "%~dp0\..\lib"
    3232
    3333rem -4- C++ compiler options
    3434
    35 set CFLAGS=/TP /EHsc /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /DWINDOWS /DRFRT_WITHOUT_MPINT /I%~dp0\libp++ /I%~dp0\runtime /I%~dp0\lib /I%~dp0\include
     35set CFLAGS=/TP /EHsc /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /DWINDOWS /DRFRT_WITHOUT_MPINT /I"%~dp0\libp++" /I"%~dp0\runtime" /I"%~dp0\lib" /I"%~dp0\include"
    3636
    3737rem : The following turns on an agressive C++ code optimization.
    3838rem : Be warned that it needs significant resources.
    3939
    40 set CFLAGS=%CFLAGS% /O2
     40rem set CFLAGS=%CFLAGS% /O2
    4141
    4242rem -5- Linker options
    4343
    44 set LFLAGS=%~dp0\libp++\pxx.lib %~dp0\runtime\rfrt.lib %~dp0\lib\rf.lib
     44set LFLAGS="%~dp0\libp++\pxx.lib" "%~dp0\runtime\rfrt.lib" "%~dp0\lib\rf.lib"
    4545
    4646rem : If your programs use deep recursion you may want to increase
     
    5353rem -6- Auxiliary
    5454
    55 set PATH=%~dp0;%~dp0\compiler;%PATH%
     55set PATH="%~dp0";"%~dp0\compiler";%PATH%
    5656
    5757set RFP_CONF_DONE=1
  • to-imperative/trunk/c++/lib/makeall.bat

    r2189 r2200  
    33setlocal enableextensions enabledelayedexpansion
    44
    5 if not defined RFP_CONF_DONE call %~dp0\..\config.bat
     5if not defined RFP_CONF_DONE call "%~dp0\..\config.bat"
    66
    77if not "%1" == "-l" (
     
    99                cd %%d
    1010                for /F %%f in (file_list) do cl %CFLAGS% /c %%f.cc
    11                 cd %~dp0
     11                cd "%~dp0"
    1212        )
    1313)
  • to-imperative/trunk/c++/makeall.bat

    r2189 r2200  
    33if not defined RFP_CONF_DONE call "%~dp0\config.bat"
    44
    5 cd "%~dp0\libp++"
     5cd /d "%~dp0\libp++"
    66call makeall
    77@if errorlevel 1 goto end
    88
    9 cd "%~dp0\runtime"
     9cd /d "%~dp0\runtime"
    1010call makeall
    1111@if errorlevel 1 goto end
    1212
    13 cd "%~dp0\lib"
     13cd /d "%~dp0\lib"
    1414call makeall
    1515@if errorlevel 1 goto end
    1616
    17 cd "%~dp0\compiler"
     17cd /d "%~dp0\compiler"
    1818call makeall
    1919@if errorlevel 1 goto end
    2020
    2121:end
    22 cd "%~dp0"
     22cd /d "%~dp0"
  • to-imperative/trunk/c++/rfp.bat

    r2191 r2200  
    33setlocal enableextensions enabledelayedexpansion
    44
    5 if not defined RFP_CONF_DONE call %~p0\config.bat
     5if not defined RFP_CONF_DONE call "%~dp0\config.bat"
    66
    7 if "%*" == "" exit /b 1
     7if %* == "" exit /b 1
    88
    99for %%f in (%*) do (
     
    1313
    1414for %%f in (%*) do (
    15         if "%%~xf" == ".rf" cl %CFLAGS% /c /Fo%%~pf\%%~nf.obj %%~pf\%%~nf.cc
    16         if "%%~xf" == ".cc" cl %CFLAGS% /c /Fo%%~pf\%%~nf.obj %%~pf\%%~nf.cc
     15        if "%%~xf" == ".rf" cl %CFLAGS% /c /Fo"%%~dpf\%%~nf.obj" "%%~dpf\%%~nf.cc"
     16        if "%%~xf" == ".cc" cl %CFLAGS% /c /Fo"%%~dpf\%%~nf.obj" "%%~dpf\%%~nf.cc"
    1717        if errorlevel 1 exit /b %ERRORLEVEL%
    1818)
     
    2020set list=
    2121for %%f in (%*) do (
    22         set list=!list! %%~pf\%%~nf.obj
     22        set list=!list! "%%~dpf\%%~nf.obj"
    2323)
    2424
Note: See TracChangeset for help on using the changeset viewer.