added setParameter() function
[swftools.git] / lib / python / Makefile.in
index f3e6ef9..e06095d 100644 (file)
@@ -3,7 +3,7 @@ srcdir = @srcdir@
 top_srcdir = @top_srcdir@
 include ../../Makefile.common
 
-all: SWF.$(SLEXT) gfx.$(SLEXT)
+all: SWF.$(SLEXT) SWF$(A) gfx.$(SLEXT) gfx$(A)
 exe: mypython$(E) swfpython$(E) testmem$(E)
 
 primitives.$(O): primitives.c primitives.h
@@ -30,14 +30,19 @@ SWF.$(O): SWF.c pyutils.h primitives.h taglist.h
 
 SWF_OBJS=SWF.$(O) taglist.$(O) tag.$(O) image.$(O) tags.$(O) tagmap.$(O) action.$(O) primitives.$(O) pyutils.$(O) 
 SWF_DEPS=../librfxswf$(A) ../libbase$(A) ../art/libart$(A) 
-SWF.$(SLEXT): Makefile
+SWF.$(SLEXT): $(SWF_OBJS) $(SWF_DEPS) Makefile
        $(L) -g $(SHARED) $(SWF_OBJS) $(SWF_DEPS) -o SWF.$(SLEXT) $(PYTHON_LIB) $(LIBS)
+SWF$(A): $(SWF_OBJS) $(SWF_DEPS) Makefile
+       $(AR) cru SWF$(A) $(SWF_OBJS) $(SWF_DEPS)
+       $(RANLIB) SWF$(A)
 
 GFX_DEPS=../libpdf$(A) ../devices/swf.$(O) ../librfxswf$(A) ../devices/arts.$(O) ../art/libart$(A) ../libgfx$(A) ../libbase$(A) 
 gfx.$(SLEXT): gfx.$(O) $(GFX_DEPS) Makefile
        $(L) -g $(SHARED) gfx.$(O) -o gfx.$(SLEXT) $(GFX_DEPS) $(PYTHON_LIB) $(LIBS) $(CXXLIBS)
 gfx$(A): gfx.$(O) $(GFX_DEPS) Makefile
-       $(AR) cru gfx$(A) gfx.$(O) $(GFX_DEPS)
+       mkdir tmp;cd tmp;for file in $(GFX_DEPS);do ar x ../$$file || cp ../$$file .;done
+       $(AR) cru gfx$(A) gfx.$(O) tmp/*.$(O)
+       $(RANLIB) gfx$(A)
 
 #TODO:
 install: