summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci
diff options
context:
space:
mode:
authorsiddhu89902015-09-28 14:10:44 +0530
committersiddhu89902015-09-28 14:10:44 +0530
commit3bcc8ce62560f36eaaab0e064b169b0118f354f3 (patch)
tree3b02338a8791e887b955b327b6ed987f14346921 /2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci
parent02d130cbece220ee2dafeb8d2236a51806e5fac8 (diff)
downloadScilab2C-3bcc8ce62560f36eaaab0e064b169b0118f354f3.tar.gz
Scilab2C-3bcc8ce62560f36eaaab0e064b169b0118f354f3.tar.bz2
Scilab2C-3bcc8ce62560f36eaaab0e064b169b0118f354f3.zip
Extension compatible with both - standalone and Arduino outputs.
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci4
1 files changed, 3 insertions, 1 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci
index e2fe6036..320d8035 100644
--- a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci
+++ b/2.3-1/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));