1 include ../../Makefile.common
3 all: parser swfdump mklib
4 tests: testwrite testrewrite testpaths testreadwrite
8 MODULES = abc.o opcodes.o code.o pool.o scripts.o expr.o common.o initcode.o
9 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
11 tokenizer.yy.c: tokenizer.lex tokenizer.h
12 flex -Pas3_ -8 -B -otokenizer.yy.c tokenizer.lex
14 parser.tab.h parser.tab.c: parser.y parser.h skeleton.m4 Makefile
15 bison -S ./skeleton.m4 -v --defines -pa3_ parser.y -o parser.tab.c
17 main.o: main.c parser.tab.h parser.h
20 mklib.o: mklib.c parser.tab.h parser.h
21 $(C) mklib.c -o mklib.o
23 parser: main.o tokenizer.yy.c ../librfxswf.a ../libbase.a parser.tab.h
24 $(L) main.o ../librfxswf.a ../libbase.a -o parser -lz
26 rfxswf_modules=../drawer.o ../rfxswf.o ../modules/*.o ../lame/*.o ../action/*.o ../MD5.o $(MODULES)
27 mklib: mklib.o $(rfxswf_modules) import.o registry.o tokenizer.yy.o parser.tab.o files.o compiler.o ../libbase.a
28 $(L) mklib.o $(rfxswf_modules) import.o registry.o tokenizer.yy.o parser.tab.o files.o compiler.o ../libbase.a -o mklib $(LIBS)
30 ../q.o: ../q.c ../q.h ../mem.h
33 ../librfxswf.a: ../rfxswf.h ../rfxswf.c $(SOURCES)
34 cd ..; make librfxswf.a
36 ../libbase.a: ../q.c ../q.h ../mem.c ../mem.h
39 swfdump: ../librfxswf.a ../../src/swfdump.c ../libbase.a $(SOURCES) ../q.c ../q.h
40 $(L) -g ../../src/swfdump.c ../librfxswf.a ../libbase.a -o swfdump $(LIBS)
42 pdf2swf: ../librfxswf.a ../../src/pdf2swf.c ../libpdf.a ../libbase.a
43 $(LL) -g ../../src/pdf2swf.c ../libgfxswf.a ../libpdf.a ../libgfx.a ../librfxswf.a ../libbase.a -o pdf2swf $(LIBS)
45 testreadwrite: testreadwrite.c ../librfxswf.a ../libbase.a
46 $(L) -DMAIN -o testreadwrite testreadwrite.c ../librfxswf.a ../libbase.a $(LIBS)
48 testrewrite: testrewrite.c ../librfxswf.a ../libbase.a
49 $(L) -DMAIN -o testrewrite testrewrite.c ../librfxswf.a ../libbase.a $(LIBS)
51 testwrite: testwrite.c ../librfxswf.a ../libbase.a
52 $(L) -DMAIN -o testwrite testwrite.c ../librfxswf.a ../libbase.a $(LIBS)
54 testpaths: testpaths.c ../librfxswf.a ../libbase.a
55 $(L) -DMAIN -o testpaths testpaths.c ../librfxswf.a ../libbase.a $(LIBS)
58 rm -f *.o *.yy.c *.tab.c *.tab.h testreadwrite swfdump testpaths testwrite ../librfxswf.a