diff options
-rwxr-xr-x | LuaSL/build.sh | 9 |
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 | |||
74 | names="LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab" | 74 | names="LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab" |
75 | 75 | ||
76 | LFLAGS="-d" | 76 | LFLAGS="-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 | ||
81 | command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y" | ||
82 | echo $command | ||
83 | $command | ||
84 | |||
77 | command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" | 85 | command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" |
78 | echo $command | 86 | echo $command |
79 | $command | 87 | $command |
@@ -83,6 +91,7 @@ command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y" | |||
83 | echo $command | 91 | echo $command |
84 | $command | 92 | $command |
85 | 93 | ||
94 | |||
86 | objects="" | 95 | objects="" |
87 | for i in $names | 96 | for i in $names |
88 | do | 97 | do |