Line | |
---|
1 | @echo off |
---|
2 | |
---|
3 | rem -1- C++ environment |
---|
4 | |
---|
5 | rem : MinGW /bin directory should be in %PATH%. Add it if necessary. |
---|
6 | rem set PATH=C:\MinGW\bin;%PATH% |
---|
7 | |
---|
8 | rem -2- Refal+ options |
---|
9 | |
---|
10 | set RFLAGS=-B "%~dp0\..\lib" |
---|
11 | |
---|
12 | rem -3- C++ compiler options |
---|
13 | |
---|
14 | set CFLAGS=-DWINDOWS -I"%~dp0\libp++" -I"%~dp0\runtime" -I"%~dp0\lib" -I"%~dp0\include" |
---|
15 | |
---|
16 | rem : The following turns on an agressive C++ code optimization. |
---|
17 | rem : Be warned that it needs significant resources. |
---|
18 | |
---|
19 | set CFLAGS=%CFLAGS% -O2 |
---|
20 | |
---|
21 | rem -4- Linker options |
---|
22 | |
---|
23 | set LFLAGS="%~dp0\lib\librf.a" "%~dp0\runtime\librfrt.a" "%~dp0\libp++\libpxx.a" -lgmp -lsupc++ |
---|
24 | |
---|
25 | rem : If your programs use deep recursion you may want to increase |
---|
26 | rem : default stack size (which is 1 Mb) by uncommenting the following |
---|
27 | rem : line and setting an appropriate value (see |
---|
28 | rem : http://revenge.botik.ru/cgi-bin/twiki/view/Refaldevel/FrequentlyAskedQuestions). |
---|
29 | |
---|
30 | rem set LFLAGS=%LFLAGS% -Wl,--stack=8388608 |
---|
31 | |
---|
32 | rem -5- Auxiliary |
---|
33 | |
---|
34 | set PATH="%~dp0";"%~dp0\compiler";%PATH% |
---|
35 | |
---|
36 | set RFP_CONF_DONE=1 |
---|
37 | |
---|
38 | if 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.