2 # This file is part of project GEOS (http://trac.osgeo.org/geos/)
7 MAINTAINERCLEANFILES = geos_wrap.cxx
14 BUILT_SOURCES = geos_wrap.cxx
16 # Don't know why there needs to be dirdir but it makes automake happy
17 rubyextensiondirdir = $(RUBY_EXTENSION_DIR)
20 AM_CPPFLAGS = -I$(RUBY_INCLUDE_DIR) -I$(RUBY_INCLUDE_DIR)/$(RUBY_SITE_ARCH)
22 # Build Ruby module as shared library
23 rubyextensiondir_LTLIBRARIES = geos.la
24 geos_la_SOURCES = geos_wrap.cxx
25 geos_la_LIBADD = $(top_builddir)/capi/libgeos_c.la $(RUBY_SO_NAME)
27 # Only need to grab the capi header files
28 geos_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/capi
30 # Specify -module and -avoid-version so we can create a file called geos.dll/so which is what Ruby wants
31 geos_la_LDFLAGS = -no-undefined -module -avoid-version -L$(RUBY_LIB_DIR)
35 geos_wrap.cxx: ../geos.i ruby.i
36 $(SWIG) -c++ -ruby -autorename -o $@ $<
40 geos_wrap.cxx: ../geos.i ruby.i
41 @echo "SWIG is disabled, can't build geos_wrap.cxx"