Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Modules manager > tbx_build_src

tbx_build_src

Build sources (toolbox compilation process)

Calling Sequence

tbx_build_src(names, files, flag, [src_path [, libs [, ldflags [, cflags [, fflags [, cc [, libname [, loadername [, makename]]]]]]]]])

Arguments

names

a string matrix giving the entry names which are to be linked.

files

string matrix giving objects files needed for shared library creation

flag

a string flag ("c" or "f") for C or Fortran entry points.

src_path

Path to the source files ; in a normal toolbox it should be the directory containing the builder_src_(lang).sce script (which should be the script calling this function). Default is current directory.

libs

string matrix giving extra libraries needed for shared library creation

ldflags

optional character string. It can be used to add specific linker options in the generated Makefile. Default value is ''

cflags

optional character string. It can be used to add specific C compiler options in the generated Makefile. Default value is ''

fflags

optional character string. It can be used to add specific Fortran compiler options in the generated Makefile. Default value is ''

cc

optional character string. It can be used to specify a C compiler. Default value is ''

libname

optional character string. The name of the generated shared library (default value is '', and in this case the name is derived from names(1)).

loadername

character string. The pathname of the loader file (default value is loader.sce).

makename

character string. The pathname of the Makefile file without extension.

This parameter is useless since Scilab 5.0. Default value to use: [].

A warning will be displayed in Scilab 5.3 if you use another value that the default.

Examples

// Recommended usage
tbx_build_src(['csum','csub'], ['csum.c','csub.c'], 'c', ..
              get_absolute_file_path('builder_c.sce'));

See Also

Authors

  • SL
<< tbx_build_macros Modules manager tbx_builder_gateway >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:23:48 CET 2011