aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/build.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-17 12:36:03 +1000
committerDavid Walter Seikel2012-01-17 12:36:03 +1000
commitd3541b3ac5f56ba399fd8bcd155b9e0120cf9916 (patch)
tree82d5bf84550aea4dbf33f0a63c8180b18fb005d3 /LuaSL/build.sh
parentBetter error message. (diff)
downloadSledjHamr-d3541b3ac5f56ba399fd8bcd155b9e0120cf9916.zip
SledjHamr-d3541b3ac5f56ba399fd8bcd155b9e0120cf9916.tar.gz
SledjHamr-d3541b3ac5f56ba399fd8bcd155b9e0120cf9916.tar.bz2
SledjHamr-d3541b3ac5f56ba399fd8bcd155b9e0120cf9916.tar.xz
Merge the compiler into the test harness. Remove excess files.
Diffstat (limited to '')
-rwxr-xr-xLuaSL/build.sh36
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 @@
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
7 8
8if [ -d "/opt/e17" ] 9if [ -d "/opt/e17" ]
9then 10then
@@ -47,43 +48,29 @@ libs="-lecore -levas -ledje -leet -leina"
47#-lrt \ 48#-lrt \
48#-lz 49#-lz
49 50
50names="LuaSL_main LuaSL_compile LuaSL_utilities" 51LFLAGS="-d"
51
52EDJE_FLAGS="-id images -fd fonts" 52EDJE_FLAGS="-id images -fd fonts"
53 53
54rm -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
55command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj"
56echo $command
57$command
58
59objects=""
60for i in $names
61do
62 command="gcc $CFLAGS -c -o ../$i.o $i.c"
63 echo $command
64 $command
65 objects="$objects ../$i.o"
66done
67
68command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs"
69echo $command
70$command
71
72
73 54
74names="LuaSL_LSL_tree LuaSL_lexer LuaSL_lemon_yaccer"
75 55
76LFLAGS="-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.
79command="lemon -s LuaSL_lemon_yaccer.y" 58command="lemon -s LuaSL_lemon_yaccer.y"
80echo $command 59echo $command
81$command 60$command
82 61
62
83command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" 63command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l"
84echo $command 64echo $command
85$command 65$command
86 66
67
68command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj"
69echo $command
70$command
71
72
73names="LuaSL_main LuaSL_compile LuaSL_utilities LuaSL_lexer LuaSL_lemon_yaccer"
87objects="" 74objects=""
88for i in $names 75for i in $names
89do 76do
@@ -92,8 +79,7 @@ do
92 $command 79 $command
93 objects="$objects ../$i.o" 80 objects="$objects ../$i.o"
94done 81done
95 82command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs"
96command="gcc $CFLAGS -o ../LuaSL_parser $objects $LDFLAGS $libs"
97echo $command 83echo $command
98$command 84$command
99 85