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

Last change on this file since 2272 was 2272, checked in by orlov, 14 years ago
  • Scripts for MinGW.
File size: 1.1 KB
Line 
1@echo off
2
3rem -1- C++ environment
4
5rem : MinGW /bin directory should be in %PATH%.  Add it if necessary.
6rem set PATH=C:\MinGW\bin;%PATH%
7
8rem -2- Refal+ options
9
10set RFLAGS=-B "%~dp0\..\lib"
11
12rem -3- C++ compiler options
13
14set CFLAGS=-DWINDOWS -I"%~dp0\libp++" -I"%~dp0\runtime" -I"%~dp0\lib" -I"%~dp0\include"
15
16rem : The following turns on an agressive C++ code optimization.
17rem : Be warned that it needs significant resources.
18
19set CFLAGS=%CFLAGS% -O2
20
21rem -4- Linker options
22
23set LFLAGS="%~dp0\lib\librf.a" "%~dp0\runtime\librfrt.a" "%~dp0\libp++\libpxx.a" -lgmp -lsupc++
24
25rem : If your programs use deep recursion you may want to increase
26rem : default stack size (which is 1 Mb) by uncommenting the following
27rem : line and setting an appropriate value (see
28rem : http://revenge.botik.ru/cgi-bin/twiki/view/Refaldevel/FrequentlyAskedQuestions).
29
30rem set LFLAGS=%LFLAGS% -Wl,--stack=8388608
31
32rem -5- Auxiliary
33
34set PATH="%~dp0";"%~dp0\compiler";%PATH%
35
36set RFP_CONF_DONE=1
37
38if not exist "%~dp0rfp.bat" (
39        echo copy "%~dp0rfp-MinGW.bat" "%~dp0rfp.bat"
40        copy "%~dp0rfp-MinGW.bat" "%~dp0rfp.bat"
41)
42
Note: See TracBrowser for help on using the repository browser.