fixed logging and tag id handling
[swftools.git] / lib / python / Makefile
index 847132a..0ab8c4b 100644 (file)
@@ -4,9 +4,11 @@ LIB=-L/usr/lib/python2.2/config/ -lpython2.2
 
 primitives.o: primitives.c primitives.h
        gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c primitives.c -o primitives.o
-taglist.o: taglist.c taglist.h
+tagmap.o: tagmap.c tagmap.h
+       gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c tagmap.c -o tagmap.o
+taglist.o: taglist.c taglist.h tagmap.h
        gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c taglist.c -o taglist.o
-tag.o: tag.c tag.h
+tag.o: tag.c tag.h tagmap.h
        gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c tag.c -o tag.o
 action.o: action.c action.h
        gcc -g -O2 -Wall -Wno-unused -fPIC -I/usr/include/python2.2 -c action.c -o action.o
@@ -16,8 +18,8 @@ pyutils.o: pyutils.c pyutils.h
 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
 
-SWF.so: SWF.o taglist.o tag.o action.o primitives.o pyutils.o ../librfxswf.a
-       gcc -shared SWF.o taglist.o tag.o action.o primitives.o pyutils.o  -o SWF.so $(LIB) ../librfxswf.a -ljpeg -lz -lt1 -lfreetype
+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 $(LIB) ../librfxswf.a -ljpeg -lz -lt1 -lfreetype
        cp SWF.so test
 
 mypython: mypython.c
@@ -26,6 +28,7 @@ mypython: mypython.c
 test: SWF.so
        cd test;./test_create.py
        #python fonts.py
+       swfdump -p test/test.swf
 clean:
        rm *.o *.so mypython