diff options
author | siddhu8990 | 2016-06-06 09:18:33 +0530 |
---|---|---|
committer | siddhu8990 | 2016-06-06 09:18:33 +0530 |
commit | c75fb67154fb5679d6ede9a52d5f5ae15600f9f9 (patch) | |
tree | c2c950617ab555a0fa74a4f7e0c592ec80bcf3bd /macros/CCodeGeneration/C_GenerateMakefile.sci | |
parent | 212c54043e454e41ca4b23a5b965d4dbd4b683fe (diff) | |
download | scilab2c-c75fb67154fb5679d6ede9a52d5f5ae15600f9f9.tar.gz scilab2c-c75fb67154fb5679d6ede9a52d5f5ae15600f9f9.tar.bz2 scilab2c-c75fb67154fb5679d6ede9a52d5f5ae15600f9f9.zip |
File handling functions added
Diffstat (limited to 'macros/CCodeGeneration/C_GenerateMakefile.sci')
-rw-r--r-- | macros/CCodeGeneration/C_GenerateMakefile.sci | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/macros/CCodeGeneration/C_GenerateMakefile.sci b/macros/CCodeGeneration/C_GenerateMakefile.sci index fecbf915..94b36964 100644 --- a/macros/CCodeGeneration/C_GenerateMakefile.sci +++ b/macros/CCodeGeneration/C_GenerateMakefile.sci @@ -90,10 +90,19 @@ target = SharedInfo.Target; PrintStringInfo('SRC = \\', FileInfo.MakefileFilename,'file','y','y'); allSources = getAllSources(target); nbSources = size(allSources); + for i = 1:(nbSources(1) - 1) [tmppath,tmpfile,tmpext] = fileparts(allSources(i)); - PrintStringInfo(' $(CSRCDIR)/'+tmpfile+tmpext+' \\', FileInfo.MakefileFilename,'file','y','y'); + + if(~isempty(strstr(allSources(i),'ode'))) + if(size(SharedInfo.ODElist) <> 0) + PrintStringInfo(' $(CSRCDIR)/'+tmpfile+tmpext+' \\', FileInfo.MakefileFilename,'file','y','y'); + end + else + PrintStringInfo(' $(CSRCDIR)/'+tmpfile+tmpext+' \\', FileInfo.MakefileFilename,'file','y','y'); + end end + [tmppath,tmpfile,tmpext] = fileparts(allSources(nbSources(1))); PrintStringInfo(' $(CSRCDIR)/'+tmpfile+tmpext, FileInfo.MakefileFilename,'file','y','y'); |