summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-21 14:30:32 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-21 14:30:47 +0100
commit96fa285132bf88462c33c5b24cc1b241fb3d4d73 (patch)
tree931f234c2e1c4f59fdf7a2bec3065f85c1e165fd /build
parent7f11ed333cdc93e9e93d4677f857d97ffbbfec87 (diff)
downloadastra-96fa285132bf88462c33c5b24cc1b241fb3d4d73.tar.gz
astra-96fa285132bf88462c33c5b24cc1b241fb3d4d73.tar.bz2
astra-96fa285132bf88462c33c5b24cc1b241fb3d4d73.tar.xz
astra-96fa285132bf88462c33c5b24cc1b241fb3d4d73.zip
Initialize Python plugins when available in Matlab
Diffstat (limited to 'build')
-rw-r--r--build/linux/Makefile.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in
index d5644bc..57ed8f8 100644
--- a/build/linux/Makefile.in
+++ b/build/linux/Makefile.in
@@ -95,6 +95,11 @@ ifeq ($(cuda),yes)
MEXFLAGS += -DASTRA_CUDA
endif
+ifeq ($(python),yes)
+MEXPYLDFLAGS='$$LDFLAGS $(LDFLAGS) -L$(PYLIBDIR)'
+MEXPYLIBS=$(MEXLIBS) -l$(PYLIBVER)
+endif
+
endif
LIBDIR=/usr/local/lib
@@ -265,6 +270,11 @@ mex: $(MATLAB_MEX)
%.$(MEXSUFFIX): %.o $(MATLAB_CXX_OBJECTS) libastra.la
$(MEX) LDFLAGS=$(MEXLDFLAGS) $(MEXFLAGS) $(LIBS) $(MEXLIBS) -lastra -output $* $*.o $(MATLAB_CXX_OBJECTS)
+
+ifeq ($(python),yes)
+matlab/mex/astra_mex_plugin_c.$(MEXSUFFIX): matlab/mex/astra_mex_plugin_c.o $(MATLAB_CXX_OBJECTS) libastra.la
+ $(MEX) LDFLAGS=$(MEXPYLDFLAGS) $(MEXFLAGS) $(LIBS) $(MEXPYLIBS) -lastra -output matlab/mex/astra_mex_plugin_c $< $(MATLAB_CXX_OBJECTS)
+endif
endif
ifeq ($(python),yes)