<< dlgenerateloader | Dynamic link | dlgenerateunloader >> |
[res, message] = dlgeneratemake(destinationdir, libname, c_cpp_files, include) |
[res, message] = dlgeneratemake(destinationdir, libname, c_cpp_files, includes, defines, external_libraries, build_configuration, c_flags, cxx_flags) |
[res, message] = dlgeneratemake(maketype, destinationdir, libname, c_cpp_files, include) |
[res, message] = dlgeneratemake(maketype, destinationdir, libname, c_cpp_files, includes, defines, external_libraries, build_configuration, c_flags, cxx_flags) |
a string: 'executable' or 'dynamic_library'.
a string: destination directory where is generated the makefile.
a string: destination dynamic library or executable name.
a string or a cell of strings: .c or .cpp list files (full filename)
a string or a cell of strings: directories where to find include files.
a string or a cell of strings: a list of defines
a string or a cell of strings: a list of external libraries to link
a string: 'Debug' or 'Release'
a string: C flags
a string: C flags
a logical: true if makefile was generated.
a string: empty if makefile was generated or an error message.
dlgeneratemake generates a makefile adapted to your system environment for building shared libraries.
Thanks to CMake to help Nelson in this task.
See module skeleton for example
[status, message] = dlgeneratemake(currentpath, ...
'module_skeleton', ...
{[currentpath, '/cpp/cpp_sumBuiltin.cpp'], [currentpath, '/cpp/Gateway.cpp']}, ...
[{[currentpath, '/include']; [currentpath, '/../src/include']}; dlgetnelsonincludes()], ...
[], ...
[dlgetnelsonlibraries(); [currentpath, '/../src/business_code']]);
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET