1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) DIGITEO - 2011 - Allan CORNET
4 // This file must be used under the terms of the CeCILL.
5 // This source file is licensed as described in the file COPYING, which
6 // you should have received as part of this distribution. The terms
7 // are also available at
8 // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9 //=============================================================================
10 function dlwCompile(files, make_command, makename)
15 if ( ilib_verbose() <> 0 ) then
16 mprintf(_(" Compilation of ") + string(files(i)) +"\n");
20 // then the shared library
21 if ( ilib_verbose() <> 0 ) then
22 mprintf(_(" Building shared library (be patient)\n"));
25 [msg, stat] = unix_g(make_command + makename + " all 2>&0");
27 // more feedback when compilation fails
28 [msg, stat, stderr] = unix_g(make_command + makename + " all 1>&2");
30 error(msprintf(gettext("%s: Error while executing %s.\n"), "ilib_compile", makename));
32 if ilib_verbose() > 1 then
37 //=============================================================================