detect ruby in configure script
[swftools.git] / lib / ruby / Makefile.in
diff --git a/lib/ruby/Makefile.in b/lib/ruby/Makefile.in
new file mode 100644 (file)
index 0000000..bac1a5a
--- /dev/null
@@ -0,0 +1,20 @@
+top_builddir = ../..
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+include ../../Makefile.common
+
+all: gfx.$(SLEXT)
+
+gfx.$(O): gfx.c 
+       $(C) $(RUBY_CPPFLAGS) -Wall -Wno-unused -fPIC -c gfx.c -o gfx.$(O)
+
+GFX_DEPS=../libgfxpdf$(A) ../libgfxswf$(A)  ../librfxswf$(A) ../libgfx$(A) ../libocr$(A) ../libbase$(A) 
+gfx.$(SLEXT): gfx.$(O) $(GFX_DEPS) Makefile
+       $(L) $(RUBY_LDFLAGS) $(SHARED) gfx.$(O) -o gfx.$(SLEXT) $(GFX_DEPS) $(PYTHON_LIB) $(LIBS) $(RUBY_LIBS) $(CXXLIBS)
+
+clean:
+       rm -f *.o *.$(O) *.$(SLEXT) *.so
+
+install:
+
+.PHONY: all