From dd67b6024cf317d2ee0d8906fbcb89c35a6e42a3 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 9 Jan 2012 15:18:33 +1000 Subject: Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run btyacc twice. --- LuaSL/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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 names="LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab" LFLAGS="-d" + +# Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run btyacc twice. + +# I want to remove -d, coz I want an enum, not a bunch of #defines, but btyacc creates #defines internally anyway. sigh +command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y" +echo $command +$command + command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" echo $command $command @@ -83,6 +91,7 @@ command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y" echo $command $command + objects="" for i in $names do -- cgit v1.1