summaryrefslogtreecommitdiffstats
path: root/src/bindings/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/Makefile.am')
-rw-r--r--src/bindings/Makefile.am28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/bindings/Makefile.am b/src/bindings/Makefile.am
new file mode 100644
index 00000000..8935eebb
--- /dev/null
+++ b/src/bindings/Makefile.am
@@ -0,0 +1,28 @@
+FLAGS = @RAUL_CFLAGS@ @GLIBMM_CFLAGS@ -I$(top_srcdir)/ingen/src/common
+LIBS = @RAUL_LIBS@ @GLIBMM_LIBS@
+AM_CXXFLAGS = -I/usr/include/python2.4 $(FLAGS)
+
+EXTRA_DIST = ingen.i ingen_test.py
+
+if WITH_SWIG
+bindingsdir = $(libdir)/ingen
+bindings_LTLIBRARIES = libingen_bindings.la
+libingen_bindings_la_LDFLAGS = -no-undefined -module -avoid-version
+libingen_bindings_la_LIBADD = @RAUL_LIBS@ @GLIBMM_LIBS@ ../libs/module/libingen_module.la
+libingen_bindings_la_SOURCES = ingen_wrap.cxx
+
+swig: ingen.i
+ swig -c++ -Wall $(FLAGS) -python ingen.i
+
+libingen_bindings_la: swig ingen_wrap.cxx
+
+all-local:
+ ln -sf .libs/libingen_bindings.so _ingen.so
+
+#libtool --mode=compile g++ -fPIC -shared $(CXXFLAGS) $(FLAGS) $(LIBS) -I/usr/include/python2.4 ingen_wrap.cxx -o libingen_python.so.0.0.0
+endif
+
+clean-local:
+ rm *.cxx
+ rm *.so
+ rm *.o