Use spaces under tests/unit
[geos.git] / swig / ruby / Makefile.am
blob54070f45cca6988328bf6288696376064f2679cf
2 # This file is part of project GEOS (http://trac.osgeo.org/geos/) 
4 EXTRA_DIST = \
5         ruby.i 
7 MAINTAINERCLEANFILES = geos_wrap.cxx
9 if ENABLE_RUBY
11 SUBDIRS = \
12         test
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)
19 # Setup includes
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)
33 if ENABLE_SWIG
35 geos_wrap.cxx: ../geos.i ruby.i
36         $(SWIG) -c++ -ruby -autorename -o $@ $<
38 else # !ENABLE_SWIG
40 geos_wrap.cxx: ../geos.i ruby.i
41         @echo "SWIG is disabled, can't build geos_wrap.cxx"
42         false
44 endif # ENABLE_SWIG
46 endif # ENABLE_RUBY