clear all;
close all; 
clc; 

% Save current path. 
savePath = path; 

% Revert to Matlab's default path. Prevent unwanted files from being
% pulled into the build. 
path(pathdef);


fprintf('Creating a new PiPro executable (load_pi.exe):\n');
piProVer = pipro_version; 

fprintf('   PiPro Version = %s\n', piProVer.piproVersion);
fprintf('   PiLineMex Version = %s\n', piProVer.pilineVersion);
fprintf('   Compiling a %s build ...\n', piProVer.buildType);

tic; 

mcc -m ... 
load_pi.m ...
pipro_version.m ...
suptitle.m ...
excise_matrix.m ...
excise_vector.m ...
fftplot.m ...
polar_expanded.m ...
runPiLine.m ...
plotHist.m ...
labelAxes.m ...
do_Xcorr.m ...
xcorr.m ...
setColourCodes.m ...
doLogo.m ...
PlotTrend.m ...
plotSVTrack.m ...
plotIono.m ...
loadPiHeaderHTM.m ...
plotCNR.m ...
PlotCNRDiffTime.m ...
PlotCNRDiffElev.m ...
analyzeGLONASS.m ...
-a antenn32.dll ...
-a dataread.dll ...
-a Dirnam32.dll ...
-a ephdll.dll ...
-a newephdll.dll ...
-a piLineMex.dll;

fprintf('   Completed compile.\n');
toc; 


% Restore Path
path(savePath); 
