function lib_ProgrFunc_Smlk_genSfn()
rootPath = evalin('base', 'rootPath');
clc;
clear mex;
currdir_ = pwd;
cd(rootPath);
disp('Generate S-Fuctions for lib_ProgrFunc_Smlk ...');
system('java.exe -cp ../../Java/vishiajar/zbnf.jar org.vishia.jztxtcmd.JZtxtcmd lib_Sfn/+mkSfn/lib_ProgrFunc_Smlk_genSfn.m');
genSfn.lib_ProgrFunc_Smlk_mex();    %just generated script.
%genSfn.lib_ProgrFunc_Smlk_mexdbg();    %just generated script.
disp('successfull')
cd(currdir_);

end
%{
==JZtxtcmd==
currdir = <:><&scriptdir>/../..<.>;
include ../../../SmlkSfunc_jzTc/simulinkSfuncBusGen.jzTc;

Fileset srcHeader =
( lib_Sfn:src_C/ProgrFunc_Smlk.h
);


Fileset includepath = 
( emc/source
, emc/incApplSpecific/stdef_SmlkSfuncExcH
, emc/incComplSpecific/cc_SmlkSfunc_64bit
, emc
, lib_Sfn
);



## All sources for compilation to the named header file, except the generated Sfunc-wrapper.
Fileset srcTlc_ProgrFunc_Smlk = 
( lib_Sfn/src_C/ProgrFunc_Smlk.c
);

## All sources for compilation to the named header file, except the generated Sfunc-wrapper.
Fileset src_ProgrFunc_Smlk = 
( //&srcTlc_ProgrFunc_Smlk
 emc/sourceApplSpecific/applConv/ApplThrowOnFatalError_emC.c
, emc/sourceApplSpecific/applConv/Exception_emC.c
, emc/sourceApplSpecific/applConv/ExceptionPrintStacktrace_emC.c
, emc/sourceApplSpecific/applConv/ExcThCxtStacksize.c
, emc/sourceApplSpecific/applConv/ThreadContextSingle_emC.c
, emc/sourceApplSpecific/applConv/ThreadContextUserBuffer_emC.c
, emc/source/emC/MemC_emC.c
, emc/source/emC/Memfree_ThreadAndBlockHeap.c
, emc/source/emC/Object_emC.c
, emc/source/emC/CheckStack_emC.c
, emc/source/emC/time_emC.c
, emc/source/emC/DefPortTypes_emC.c
, emc/source/emC/Reflection_emC.c
, emc/source/emC/ReflectionBaseTypes_emC.c
, emc/source/emC/StringBase_emC.c
, emc/source/emC/Handle_ptr64_emC.c
, emc/sourceSpecials/osal_Windows/os_sharedmem.c
, emc/sourceSpecials/osal_Windows/os_file.c
, emc/sourceSpecials/osal_Windows/os_mem.c
, emc/sourceSpecials/osal_Windows_Msc15/os_time.c
);




main() { ##main routine for the JZtxtcmd:

  zmake "lib_Sfn:lib_ProgrFunc_Smlk" := simulinkSfuncBusGen(&srcHeader, coptions="-TP -EHa" 
    ##, dirRefl = "genRefl" ##Reflections are part of the emC sources.
    ##, fileBus = ":+genBus/lib_Ctrl_genBus.m"
    , dirMex = ":mex"
    , dirMexcc=":+genSfn", dirSfunc = ":+genSfn/src_C" ##, dirTlc = ":+genSfn/src_C"
    ##, html=":test.html"  ##only for internally data view
    );

}

==endJZcmd==
%}
