aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/build.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-09 15:18:33 +1000
committerDavid Walter Seikel2012-01-09 15:18:33 +1000
commitdd67b6024cf317d2ee0d8906fbcb89c35a6e42a3 (patch)
tree0e36b15175edabe3d0172d317923997fbf8de5cd /LuaSL/build.sh
parentA little format cleanup. (diff)
downloadSledjHamr-dd67b6024cf317d2ee0d8906fbcb89c35a6e42a3.zip
SledjHamr-dd67b6024cf317d2ee0d8906fbcb89c35a6e42a3.tar.gz
SledjHamr-dd67b6024cf317d2ee0d8906fbcb89c35a6e42a3.tar.bz2
SledjHamr-dd67b6024cf317d2ee0d8906fbcb89c35a6e42a3.tar.xz
Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run btyacc twice.
Diffstat (limited to 'LuaSL/build.sh')
-rwxr-xr-xLuaSL/build.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
index 4f2e5e8..4a026bb 100755
--- a/LuaSL/build.sh
+++ b/LuaSL/build.sh
@@ -74,6 +74,14 @@ $command
74names="LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab" 74names="LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab"
75 75
76LFLAGS="-d" 76LFLAGS="-d"
77
78# Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run btyacc twice.
79
80# I want to remove -d, coz I want an enum, not a bunch of #defines, but btyacc creates #defines internally anyway. sigh
81command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y"
82echo $command
83$command
84
77command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" 85command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l"
78echo $command 86echo $command
79$command 87$command
@@ -83,6 +91,7 @@ command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y"
83echo $command 91echo $command
84$command 92$command
85 93
94
86objects="" 95objects=""
87for i in $names 96for i in $names
88do 97do