Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / apps / openchess / build.sh
blob4cc949a69e8e1f0537e52537ebe4da9d30470246
1 #!/bin/bash
3 echo "-= OpenChess =-"
5 cd src
7 if [ "$1" = "clean" ] ; then
8 rm -rf *.o platform/zexos/*.o openchess ../bin/openchess ../bin/openchess.img
10 echo "All object and binary files ware deleted"
12 exit
15 echo "Compilation process starting, please wait ..."
17 if [ "$1" = "linux" ] ; then
18 make -f makefile-linux && OK=1
19 else
20 make -f makefile-zexos && OK=1
23 cd ..
25 if [ $OK ]; then
26 cp src/openchess bin/
28 echo
29 echo "! Congratulations ! -- OpenChess is compiled and prepared to run"
30 echo "Please start game server over: bin/openchess"
31 else
32 echo "ERROR - Compilation fault ! Please contact authors or try update your sources"