Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda Scilab >> Link Dinâmico/incremental > G_make

G_make

call make or nmake

Calling Sequence

Rfiles=G_make(files,dllname)

Arguments

files

a character string or a vector of character string.

dllname

a character string.

Rfiles

vector of character string. Rfiles can be used as a first argument when calling addinter function.

Description

On Unix like systems G_make calls the make utility for building target files and returns the value of files in the variable Rfiles. On windows platforms, G_make calls the nmake utility for building target dllname and it returns the value of dllname in the variable Rfiles. Of course G_make will work if apropriate Makefiles are provided in the current Scilab directory.

G_make can be used to provide OS independent call to addinter.

Examples

if getos() == 'Windows' then
  txt = ['ex1c.dll:',
         '  @echo ------------------------------------------',
         '  @echo From Makefile.mak',
         '  @echo ------------------------------------------',
         ' '];
  mputl(txt,TMPDIR+'/makefile.mak')
  current_dir = pwd();  
  cd TMPDIR
  files=G_make([TMPDIR+'/ex1cI.o',TMPDIR+'/ex1c.o'],'ex1c.dll');// compilation 
  //
  //addinter(files,'foobar','foubare'); // link 
  cd(current_dir);
end

See Also

  • addinter — new functions interface dynamic link at run time.
  • api_scilab — api_scilab is the Scilab interface to read/write data from/to Scilab memory
Report an issue
<< call Link Dinâmico/incremental addinter >>

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:
Mon Oct 01 17:39:55 CEST 2012