X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2FMakefile;h=b3ecd23d9ad888803efae62dce0f49d5bd16778f;hb=5f639e1d63bbb39eb0e9cb6d4aca28aff1ac21e3;hp=865ddbe48cbed4b3b5b21956be041a1983f1c45d;hpb=3e303bea7eb10c99a7b3808f0c355ee63188eb9b;p=swftools.git diff --git a/lib/as3/Makefile b/lib/as3/Makefile index 865ddbe..b3ecd23 100644 --- a/lib/as3/Makefile +++ b/lib/as3/Makefile @@ -5,22 +5,28 @@ tests: testwrite testrewrite testpaths testreadwrite D=-g -pg +#BISONDEBUG=yes + MODULES = abc.o opcodes.o code.o pool.o scripts.o expr.o common.o initcode.o SOURCES = abc.c abc.h pool.c pool.h files.c files.h code.c code.h registry.c registry.h opcodes.c opcodes.h builtin.c builtin.h compiler.c compiler.h parser.tab.h parser.tab.c tokenizer.yy.c scripts.c import.c import.h expr.c expr.h common.c common.h initcode.c initcode.h tokenizer.yy.c: tokenizer.lex tokenizer.h flex -Pas3_ -8 -B -otokenizer.yy.c tokenizer.lex +ifeq "$(BISONDEBUG)" "yes" +BISONDEBUGFLAGS=-t +BISONDEBUGDEFINE=-DBISONDEBUG +endif parser.tab.h parser.tab.c: parser.y parser.h skeleton.m4 Makefile - bison -S ./skeleton.m4 -v --defines -pa3_ parser.y -o parser.tab.c + bison $(BISONDEBUGFLAGS) -S ./skeleton.m4 -v --defines -pa3_ parser.y -o parser.tab.c main.o: main.c parser.tab.h parser.h - $(C) main.c -o main.o + $(C) $(BISONDEBUGDEFINE) main.c -o main.o mklib.o: mklib.c parser.tab.h parser.h $(C) mklib.c -o mklib.o -parser: main.o tokenizer.yy.o ../librfxswf.a ../libbase.a parser.tab.h +parser: main.o tokenizer.yy.c ../librfxswf.a ../libbase.a parser.tab.h $(L) main.o ../librfxswf.a ../libbase.a -o parser -lz rfxswf_modules=../drawer.o ../rfxswf.o ../modules/*.o ../lame/*.o ../action/*.o ../MD5.o $(MODULES)