diff options
Diffstat (limited to '')
-rwxr-xr-x | LuaSL/build.sh | 13 |
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 | ||
20 | CFLAGS="-g -Wall -I include -I $LOCALDIR/src" | 20 | CFLAGS="-g -Wall -I include -I $LOCALDIR/src" |
21 | CFLAGS="$CFLAGS -I ../../libraries" | ||
22 | CFLAGS="$CFLAGS -I ../../libraries/luajit-2.0/src" | ||
23 | #CFLAGS="$CFLAGS -I /usr/include/lua5.1" | ||
21 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" | 24 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" |
22 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" | 25 | CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" |
23 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" | 26 | CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" |
@@ -28,12 +31,13 @@ CFLAGS="$CFLAGS -I $E17DIR/include/ecore-1" | |||
28 | CFLAGS="$CFLAGS -I $E17DIR/include" | 31 | CFLAGS="$CFLAGS -I $E17DIR/include" |
29 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | 32 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" |
30 | 33 | ||
31 | LDFLAGS="-L lib -L /usr/lib -L /lib -L $E17DIR/lib -L ../../libraries/luajit-2.0/src" | 34 | LDFLAGS="-L ../../libraries/luajit-2.0/src -L lib -L /usr/lib -L /lib -L $E17DIR/lib" |
32 | libs="-lecore -levas -ledje -lembryo -leet -leina -lluajit -lpthread" | 35 | libs="-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 | ||
44 | LFLAGS="-d" | 48 | LFLAGS="-d" |
45 | EDJE_FLAGS="-id images -fd fonts" | 49 | EDJE_FLAGS="-id images -fd fonts" |
50 | LD_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 | ||
61 | names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer" | 66 | names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer" |
62 | objects="" | 67 | objects="../../libraries/luaproc/channel.o ../../libraries/luaproc/list.o ../../libraries/luaproc/luaproc.o ../../libraries/luaproc/sched.o " |
63 | for i in $names | 68 | for i in $names |
64 | do | 69 | do |
65 | command="gcc $CFLAGS -c -o $i.o $i.c" | 70 | command="gcc $CFLAGS -c -o $i.o $i.c" |