% minFunc
fprintf('Compiling minFunc files...\n');
mex -outdir compiled C/mcholC.c
mex -outdir compiled C/lbfgsC.c
mex -outdir compiled C/lbfgsAddC.c
mex -outdir compiled C/lbfgsProdC.c

% crfChain
fprintf('Compiling crfChain files...\n');
mex -outdir compiled C/crfChain_lossC.c
mex -outdir compiled C/crfChain_testErrC.c

% SAG4CRF
fprintf('Compiling SAG4CRF files...\n');
mex -outdir compiled C/crfChain_SGC.c
mex -outdir compiled C/crfChain_AdaGradC.c
mex -outdir compiled C/EG_getW_C.c
mex -outdir compiled C/OEG_update_C.c
mex -outdir compiled C/OEG_logUpdate_C.c
mex -outdir compiled C/crfChain_SAGC.c
mex -outdir compiled C/crfChain_SAGC_LS.c
mex -outdir compiled C/crfChain_SAGC_Lipschitz.c
mex -outdir compiled C/crfChain_SAGC_LipschitzSimple.c
mex -outdir compiled C/crfChain_SAGC_LipschitzSimpleSkip.c