X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2FMakefile;h=9ebc00f9138df95e7e835f691d30b64f99d0aa0c;hb=a4e70e9ef589448bc81b16cace898f92412af34a;hp=eb270dd126aa37c7e27bf70fc6fc2e264e7f75fd;hpb=49062bcde61a1622b6e5605097beff11916cd07e;p=swftools.git diff --git a/lib/python/Makefile b/lib/python/Makefile index eb270dd..9ebc00f 100644 --- a/lib/python/Makefile +++ b/lib/python/Makefile @@ -1,17 +1,42 @@ all: mypython SWF.so +LIB=-L/usr/lib/python2.2/config/ -lpython2.2 +I=-I/usr/include/python2.2 + +C=gcc-3.3 + primitives.o: primitives.c primitives.h - gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c primitives.c -o primitives.o + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c primitives.c -o primitives.o +tagmap.o: tagmap.c tagmap.h + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c tagmap.c -o tagmap.o +taglist.o: taglist.c taglist.h tagmap.h tag.h + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c taglist.c -o taglist.o +tag.o: tag.c tag.h tagmap.h + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c tag.c -o tag.o +action.o: action.c action.h + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c action.c -o action.o pyutils.o: pyutils.c pyutils.h - gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c pyutils.c -o pyutils.o -SWF.o: SWF.c pyutils.h primitives.h - gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c SWF.c -o SWF.o + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c pyutils.c -o pyutils.o + +SWF.o: SWF.c pyutils.h primitives.h taglist.h + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c SWF.c -o SWF.o -SWF.so: primitives.o pyutils.o SWF.o - gcc -shared primitives.o SWF.o pyutils.o -o SWF.so -lpython2.2 ../librfxswf.a -ljpeg -lz +SWF.so: SWF.o taglist.o tag.o tagmap.o action.o primitives.o pyutils.o ../librfxswf.a + $(C) -shared SWF.o tagmap.o taglist.o tag.o action.o primitives.o pyutils.o -o SWF.so ../librfxswf.a -ljpeg -lz -lt1 -lfreetype mypython: mypython.c - gcc -I/usr/include/python2.2 mypython.c -o mypython -lpython2.2 + $(C) -g -I/usr/include/python2.2 mypython.c -o mypython $(LIB) -ldl -lm -lpthread -lutil + +test: test1 + +test1: SWF.so + ./test_create.py + swfdump -p tmp/test.swf + +test2: SWF.so + ./test_combine.py + swfdump -u -p tmp/combined.swf +clean: + rm *.o *.so mypython -test: SWF.so - python fonts.py +.PHONY: test,test1,test2