diff options
Diffstat (limited to 'LuaSL')
-rwxr-xr-x | LuaSL/build.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh index 206f3c0..29558dd 100755 --- a/LuaSL/build.sh +++ b/LuaSL/build.sh | |||
@@ -1,9 +1,10 @@ | |||
1 | #! /bin/bash | 1 | #! /bin/bash |
2 | 2 | ||
3 | cd src | ||
4 | 3 | ||
5 | export LOCALDIR=`pwd` | 4 | export LOCALDIR=`pwd` |
6 | 5 | ||
6 | cd src | ||
7 | |||
7 | if [ -d "/opt/e17" ] | 8 | if [ -d "/opt/e17" ] |
8 | then | 9 | then |
9 | export E17DIR="/opt/e17" | 10 | export E17DIR="/opt/e17" |
@@ -13,7 +14,7 @@ fi | |||
13 | 14 | ||
14 | # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. | 15 | # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. |
15 | 16 | ||
16 | CFLAGS="-g -Wall -I include -I $LOCALDIR" | 17 | CFLAGS="-g -Wall -I include -I $LOCALDIR/src" |
17 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" | 18 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" |
18 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" | 19 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" |
19 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" | 20 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" |
@@ -51,20 +52,20 @@ names="LuaSL_main LuaSL_utilities" | |||
51 | EDJE_FLAGS="-id images -fd fonts" | 52 | EDJE_FLAGS="-id images -fd fonts" |
52 | 53 | ||
53 | rm -f LuaSL *.o *.edj | 54 | rm -f LuaSL *.o *.edj |
54 | command="edje_cc $EDJE_FLAGS LuaSL.edc LuaSL.edj" | 55 | command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" |
55 | echo $command | 56 | echo $command |
56 | $command | 57 | $command |
57 | 58 | ||
58 | objects="" | 59 | objects="" |
59 | for i in $names | 60 | for i in $names |
60 | do | 61 | do |
61 | command="gcc $CFLAGS -c -o $i.o $i.c" | 62 | command="gcc $CFLAGS -c -o ../$i.o $i.c" |
62 | echo $command | 63 | echo $command |
63 | $command | 64 | $command |
64 | objects="$objects $i.o" | 65 | objects="$objects ../$i.o" |
65 | done | 66 | done |
66 | 67 | ||
67 | command="gcc $CFLAGS -o LuaSL $objects $LDFLAGS $libs" | 68 | command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" |
68 | echo $command | 69 | echo $command |
69 | $command | 70 | $command |
70 | 71 | ||