diff options
Diffstat (limited to 'LuaSL/build.sh')
-rwxr-xr-x | LuaSL/build.sh | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh deleted file mode 100755 index 8d776d6..0000000 --- a/LuaSL/build.sh +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | #! /bin/bash | ||
2 | |||
3 | export LOCALDIR=`pwd` | ||
4 | |||
5 | # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. | ||
6 | |||
7 | CFLAGS="-g -Wall -Wunreachable-code -I include -I $LOCALDIR" | ||
8 | CFLAGS="$CFLAGS -I ../../libraries" | ||
9 | CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" | ||
10 | CFLAGS="$CFLAGS $(pkg-config --cflags eo)" | ||
11 | CFLAGS="$CFLAGS $(pkg-config --cflags eet)" | ||
12 | CFLAGS="$CFLAGS $(pkg-config --cflags ecore-con)" | ||
13 | CFLAGS="$CFLAGS $(pkg-config --cflags ecore-evas)" | ||
14 | CFLAGS="$CFLAGS $(pkg-config --cflags ecore-file)" | ||
15 | CFLAGS="$CFLAGS $(pkg-config --cflags edje)" | ||
16 | CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\"" | ||
17 | CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\"" | ||
18 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | ||
19 | |||
20 | LDFLAGS="$(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib" | ||
21 | libs="$(pkg-config --libs edje) $libs $(pkg-config --libs luajit)" | ||
22 | |||
23 | LFLAGS="-d" | ||
24 | EDJE_FLAGS="-id images -fd fonts" | ||
25 | # Dunno why I needed this, not gonna work with a packaged LuaJIT anyway. | ||
26 | #LD_RUN_PATH="../../libraries/LuaJIT-2.0.2/src:" | ||
27 | |||
28 | cd src | ||
29 | echo "clean" | ||
30 | rm -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 | ||
31 | |||
32 | # Run lemon first, flex depends on it to define the symbol values. | ||
33 | command="../../libraries/lemon/lemon -s -T../../libraries/lemon/lempar.c LuaSL_lemon_yaccer.y" | ||
34 | echo "lemon" | ||
35 | $command | ||
36 | |||
37 | command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" | ||
38 | echo "flex" | ||
39 | $command | ||
40 | |||
41 | command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" | ||
42 | echo "edje_cc" | ||
43 | $command | ||
44 | |||
45 | names="LuaSL_main LuaSL_compile LuaSL_threads LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer" | ||
46 | objects="" | ||
47 | for i in $names | ||
48 | do | ||
49 | command="gcc $CFLAGS -c -o $i.o $i.c" | ||
50 | echo $i | ||
51 | $command | ||
52 | objects="$objects $i.o" | ||
53 | done | ||
54 | command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" | ||
55 | echo "LuaSL" | ||
56 | $command | ||
57 | |||
58 | names="LuaSL_test LuaSL_utilities" | ||
59 | objects="" | ||
60 | for i in $names | ||
61 | do | ||
62 | command="gcc $CFLAGS -c -o $i.o $i.c" | ||
63 | echo $i | ||
64 | $command | ||
65 | objects="$objects $i.o" | ||
66 | done | ||
67 | command="gcc $CFLAGS -o ../LuaSL_test $objects $LDFLAGS $libs" | ||
68 | echo "LuaSL_test" | ||
69 | $command | ||