aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.sh
blob: 4231adadf6397c8131b94af466852bb6d3b47609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/bash

wd=$(pwd)

echo "_______________ BUILDING lemon _______________"
cd $wd/libraries/lemon
rm -f *.o lemon

CFLAGS="-g -Wall -I include $CFLAGOPTS"
LDFLAGS="-L lib -L /usr/lib -L /lib"
LFLAGS="-d"

names="lemon"
objects=""
for i in $names
do
    command="gcc $CFLAGS -c -o $i.o $i.c"
    echo $command
    $command
    objects="$objects $i.o"
done
command="gcc $CFLAGS -o lemon $objects $LDFLAGS $libs"
echo $command
$command

echo "_______________ BUILDING Irrlicht _______________"
cd $wd/libraries/irrlicht-1.8.1/source/Irrlicht 
make

echo "_______________ BUILDING LuaSL _______________"
cd $wd/LuaSL
./build.sh

echo "_______________ BUILDING extantz _______________"
cd $wd/ClientHamr/extantz
./build.sh