#!/bin/sh

MATLAB_PATH=/usr/local/matlab7/
BDM_PATH=../../bdm

#MATLAB_PATH=/home/smidl/soft/matlab/matlab/
#BDM_PATH=/home/smidl/work/git/mixpp/bdm

mex -g -l itpp -l bdm -I$MATLAB_PATH/extern/include -I$BDM_PATH  -L ../../bdm/ -L ../../linux/libs/ $1 
#mex -l itpp -l bdm -I$MATLAB_PATH/extern/include -I$BDM_PATH  -L ../../bdm/ -L ../../linux/libs/ $1 
#mxestimator.cpp
#mex -l bdm -I ../../bdm/ -I /home/smidl/soft/matlab/matlab/extern/include -L ../../bdm/ linefit2.cpp
