aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xLuaSL/build.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
index 15e1d52..4433120 100755
--- a/LuaSL/build.sh
+++ b/LuaSL/build.sh
@@ -18,6 +18,9 @@ fi
18# No need for a make file, or dependencies, the entire thing takes only a few seconds to build. 18# No need for a make file, or dependencies, the entire thing takes only a few seconds to build.
19 19
20CFLAGS="-g -Wall -I include -I $LOCALDIR/src" 20CFLAGS="-g -Wall -I include -I $LOCALDIR/src"
21CFLAGS="$CFLAGS -I ../../libraries"
22CFLAGS="$CFLAGS -I ../../libraries/luajit-2.0/src"
23#CFLAGS="$CFLAGS -I /usr/include/lua5.1"
21CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" 24CFLAGS="$CFLAGS -I $E17DIR/include/eina-1"
22CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" 25CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina"
23CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" 26CFLAGS="$CFLAGS -I $E17DIR/include/eet-1"
@@ -28,12 +31,13 @@ CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1"
28CFLAGS="$CFLAGS -I $E17DIR/include" 31CFLAGS="$CFLAGS -I $E17DIR/include"
29CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" 32CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS"
30 33
31LDFLAGS="-L lib -L /usr/lib -L /lib -L $E17DIR/lib -L ../../libraries/luajit-2.0/src" 34LDFLAGS="-L ../../libraries/luajit-2.0/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib"
32libs="-lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread" 35libs="-lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread -lm"
36#LDFLAGS="-L /usr/lib/lua/5.1 -L lib -L /usr/lib -L /lib -L $E17DIR/lib"
37#libs="-lecore -levas -ledje -lembryo -leet -leina -llua5.1 -lpthread -lm"
33# These need to be added to libs if linking staticaly, though some parts of EFL don't like that. 38# These need to be added to libs if linking staticaly, though some parts of EFL don't like that.
34#-lecore_evas \ 39#-lecore_evas \
35#-lecore_file \ 40#-lecore_file \
36#-lm \
37#-ldl \ 41#-ldl \
38#-lfontconfig \ 42#-lfontconfig \
39#-lfreetype \ 43#-lfreetype \
@@ -43,6 +47,7 @@ libs="-lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread"
43 47
44LFLAGS="-d" 48LFLAGS="-d"
45EDJE_FLAGS="-id images -fd fonts" 49EDJE_FLAGS="-id images -fd fonts"
50LD_RUN_PATH="../../libraries/luajit-2.0/src:"
46 51
47 52
48# Run lemon first, flex depends on it to define the symbol values. 53# Run lemon first, flex depends on it to define the symbol values.
@@ -59,7 +64,7 @@ echo $command
59$command 64$command
60 65
61names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer" 66names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer"
62objects="" 67objects="../../libraries/luaproc/channel.o ../../libraries/luaproc/list.o ../../libraries/luaproc/luaproc.o ../../libraries/luaproc/sched.o "
63for i in $names 68for i in $names
64do 69do
65 command="gcc $CFLAGS -c -o $i.o $i.c" 70 command="gcc $CFLAGS -c -o $i.o $i.c"