diff options
author | jofret | 2012-08-02 06:22:08 +0000 |
---|---|---|
committer | jofret | 2012-08-02 06:22:08 +0000 |
commit | 4a8180017481e6b3caf5e0c8a48c88dc1e0b4179 (patch) | |
tree | dc0719390d4e06ae6057c9d84f4bd50d1b0bd457 /macros | |
parent | 6f7bf42267c0c63de48bc103f5c05b38be556a80 (diff) | |
download | scilab2c-4a8180017481e6b3caf5e0c8a48c88dc1e0b4179.tar.gz scilab2c-4a8180017481e6b3caf5e0c8a48c88dc1e0b4179.tar.bz2 scilab2c-4a8180017481e6b3caf5e0c8a48c88dc1e0b4179.zip |
Remove SCI2C tag on functions call for now.
Diffstat (limited to 'macros')
-rw-r--r-- | macros/CCodeGeneration/C_Funcall.sci | 10 | ||||
-rw-r--r-- | macros/CCodeGeneration/C_GenerateMakefile.sci | 5 |
2 files changed, 9 insertions, 6 deletions
diff --git a/macros/CCodeGeneration/C_Funcall.sci b/macros/CCodeGeneration/C_Funcall.sci index 8b629cb1..b130a622 100644 --- a/macros/CCodeGeneration/C_Funcall.sci +++ b/macros/CCodeGeneration/C_Funcall.sci @@ -195,11 +195,13 @@ else end -if CFunName == "main" +// FIXME : Wrap library function call with prefixed name + +//if CFunName == "main" CCall = CCall + CFunName + "("; -else - CCall = CCall+"SCI2C("+CFunName+")("; -end +//else +// CCall = CCall+"SCI2C("+CFunName+")("; +//end // #RNU_RES_B PrintStringInfo(' C call after output scalar args check: '+CCall,ReportFileName,'file','y'); diff --git a/macros/CCodeGeneration/C_GenerateMakefile.sci b/macros/CCodeGeneration/C_GenerateMakefile.sci index 3914d4dc..013f2e8f 100644 --- a/macros/CCodeGeneration/C_GenerateMakefile.sci +++ b/macros/CCodeGeneration/C_GenerateMakefile.sci @@ -56,7 +56,8 @@ PrintStringInfo('SCI2CDIR = .',FileInfo.MakefileFilename,'file','y','y'); // Compiler definition PrintStringInfo('CC = gcc',FileInfo.MakefileFilename,'file','y','y'); -PrintStringInfo('CFLAGS = -Wall -pedantic -I $(HSRCDIR) -I $(ISRCDIR) -lm',FileInfo.MakefileFilename,'file','y','y'); +PrintStringInfo('CFLAGS = -Wall -pedantic -I $(HSRCDIR) -I $(ISRCDIR)',FileInfo.MakefileFilename,'file','y','y'); +PrintStringInfo('LDFLAGS = -lblas -llapack -lm',FileInfo.MakefileFilename,'file','y','y'); // Binary definition PrintStringInfo('EXEFILENAME = mytest.exe',FileInfo.MakefileFilename,'file','y','y'); @@ -85,7 +86,7 @@ PrintStringInfo('\t@echo "" ""',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t@echo ""============================""',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t@echo ""Generation of the executable""',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('\t@echo ""============================""',FileInfo.MakefileFilename,'file','y','y'); -PrintStringInfo('\t$(CC) $(CFLAGS) $(OBJ) *.c -llapack -lblas -o $(EXEFILE)',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'); |