3 # Sets makefile source code for the different platforms
4 # Based on fix.sh of Allegro.
5 # Modified By Kronoman - In loving memory of my father.
10 echo "By Kronoman - In loving memory of my father"
15 # REMEMBER TO ALTER THIS TEST TO SUIT YOUR NEEDS!!!
18 # You first need to configure the platform
19 if [ ! -e target.os
]; then
20 echo "Before test, you first must configure your platform."
23 echo Testing
, please
wait...
26 if [ $?
-eq 0 -a -e test.run
]; then
29 echo "Congratulations, the test compiled!"
35 echo "The compilation returned a error or can't be runned!"
37 echo "(*) You have all compiler tools installed (gcc,make,etc)"
38 echo "(*) You have Allegro library properly installed (http://alleg.sf.net/)"
39 echo "(*) You have DUMB Music library properly installed (http://dumb.sf.net/)"
43 echo "Cleaning the test..."
50 echo "Usage: fix platform"
52 echo "Where platform is one of: djgpp, mingw32 or linux. "
55 echo "You can also call: fix test"
56 echo "to check if your system can compile this programs."
63 echo "Configuring for $1..."
65 if [ "$2" != "none" ]; then
66 echo "# Warning! This file will be overwritten by configuration routines!" > target.os
67 echo "TARGET=$2" >> target.os
72 # prepare for the given platform.
75 "djgpp" ) proc_fix
"DOS (djgpp)" "DJGPP";;
76 "mingw32" ) proc_fix
"Windows (Mingw32)" "MINGW32";;
77 "linux" ) proc_fix
"Linux (GCC)" "LINUX";;