source: to-imperative/trunk/c++/rfp-MinGW.bat @ 2272

Last change on this file since 2272 was 2272, checked in by orlov, 14 years ago
  • Scripts for MinGW.
File size: 591 bytes
Line 
1@echo off
2
3setlocal enableextensions enabledelayedexpansion
4
5if not defined RFP_CONF_DONE call "%~dp0\config-MinGW.bat"
6
7if !%1==! exit /b 1
8
9for %%f in (%*) do (
10        if "%%~xf" == ".rf" rfpc %RFLAGS% %%f
11        if errorlevel 1 exit /b %ERRORLEVEL%
12)
13
14for %%f in (%*) do (
15        if "%%~xf" == ".rf" g++ %CFLAGS% -c -o "%%~dpf\%%~nf.o" "%%~dpf\%%~nf.cc"
16        if "%%~xf" == ".cc" g++ %CFLAGS% -c -o "%%~dpf\%%~nf.o" "%%~dpf\%%~nf.cc"
17        if errorlevel 1 exit /b %ERRORLEVEL%
18)
19
20set list=
21for %%f in (%*) do (
22        set list=!list! "%%~dpf\%%~nf.o"
23)
24
25echo on
26
27gcc -o "%~n1" %list% %LFLAGS%
28
Note: See TracBrowser for help on using the repository browser.