3 rem Sets makefile source code for the different platforms
\r
4 rem Based on fix.bat of Allegro.
\r
5 rem Modified By Kronoman - In loving memory of my father.
\r
11 echo By Kronoman - In loving memory of my father
\r
15 if [%1] == [linux] goto linux
\r
16 if [%1] == [djgpp] goto djgpp
\r
17 if [%1] == [mingw32] goto mingw32
\r
18 if [%1] == [test] goto test
\r
23 REM REMEMBER TO ALTER THIS TEST TO SUIT YOUR NEEDS!!!
\r
25 REM You first need to configure the platform
\r
26 if exist target.os goto targetok
\r
27 echo Before test, you first must configure your platform.
\r
32 echo Testing, please wait...
\r
35 if not errorlevel 0 goto testfail
\r
36 if not exist test.run goto testfail
\r
40 echo Congratulations, the test compiled!
\r
49 echo The compilation returned a error!
\r
51 echo (*) You have all compiler tools installed (gcc,make,etc)
\r
52 echo (*) You have Allegro library properly installed (http://alleg.sf.net/)
\r
53 echo (*) You have DUMB Music library properly installed (http://dumb.sf.net/)
\r
57 echo Cleaning the test...
\r
63 echo Configuring for DOS/djgpp...
\r
64 echo # Warning! This file will be overwritten by configuration routines! > target.os
\r
65 echo TARGET=DJGPP>> target.os
\r
70 echo Configuring for Windows/Mingw32...
\r
71 echo # Warning! This file will be overwritten by configuration routines! > target.os
\r
72 echo TARGET=MINGW32>> target.os
\r
77 echo Configuring for Linux/GCC...
\r
78 echo # Warning! This file will be overwritten by configuration routines! > target.os
\r
79 echo TARGET=LINUX>> target.os
\r
84 echo Usage: fix platform
\r
86 echo Where platform is one of: djgpp, mingw32 or linux.
\r
89 echo You can also call: fix test
\r
90 echo to check if your system can compile this programs.
\r