3 top_srcdir = @top_srcdir@
4 include ../../Makefile.common
6 all: SWF.$(SLEXT) SWF$(A) gfx.$(SLEXT) gfx$(A)
7 exe: mypython$(E) swfpython$(E) testmem$(E)
9 primitives.$(O): primitives.c primitives.h
10 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c primitives.c -o primitives.$(O)
11 tagmap.$(O): tagmap.c tagmap.h
12 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c tagmap.c -o tagmap.$(O)
13 taglist.$(O): taglist.c taglist.h tagmap.h tag.h
14 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c taglist.c -o taglist.$(O)
15 tag.$(O): tag.c tag.h tagmap.h
16 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c tag.c -o tag.$(O)
17 tags.$(O): tags.c tags.h tagmap.h tag.h
18 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c tags.c -o tags.$(O)
19 image.$(O): image.c image.h
20 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c image.c -o image.$(O)
21 action.$(O): action.c action.h
22 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c action.c -o action.$(O)
23 pyutils.$(O): pyutils.c pyutils.h
24 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c pyutils.c -o pyutils.$(O)
26 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c gfx.c -o gfx.$(O)
28 SWF.$(O): SWF.c pyutils.h primitives.h taglist.h
29 $(C) -Wall -Wno-unused -fPIC $(PYTHON_INCLUDES) -c SWF.c -o SWF.$(O)
31 SWF_OBJS=SWF.$(O) taglist.$(O) tag.$(O) image.$(O) tags.$(O) tagmap.$(O) action.$(O) primitives.$(O) pyutils.$(O)
32 SWF_DEPS=../librfxswf$(A) ../libbase$(A) ../art/libart$(A)
33 SWF.$(SLEXT): $(SWF_OBJS) $(SWF_DEPS) Makefile
34 $(L) -g $(SHARED) $(SWF_OBJS) $(SWF_DEPS) -o SWF.$(SLEXT) $(PYTHON_LIB) $(LIBS)
35 SWF$(A): $(SWF_OBJS) $(SWF_DEPS) Makefile
36 $(AR) cru SWF$(A) $(SWF_OBJS) $(SWF_DEPS)
39 GFX_DEPS=../libpdf$(A) ../devices/swf.$(O) ../librfxswf$(A) ../devices/arts.$(O) ../art/libart$(A) ../libgfx$(A) ../libbase$(A)
40 gfx.$(SLEXT): gfx.$(O) $(GFX_DEPS) Makefile
41 $(L) -g $(SHARED) gfx.$(O) -o gfx.$(SLEXT) $(GFX_DEPS) $(PYTHON_LIB) $(LIBS) $(CXXLIBS)
42 gfx$(A): gfx.$(O) $(GFX_DEPS) Makefile
43 mkdir tmp;cd tmp;for file in $(GFX_DEPS);do ar x ../$$file || cp ../$$file .;done
44 $(AR) cru gfx$(A) gfx.$(O) tmp/*.$(O)
51 mypython$(E): mypython.c Makefile
52 $(L) -Wno-redundant-decls -g $(PYTHON_INCLUDES) mypython.c -o mypython$(E) $(PYTHON_LIB)
53 swfpython$(E): swfpython.c Makefile primitives.$(O) tagmap.$(O) taglist.$(O) tag.$(O) tags.$(O) action.$(O) pyutils.$(O) SWF.$(O)
54 $(L) -Wno-redundant-decls -g $(PYTHON_INCLUDES) swfpython.c -o swfpython$(E) $(PYTHON_LIB) ../librfxswf$(A) ../png.$(O) $(LIBS)
55 testmem$(E): testmem.c Makefile
56 $(L) $(PYTHON_INCLUDES) testmem.c -o testmem$(E) $(PYTHON_LIB) $(LIBS)
62 swfdump -p tmp/test.swf
65 swfdump -u -p tmp/combined.swf
70 swfdump -u -p tmp/test.swf
73 swfdump -u -p tmp/test.swf
77 rm -f *.o *.obj *.so mypython swfpython
79 .PHONY: test,test1,test2