initial commit
[valse.git] / InputParameters / compileMex.m
... / ...
CommitLineData
1%compile C code (for MATLAB or Octave)
2if exist('octave_config_info')
3 setenv('CFLAGS','-O2 -std=gnu99 -fopenmp')
4 mkoctfile --mex -DOctave -I../Util -I../ProcLassoMLE selectiontotale.c selectiontotale_interface.c ../Util/ioutils.c ../ProcLassoMLE/EMGLLF.c -o selectiontotale -lm -lgsl -lgslcblas -lgomp
5else
6 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
7end