From: kramm Date: Wed, 31 Mar 2004 18:42:51 +0000 (+0000) Subject: small convenience fixes X-Git-Tag: stable_core_1~13 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=a4e70e9ef589448bc81b16cace898f92412af34a small convenience fixes --- diff --git a/lib/python/Makefile b/lib/python/Makefile index 3b87a74..9ebc00f 100644 --- a/lib/python/Makefile +++ b/lib/python/Makefile @@ -3,34 +3,40 @@ 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) -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 - gcc -g -O2 -Wall -Wno-unused -fPIC $(I) -c tagmap.c -o tagmap.o + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c tagmap.c -o tagmap.o taglist.o: taglist.c taglist.h tagmap.h tag.h - gcc -g -O2 -Wall -Wno-unused -fPIC $(I) -c taglist.c -o taglist.o + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c taglist.c -o taglist.o tag.o: tag.c tag.h tagmap.h - gcc -g -O2 -Wall -Wno-unused -fPIC $(I) -c tag.c -o tag.o + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c tag.c -o tag.o action.o: action.c action.h - gcc -g -O2 -Wall -Wno-unused -fPIC $(I) -c action.c -o action.o + $(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) -c pyutils.c -o pyutils.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 - gcc -g -O2 -Wall -Wno-unused -fPIC $(I) -c SWF.c -o SWF.o + $(C) -g -O2 -Wall -Wno-unused -fPIC $(I) -c SWF.c -o SWF.o SWF.so: SWF.o taglist.o tag.o tagmap.o action.o primitives.o pyutils.o ../librfxswf.a - gcc -shared SWF.o tagmap.o taglist.o tag.o action.o primitives.o pyutils.o -o SWF.so ../librfxswf.a -ljpeg -lz -lt1 -lfreetype + $(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 -g -I/usr/include/python2.2 mypython.c -o mypython $(LIB) -ldl -lm -lpthread -lutil + $(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 -test: SWF.so - #./test_create.py - #swfdump -p test/test.swf +test2: SWF.so ./test_combine.py - swfdump -p tmp/combined.swf + swfdump -u -p tmp/combined.swf clean: rm *.o *.so mypython -.PHONY: test +.PHONY: test,test1,test2