summaryrefslogtreecommitdiffstats
path: root/swig/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'swig/Makefile.am')
-rw-r--r--swig/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/swig/Makefile.am b/swig/Makefile.am
index 17a9e68..b6c5564 100644
--- a/swig/Makefile.am
+++ b/swig/Makefile.am
@@ -1,10 +1,16 @@
EXTRA_DIST = slv2.i lv2_list.py
if WITH_SWIG
+
+if WITH_PYTHON
all:
swig -Wall -python slv2.i
- gcc -fPIC -shared -I/usr/include/python2.4 slv2_wrap.c ../src/.libs/libslv2.so -o _slv2.so
-endif
+ gcc -fPIC -shared $(PYTHON_CPPFLAGS) $(PYTHON_EXTRA_LDFLAGS) \
+ $(PYTHON_EXTRA_LIBS) $(PYTHON_EXTRA_LDFLAGS) \
+ -I/usr/include/python2.4 slv2_wrap.c ../src/.libs/libslv2.so -o _slv2.so
+endif # WITH_PYTHON
+
+endif # WITH_SWIG
clean-local:
rm -f *.cxx