aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-24 16:33:31 +1000
committerDavid Walter Seikel2012-01-24 16:33:31 +1000
commitbe303cb62fab0bd3bfc0f67705b91d1279bf9818 (patch)
treec1e17649293f736903f04b102e5e69f69407906a
parentMake the script engine testing UI a command option. (diff)
downloadSledjHamr-be303cb62fab0bd3bfc0f67705b91d1279bf9818.zip
SledjHamr-be303cb62fab0bd3bfc0f67705b91d1279bf9818.tar.gz
SledjHamr-be303cb62fab0bd3bfc0f67705b91d1279bf9818.tar.bz2
SledjHamr-be303cb62fab0bd3bfc0f67705b91d1279bf9818.tar.xz
Clean up the LuaSL build, and link to LuaJIT.
-rwxr-xr-xLuaSL/build.sh23
1 files changed, 7 insertions, 16 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
index 4f80cb4..15e1d52 100755
--- a/LuaSL/build.sh
+++ b/LuaSL/build.sh
@@ -4,7 +4,7 @@
4export LOCALDIR=`pwd` 4export LOCALDIR=`pwd`
5 5
6cd src 6cd src
7rm -f ../LuaSL ../LuaSL_parser ../*.o *.output *.backup ../*.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_lemon_yaccer.h LuaSL_lemon_yaccer.c LuaSL_lemon_yaccer.out 7rm -f ../LuaSL *.o *.output *.backup ../luac.out ../*.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_lemon_yaccer.h LuaSL_lemon_yaccer.c LuaSL_lemon_yaccer.out
8 8
9 9
10# This assumes you have EFL installed in one of two standard places. 10# This assumes you have EFL installed in one of two standard places.
@@ -21,29 +21,20 @@ CFLAGS="-g -Wall -I include -I $LOCALDIR/src"
21CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" 21CFLAGS="$CFLAGS -I $E17DIR/include/eina-1"
22CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" 22CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina"
23CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" 23CFLAGS="$CFLAGS -I $E17DIR/include/eet-1"
24CFLAGS="$CFLAGS -I $E17DIR/include/embryo-1"
24CFLAGS="$CFLAGS -I $E17DIR/include/edje-1" 25CFLAGS="$CFLAGS -I $E17DIR/include/edje-1"
25CFLAGS="$CFLAGS -I $E17DIR/include/evas-1" 26CFLAGS="$CFLAGS -I $E17DIR/include/evas-1"
26CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1" 27CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1"
27CFLAGS="$CFLAGS -I $E17DIR/include" 28CFLAGS="$CFLAGS -I $E17DIR/include"
28CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" 29CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS"
29 30
30LDFLAGS="-L lib -L /usr/lib -L /lib -L $E17DIR/lib" 31LDFLAGS="-L lib -L /usr/lib -L /lib -L $E17DIR/lib -L ../../libraries/luajit-2.0/src"
31libs="-lecore -levas -ledje -leet -leina" 32libs="-lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread"
32# These need to be added to libs if linking staticaly, though some part of EFL don't like that. 33# These need to be added to libs if linking staticaly, though some parts of EFL don't like that.
33#-lecore_evas \ 34#-lecore_evas \
34#-lecore_fb \
35#-lecore_file \ 35#-lecore_file \
36#-lecore \
37#-ledje \
38#-levas \
39#-lembryo \
40#-leet \
41#-leina \
42#-llua \
43#-lm \ 36#-lm \
44#-ldl \ 37#-ldl \
45#-lglib-2.0 \
46#-lpthread \
47#-lfontconfig \ 38#-lfontconfig \
48#-lfreetype \ 39#-lfreetype \
49#-lexpat \ 40#-lexpat \
@@ -71,10 +62,10 @@ names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer"
71objects="" 62objects=""
72for i in $names 63for i in $names
73do 64do
74 command="gcc $CFLAGS -c -o ../$i.o $i.c" 65 command="gcc $CFLAGS -c -o $i.o $i.c"
75 echo $command 66 echo $command
76 $command 67 $command
77 objects="$objects ../$i.o" 68 objects="$objects $i.o"
78done 69done
79command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" 70command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs"
80echo $command 71echo $command