diff options
Diffstat (limited to '2.3-1/macros/CCodeGeneration')
28 files changed, 32 insertions, 0 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin b/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin Binary files differdeleted file mode 100644 index b4005914..00000000 --- a/2.3-1/macros/CCodeGeneration/C_FinalizeCode.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_ForExpression.bin b/2.3-1/macros/CCodeGeneration/C_ForExpression.bin Binary files differdeleted file mode 100644 index 1c3f6747..00000000 --- a/2.3-1/macros/CCodeGeneration/C_ForExpression.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_Funcall.bin b/2.3-1/macros/CCodeGeneration/C_Funcall.bin Binary files differdeleted file mode 100644 index 80fda7c4..00000000 --- a/2.3-1/macros/CCodeGeneration/C_Funcall.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin b/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin Binary files differdeleted file mode 100644 index c3b36009..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenDeclarations.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.bin b/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.bin Binary files differdeleted file mode 100644 index 92289938..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenDeclarations_Dup.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin b/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin Binary files differdeleted file mode 100644 index 1b723f16..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenerateFunName.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin b/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin Binary files differdeleted file mode 100644 index 587c1547..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenerateLaunchScript.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin Binary files differdeleted file mode 100644 index cea86411..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci index 7dfb4da4..893ec938 100644 --- a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci +++ b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile.sci @@ -78,6 +78,25 @@ else PrintStringInfo('CXXFLAGS = -Wall -pedantic -g -I $(HSRCDIR) -I $(ISRCDIR) -L $(LIBDIR)',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('LDFLAGS = -lblas -llapack -lm ',FileInfo.MakefileFilename,'file','y','y'); end + + //If ode function is used, add libgsl. + if(size(SharedInfo.Includelist) <> 0) + if((mtlb_strcmp(part(SharedInfo.Includelist(1),1:5),'odefn') == %T)) + if(target == 'RPi') + PrintStringInfo('LDFLAGS = -lgsl -lcblas',FileInfo.MakefileFilename,'file','y','y'); + else + PrintStringInfo('LDFLAGS = -lgsl',FileInfo.MakefileFilename,'file','y','y'); + end + + end + end + + if (target == 'RPi') + PrintStringInfo('LDFLAGS += -llapack -lrefblas -lgfortran -lwiringPi',FileInfo.MakefileFilename,'file','y','y'); + else + PrintStringInfo('LDFLAGS += -lblas -llapack -lm ',FileInfo.MakefileFilename,'file','y','y'); + end + if(SharedInfo.OpenCVUsed == %T) PrintStringInfo('LDFLAGS += -lopencv_calib3d -lopencv_contrib -lopencv_features2d -lopencv_flann -lopencv_gpu',FileInfo.MakefileFilename,'file','y','y'); PrintStringInfo('LDFLAGS += -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree',FileInfo.MakefileFilename,'file','y','y'); diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin Binary files differdeleted file mode 100644 index 838c674e..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin Binary files differdeleted file mode 100644 index ce25219f..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci new file mode 100644 index 00000000..b43eb442 --- /dev/null +++ b/2.3-1/macros/CCodeGeneration/C_GenerateMkfle_arduino.sci @@ -0,0 +1,12 @@ +function C_GenerateMkfle_arduino(FileInfo,SharedInfo) + + PrintStringInfo('ARDUINO_DIR = /usr/share/arduino',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('ARDMK_DIR = /usr/share/arduino',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('AVR_TOOLS_DIR = /usr',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('BOARD_TAG = ' + SharedInfo.Board_name ,FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('USER_LIB_PATH = ../',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('ARDUINO_LIBS = ../src/c ../includes ../interfaces ../ Wire',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('ARDUINO_PORT = /dev/ttyACM0',FileInfo.MakefileFilename,'file','y','y'); + PrintStringInfo('include /usr/share/arduino/Arduino.mk',FileInfo.MakefileFilename,'file','y','y'); + +endfunction diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin b/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin Binary files differdeleted file mode 100644 index 2e02cae4..00000000 --- a/2.3-1/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin b/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin Binary files differdeleted file mode 100644 index 332e89bf..00000000 --- a/2.3-1/macros/CCodeGeneration/C_IfElseBlocks.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_IfExpression.bin b/2.3-1/macros/CCodeGeneration/C_IfExpression.bin Binary files differdeleted file mode 100644 index c93b6295..00000000 --- a/2.3-1/macros/CCodeGeneration/C_IfExpression.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin b/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin Binary files differdeleted file mode 100644 index 77bfaebc..00000000 --- a/2.3-1/macros/CCodeGeneration/C_IndentBlanks.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_InitHeader.bin b/2.3-1/macros/CCodeGeneration/C_InitHeader.bin Binary files differdeleted file mode 100644 index 567822c0..00000000 --- a/2.3-1/macros/CCodeGeneration/C_InitHeader.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin b/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin Binary files differdeleted file mode 100644 index 443ad3c1..00000000 --- a/2.3-1/macros/CCodeGeneration/C_MemAllocOutTempVars.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin b/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin Binary files differdeleted file mode 100644 index 1d3e6182..00000000 --- a/2.3-1/macros/CCodeGeneration/C_SCI2CHeader.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_Type.bin b/2.3-1/macros/CCodeGeneration/C_Type.bin Binary files differdeleted file mode 100644 index 7b5bf444..00000000 --- a/2.3-1/macros/CCodeGeneration/C_Type.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin b/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin Binary files differdeleted file mode 100644 index c10e1170..00000000 --- a/2.3-1/macros/CCodeGeneration/C_WhileExpression.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin b/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin Binary files differdeleted file mode 100644 index 6a374f5b..00000000 --- a/2.3-1/macros/CCodeGeneration/GenCFunDatFiles.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/GetClsFileName.bin b/2.3-1/macros/CCodeGeneration/GetClsFileName.bin Binary files differdeleted file mode 100644 index dda02933..00000000 --- a/2.3-1/macros/CCodeGeneration/GetClsFileName.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin b/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin Binary files differdeleted file mode 100644 index 5c73f435..00000000 --- a/2.3-1/macros/CCodeGeneration/GetSymbolDimension.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin b/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin Binary files differdeleted file mode 100644 index 6815fb4b..00000000 --- a/2.3-1/macros/CCodeGeneration/GetWhileCondVariable.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin b/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin Binary files differdeleted file mode 100644 index 084ab085..00000000 --- a/2.3-1/macros/CCodeGeneration/JoinDeclarAndCcode.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin b/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin Binary files differdeleted file mode 100644 index 95fe5611..00000000 --- a/2.3-1/macros/CCodeGeneration/Sci2AnnotationFile.bin +++ /dev/null diff --git a/2.3-1/macros/CCodeGeneration/names b/2.3-1/macros/CCodeGeneration/names index bf9ced9b..56caa81d 100644 --- a/2.3-1/macros/CCodeGeneration/names +++ b/2.3-1/macros/CCodeGeneration/names @@ -7,6 +7,7 @@ C_GenerateFunName C_GenerateLaunchScript C_GenerateMakefile C_GenerateMakefile_msvc +C_GenerateMkfle_arduino C_GenerateSCI2CHeader C_IfElseBlocks C_IfExpression |