summaryrefslogtreecommitdiff
path: root/macros/CCodeGeneration/C_GenerateMakefile.sci
diff options
context:
space:
mode:
authorsiddhu89902015-09-28 14:10:44 +0530
committersiddhu89902015-09-28 14:10:44 +0530
commitdd343609eabf4afcee2aa8eeeda3a383333d30e5 (patch)
treed859386d929a2f814ec3bf68c50b1df8fdf1f111 /macros/CCodeGeneration/C_GenerateMakefile.sci
parente929ae3e4254caac2d29a832ee75d4ed8ae4a380 (diff)
downloadscilab2c-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.sci4
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));