function rf24_build_sfuns
% rf24_build_sfuns
    
% Copyright 2015 - 2016 The MathWorks, Inc.

    here = fileparts(mfilename('fullpath'));
    old = cd(fullfile(here, 'src'));
    goBack = onCleanup(@() cd(old));
    sfuns = dir('*.cpp');
    sfuns = {sfuns.name};
    for k=1:length(sfuns)
        fprintf('Mex %s ...\n', sfuns{k});
        mex(sfuns{k}, ...
            ...'-v', ...
            '-outdir', '..');
    end
end