diff options
Diffstat (limited to '')
-rwxr-xr-x | LuaSL/build.sh | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh index 38f09f6..65c1581 100755 --- a/LuaSL/build.sh +++ b/LuaSL/build.sh | |||
@@ -4,6 +4,7 @@ | |||
4 | export LOCALDIR=`pwd` | 4 | export LOCALDIR=`pwd` |
5 | 5 | ||
6 | cd src | 6 | cd src |
7 | rm -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 | ||
7 | 8 | ||
8 | if [ -d "/opt/e17" ] | 9 | if [ -d "/opt/e17" ] |
9 | then | 10 | then |
@@ -47,43 +48,29 @@ libs="-lecore -levas -ledje -leet -leina" | |||
47 | #-lrt \ | 48 | #-lrt \ |
48 | #-lz | 49 | #-lz |
49 | 50 | ||
50 | names="LuaSL_main LuaSL_compile LuaSL_utilities" | 51 | LFLAGS="-d" |
51 | |||
52 | EDJE_FLAGS="-id images -fd fonts" | 52 | EDJE_FLAGS="-id images -fd fonts" |
53 | 53 | ||
54 | rm -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 | ||
55 | command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" | ||
56 | echo $command | ||
57 | $command | ||
58 | |||
59 | objects="" | ||
60 | for i in $names | ||
61 | do | ||
62 | command="gcc $CFLAGS -c -o ../$i.o $i.c" | ||
63 | echo $command | ||
64 | $command | ||
65 | objects="$objects ../$i.o" | ||
66 | done | ||
67 | |||
68 | command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" | ||
69 | echo $command | ||
70 | $command | ||
71 | |||
72 | |||
73 | 54 | ||
74 | names="LuaSL_LSL_tree LuaSL_lexer LuaSL_lemon_yaccer" | ||
75 | 55 | ||
76 | LFLAGS="-d" | ||
77 | 56 | ||
78 | # Run lemon first, flex depends on it to define the symbol values. | 57 | # Run lemon first, flex depends on it to define the symbol values. |
79 | command="lemon -s LuaSL_lemon_yaccer.y" | 58 | command="lemon -s LuaSL_lemon_yaccer.y" |
80 | echo $command | 59 | echo $command |
81 | $command | 60 | $command |
82 | 61 | ||
62 | |||
83 | command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" | 63 | command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" |
84 | echo $command | 64 | echo $command |
85 | $command | 65 | $command |
86 | 66 | ||
67 | |||
68 | command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" | ||
69 | echo $command | ||
70 | $command | ||
71 | |||
72 | |||
73 | names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer" | ||
87 | objects="" | 74 | objects="" |
88 | for i in $names | 75 | for i in $names |
89 | do | 76 | do |
@@ -92,8 +79,7 @@ do | |||
92 | $command | 79 | $command |
93 | objects="$objects ../$i.o" | 80 | objects="$objects ../$i.o" |
94 | done | 81 | done |
95 | 82 | command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" | |
96 | command="gcc $CFLAGS -o ../LuaSL_parser $objects $LDFLAGS $libs" | ||
97 | echo $command | 83 | echo $command |
98 | $command | 84 | $command |
99 | 85 | ||