diff options
author | siddhu8990 | 2015-09-28 14:10:44 +0530 |
---|---|---|
committer | siddhu8990 | 2015-09-28 14:10:44 +0530 |
commit | dd343609eabf4afcee2aa8eeeda3a383333d30e5 (patch) | |
tree | d859386d929a2f814ec3bf68c50b1df8fdf1f111 /macros/CCodeGeneration/C_GenerateMakefile.sci | |
parent | e929ae3e4254caac2d29a832ee75d4ed8ae4a380 (diff) | |
download | scilab2c-dd343609eabf4afcee2aa8eeeda3a383333d30e5.tar.gz scilab2c-dd343609eabf4afcee2aa8eeeda3a383333d30e5.tar.bz2 scilab2c-dd343609eabf4afcee2aa8eeeda3a383333d30e5.zip |
Extension compatible with both - standalone and Arduino outputs.
Diffstat (limited to 'macros/CCodeGeneration/C_GenerateMakefile.sci')
-rw-r--r-- | macros/CCodeGeneration/C_GenerateMakefile.sci | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macros/CCodeGeneration/C_GenerateMakefile.sci b/macros/CCodeGeneration/C_GenerateMakefile.sci index e2fe6036..320d8035 100644 --- a/macros/CCodeGeneration/C_GenerateMakefile.sci +++ b/macros/CCodeGeneration/C_GenerateMakefile.sci @@ -59,8 +59,10 @@ PrintStringInfo('EXEFILENAME = mytest.exe',FileInfo.MakefileFilename,'file','y', PrintStringInfo('EXEFILE = $(SCI2CDIR)/$(EXEFILENAME)', FileInfo.MakefileFilename,'file','y','y'); // Sources +//Check the output format selected and insert files according to it +outformat = SharedInfo.OutFormat; PrintStringInfo('SRC = \\', FileInfo.MakefileFilename,'file','y','y'); -allSources = getAllSources(); +allSources = getAllSources(outformat); nbSources = size(allSources); for i = 1:(nbSources(1) - 1) [tmppath,tmpfile,tmpext] = fileparts(allSources(i)); |