diff options
author | siddhu8990 | 2016-06-27 19:16:41 +0530 |
---|---|---|
committer | siddhu8990 | 2016-06-27 19:16:41 +0530 |
commit | d7d53dc95a7cb9878a4e49bdd06e626e981b0eb2 (patch) | |
tree | 9f918cd4dfba745362e0cf3341c1eb65ac239dd3 /2.3-1/macros/CCodeGeneration | |
parent | 7e9419d65013fa1109dd67deaabf77aa34011a35 (diff) | |
download | Scilab2C-d7d53dc95a7cb9878a4e49bdd06e626e981b0eb2.tar.gz Scilab2C-d7d53dc95a7cb9878a4e49bdd06e626e981b0eb2.tar.bz2 Scilab2C-d7d53dc95a7cb9878a4e49bdd06e626e981b0eb2.zip |
test commit
Diffstat (limited to '2.3-1/macros/CCodeGeneration')
-rw-r--r-- | 2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin | bin | 27820 -> 27976 bytes | |||
-rw-r--r-- | 2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci | 11 | ||||
-rw-r--r-- | 2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin | bin | 21988 -> 22604 bytes | |||
-rw-r--r-- | 2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.sci | 5 |
4 files changed, 11 insertions, 5 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin Binary files differindex 3ced74fb..4b3546e9 100644 --- a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin +++ b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci index 94b36964..b1c1e71e 100644 --- a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci +++ b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci @@ -120,11 +120,12 @@ PrintStringInfo('\t@echo ""Generation of the executable""',FileInfo.MakefileFile PrintStringInfo('\t@echo ""============================""',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t$(CC) $(CFLAGS) $(OBJ) *.c $(LDFLAGS) -o $(EXEFILE)',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t@echo "" ""',FileInfo.MakefileFilename,'file','y','y'); -PrintStringInfo('\t@echo ""==============""',FileInfo.MakefileFilename,'file','y','y'); -PrintStringInfo('\t@echo ""Executing code""',FileInfo.MakefileFilename,'file','y','y'); -PrintStringInfo('\t@echo ""==============""',FileInfo.MakefileFilename,'file','y','y'); -PrintStringInfo('\t$(EXEFILE)',FileInfo.MakefileFilename,'file','y','y'); - +if(target == "StandAlone") + PrintStringInfo('\t@echo ""==============""',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('\t@echo ""Executing code""',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('\t@echo ""==============""',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('\t$(EXEFILE)',FileInfo.MakefileFilename,'file','y','y'); +end PrintStringInfo('clean:',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t@echo "" ""',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t@echo ""=============================""',FileInfo.MakefileFilename,'file','y','y'); diff --git a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin Binary files differindex 66286eb7..a818143f 100644 --- a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin +++ b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin diff --git a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.sci b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.sci index ebbf0023..43288958 100644 --- a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.sci +++ b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.sci @@ -145,6 +145,11 @@ PrintStringInfo('** ---------------',CPass2FileName,'file','y'); PrintStringInfo('** --- C code. ---',CPass2FileName,'file','y'); PrintStringInfo('** ---------------',CPass2FileName,'file','y'); PrintStringInfo('*/',CPass2FileName,'file','y'); + +if(SharedInfo.Target == "RPi") + //Add bcm2835_init() function as it is required + PrintStringInfo('bcm2835_init();',CPass2FileName,'file','y'); +end // --- Copy the remaining part of V1 in V2. --- while (~meof(CPass1V1FileFid)) // #RNU_RES_B |