1 all: parser swfdump mklib tests
2 tests: testwrite testrewrite testpaths testreadwrite
6 #compiled by ../Makefile (into librfxswf.a)
8 #abc.o: abc.c abc.h ../q.h pool.h
9 # gcc $(D) -c abc.c -o abc.o
11 #pool.o: pool.c pool.h
12 # gcc $(D) -c pool.c -o pool.o
14 #files.o: files.h files.c
15 # gcc $(D) -c files.c -o files.o
17 #registry.o: registry.h registry.c
18 # gcc $(D) -c registry.c -o registry.o
20 #tokenizer.yy.o: tokenizer.yy.c tokenizer.h parser.tab.h
21 # gcc $(D) -c tokenizer.yy.c -o tokenizer.yy.o
23 #parser.tab.o: parser.tab.c parser.tab.h parser.h
24 # gcc $(D) -c parser.tab.c -o parser.tab.o
27 tokenizer.yy.c: tokenizer.lex tokenizer.h
28 flex -Pas3_ -8 -B -otokenizer.yy.c tokenizer.lex
30 parser.tab.h parser.tab.c: parser.y parser.h skeleton.m4
31 bison -S ./skeleton.m4 -v --defines -pa3_ parser.y -o parser.tab.c
33 main.o: main.c parser.tab.h parser.h
34 gcc $(D) -c main.c -o main.o
36 mklib.o: mklib.c parser.tab.h parser.h
37 gcc $(D) -c mklib.c -o mklib.o
39 parser: main.o tokenizer.yy.o ../librfxswf.a ../libbase.a parser.tab.h
40 gcc $(D) main.o ../librfxswf.a ../libbase.a -o parser -lz
42 rfxswf_modules=../drawer.o ../rfxswf.o ../modules/*.o ../lame/*.o ../action/*.o ../MD5.o abc.o opcodes.o code.o pool.o scripts.o
43 mklib: mklib.o $(rfxswf_modules) ../libbase.a
44 gcc $(D) mklib.o $(rfxswf_modules) ../libbase.a -o mklib -lz -lm -lfreetype -ljpeg
46 ../q.o: ../q.c ../q.h ../mem.h
49 ../librfxswf.a: ../rfxswf.h ../rfxswf.c 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
50 cd ..; make librfxswf.a
52 ../libbase.a: ../q.c ../q.h ../mem.c ../mem.h
55 swfdump: ../librfxswf.a ../../src/swfdump.c ../libbase.a abc.c abc.h pool.c pool.h code.c opcodes.c ../q.c ../q.h
56 gcc -g ../../src/swfdump.c ../librfxswf.a ../libbase.a -ljpeg -lz -lfreetype -o swfdump
58 pdf2swf: ../librfxswf.a ../../src/pdf2swf.c ../libpdf.a ../libbase.a
59 g++ -g ../../src/pdf2swf.c ../libgfxswf.a ../libpdf.a ../libgfx.a ../librfxswf.a ../libbase.a -ljpeg -lz -lfreetype -lfontconfig -o pdf2swf
61 testreadwrite: testreadwrite.c ../librfxswf.a ../libbase.a
62 gcc $(D) -DMAIN -o testreadwrite testreadwrite.c ../librfxswf.a ../libbase.a -lz -ljpeg
64 testrewrite: testrewrite.c ../librfxswf.a ../libbase.a
65 gcc $(D) -DMAIN -o testrewrite testrewrite.c ../librfxswf.a ../libbase.a -lz -ljpeg
67 testwrite: testwrite.c ../librfxswf.a ../libbase.a
68 gcc $(D) -DMAIN -o testwrite testwrite.c ../librfxswf.a ../libbase.a -lz -ljpeg
70 testpaths: testpaths.c ../librfxswf.a ../libbase.a
71 gcc $(D) -DMAIN -o testpaths testpaths.c ../librfxswf.a ../libbase.a -lz -ljpeg
74 rm -f *.o *.yy.c *.tab.c *.tab.h testreadwrite swfdump testpaths testwrite ../librfxswf.a