%Matlab m-file to build the mex64 dll library
    
      clear mex;  %unload mex64 dll
      system('mkdir mex\tlc_c');
      system('copy "simulink\\test\\+TestOrthOscObjO\\+src2Sfn\*.tlc" "mex\tlc_c\*.tlc"');
    

disp('mex step_Test_ArrayVoid_SmlkObjO_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/step_Test_ArrayVoid_SmlkObjO_SfH.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...

disp('mex set_Output_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/set_Output_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...
      CRJ/sourceSpecials/os_Windows_64/os_atomic.c ...

disp('mex getLocked_Output_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/getLocked_Output_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...
      CRJ/sourceSpecials/os_Windows_64/os_atomic.c ...

disp('mex getSyncBus_Output_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/getSyncBus_Output_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...
      CRJ/sourceSpecials/os_Windows_64/os_atomic.c ...

disp('mex getBus_Output_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/getBus_Output_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...
      CRJ/sourceSpecials/os_Windows_64/os_atomic.c ...

disp('mex getSync_Output_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/getSync_Output_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...
      CRJ/sourceSpecials/os_Windows_64/os_atomic.c ...

disp('mex get_pq1_Output_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/get_pq1_Output_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...
      CRJ/sourceSpecials/os_Windows_64/os_atomic.c ...

disp('mex set_Data_Test_OrthOsc2_SfH.c'); 

mex -g ...
    -outdir mex/ ...
      -Isimulink/test/+TestOrthOscObjO/+genSfn ...
      -Isrcc_FB ...
      -ICRJ/source ...
      -ICRJ/source/OSAL ...
      -ICRJ/incApplSpecific/stdef_SmlkSfunc ...
      -ICRJ/incComplSpecific/cc_SmlkSfunc ...
      -Isrc2_refl ...
    simulink/test/+TestOrthOscObjO/+src2Sfn/set_Data_Test_OrthOsc2_SfH.c ...
      simulink/test/+TestOrthOscObjO/+genSfn/Data_Test_OrthOsc2.c ...
      CRJ/source/Fwc/fw_ReflectionBaseTypes.c ...
      CRJ/source/Fwc/fw_Object.c ...
      CRJ/source/Fwc/fw_handle_ptr64.c ...
      CRJ/sourceSpecials/FwConv_c/fw_ExcStacktrcNo.c ...
      CRJ/sourceSpecials/os_Windows_64/os_sharedmem.c ...