The execution of the generation files here needs the smlk/SmlkSfunc_jzTc directory content. 
That script files can be gotten from hartmut.schorrig@vishia.de
You can use the generated wrapper-files for the S-function and the mex generating files in the

+genSfn (parallel folder)

That are the results of generation with the SmlkSfunc_jzTc scripts for given header files ready to use.
It is especially to get the debug version of mex files to study it, or to make variation in the core C files.
