python interface compilation is now controlled by autoconf.
[swftools.git] / lib / python / Makefile.in
1 top_builddir = ../..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../../Makefile.common
5
6 all: mypython swfpython SWF.so testmem
7
8 primitives.o: primitives.c primitives.h
9         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c primitives.c -o primitives.o
10 tagmap.o: tagmap.c tagmap.h
11         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c tagmap.c -o tagmap.o
12 taglist.o: taglist.c taglist.h tagmap.h tag.h
13         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c taglist.c -o taglist.o
14 tag.o: tag.c tag.h tagmap.h
15         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c tag.c -o tag.o
16 tags.o: tags.c tags.h tagmap.h tag.h
17         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c tags.c -o tags.o
18 image.o: image.c image.h
19         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c image.c -o image.o
20 action.o: action.c action.h
21         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c action.c -o action.o
22 pyutils.o: pyutils.c pyutils.h
23         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c pyutils.c -o pyutils.o
24
25 SWF.o: SWF.c pyutils.h primitives.h taglist.h
26         $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c SWF.c -o SWF.o
27
28 SWF.so: SWF.o taglist.o tag.o image.o tags.o tagmap.o action.o primitives.o pyutils.o ../librfxswf.a Makefile
29         $(L) -g -shared SWF.o tagmap.o taglist.o tag.o image.o tags.o action.o primitives.o pyutils.o  -o SWF.so $(PYTHON_LIB) ../librfxswf.a $(LIBS)
30
31 mypython: mypython.c Makefile
32         $(L) -Wno-redundant-decls -g $(PYTHON_INCLUDES) mypython.c -o mypython $(PYTHON_LIB)
33
34 swfpython: swfpython.c Makefile primitives.o tagmap.o taglist.o tag.o tags.o action.o pyutils.o SWF.o
35         $(L) -Wno-redundant-decls -g $(PYTHON_INCLUDES) swfpython.c -o swfpython $(PYTHON_LIB) ../librfxswf.a $(LIBS)
36
37 testmem: testmem.c Makefile
38         $(L) $(PYTHON_INCLUDES) testmem.c -o testmem $(PYTHON_LIB) $(LIBS)
39
40 test: test6
41
42 test1: SWF.so
43         ./test_create.py
44         swfdump -p tmp/test.swf
45 test2: SWF.so
46         ./test_combine.py
47         swfdump -u -p tmp/combined.swf
48 test3: SWF.so
49         ./test_simple.py
50 test4: SWF.so
51         ./test_movie.py
52         swfdump -u -p tmp/test.swf
53 test5: SWF.so
54         ./test_image.py
55         swfdump -u -p tmp/test.swf
56 test6: SWF.so
57         ./test_sprite.py
58 clean:
59         rm -f *.o *.so mypython swfpython
60
61 .PHONY: test,test1,test2