top_srcdir = ../..
include ../../Makefile.common
-all: swf.$(O) image.$(O)
+all: ../libswf$(A)
libswf: ../libswf$(A)
swf.$(O): swf.c swf.h
$(C) swf.c -o swf.$(O)
-image.$(O): image.c image.h
- $(C) image.c -o image.$(O)
+libswf_objects = swf.$(O)
+
+../libswf$(A): $(libswf_objects)
+ $(AR) r ../libswf$(A)
+ $(RANLIB) ../libswf$(A)
swfrender: $(libswf_objects) ../../src/swfrender.c ../devices/render.$(O)
$(L) ../../src/swfrender.c $(libswf_objects) ../librfxswf$(A) ../gfxtools.$(O) ../png.$(O) ../devices/render.$(O) -o swfrender $(LIBS)