Version 0.6.7: Added support for hostname - hostname_get (), hostname_set (); Hostnam...
[ZeXOS.git] / apps / im / build.sh
blob940da1fcd72e6cd6b79ea2de9e30de0ae88a9fa7
1 #!/bin/bash
3 echo "-= Instant Messenger =-"
5 cd src
7 if [ "$1" = "clean" ] ; then
8 rm -rf *.o platform/zexos/*.o im ../bin/im ../bin/im.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/im bin/
28 echo
29 echo "! Congratulations ! -- IM is compiled and prepared to run"
30 echo "Please start im client over: bin/im"
31 else
32 echo "ERROR - Compilation fault ! Please contact authors or try update your sources"