prepare structure for R package
[valse.git] / OLD_MATLAB / InputParameters / compileMex.m
diff --git a/OLD_MATLAB/InputParameters/compileMex.m b/OLD_MATLAB/InputParameters/compileMex.m
new file mode 100644 (file)
index 0000000..9e5f64b
--- /dev/null
@@ -0,0 +1,7 @@
+%compile C code (for MATLAB or Octave)
+if exist('octave_config_info')
+       setenv('CFLAGS','-O2 -std=gnu99 -fopenmp')
+       mkoctfile --mex -DOctave -I../Util -I../ProcLassoMLE selectiontotale.c selectiontotale_interface.c ../Util/ioutils.c ../ProcLassoMLE/EMGLLF.c -o selectiontotale -lm -lgsl -lgslcblas -lgomp
+else
+       mex CFLAGS="\$CFLAGS -O2 -std=gnu99 -fopenmp" -I../Util -I../ProcLassoMLE selectiontotale.c selectiontotale_interface.c ../Util/ioutils.c ../ProcLassoMLE/EMGLLF.c -output selectiontotale -lm -lgsl -lgslcblas -lgomp
+end