X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2FMakefile;h=cc7ffc032d6fece6a037f71a1e63170afac50d9c;hb=2b4a44df0c63679e7717d0c699b2785b9e5c0b6a;hp=05704dfd8a3877fbde23ef98585006e4424e17d0;hpb=b53d34fae39512e828f147bd5a4fe9e6108add51;p=swftools.git diff --git a/lib/as3/Makefile b/lib/as3/Makefile index 05704df..cc7ffc0 100644 --- a/lib/as3/Makefile +++ b/lib/as3/Makefile @@ -1,4 +1,4 @@ -all: parser swfdump mklib +all: parser swfdump mklib tests tests: testwrite testrewrite testpaths testreadwrite D=-g -pg @@ -45,7 +45,7 @@ mklib: mklib.o ../librfxswf.a ../libbase.a ../q.o: ../q.c ../q.h ../mem.h cd ..; make q.o; cd - -../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 +../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 cd ..; make librfxswf.a ../libbase.a: ../q.c ../q.h ../mem.c ../mem.h @@ -54,6 +54,9 @@ mklib: mklib.o ../librfxswf.a ../libbase.a swfdump: ../librfxswf.a ../../src/swfdump.c ../libbase.a abc.c abc.h pool.c pool.h code.c opcodes.c ../q.c ../q.h gcc -g ../../src/swfdump.c ../librfxswf.a ../libbase.a -ljpeg -lz -lfreetype -o swfdump +pdf2swf: ../librfxswf.a ../../src/pdf2swf.c ../libpdf.a ../libbase.a + g++ -g ../../src/pdf2swf.c ../libgfxswf.a ../libpdf.a ../libgfx.a ../librfxswf.a ../libbase.a -ljpeg -lz -lfreetype -lfontconfig -o pdf2swf + testreadwrite: testreadwrite.c ../librfxswf.a ../libbase.a gcc $(D) -DMAIN -o testreadwrite testreadwrite.c ../librfxswf.a ../libbase.a -lz -ljpeg @@ -68,3 +71,5 @@ testpaths: testpaths.c ../librfxswf.a ../libbase.a clean: rm -f *.o *.yy.c *.tab.c *.tab.h testreadwrite swfdump testpaths testwrite ../librfxswf.a + +.PHONY: tests