3
libname='rtai' // name of scilab function library [CUSTOM]
5
//** It is a better function to recover the absolute path information
6
DIR = get_absolute_file_path('builder.sce')
8
if ~MSDOS then // Unix Linux
9
if part(DIR,1)<>'/' then DIR=getcwd()+'/'+DIR,end
10
MACROS=DIR+'macros/' // Path of the macros directory
11
ROUTINES = DIR+'routines/'
12
else // windows- Visual C++
13
if part(DIR,2)<>':' then DIR=getcwd()+'\'+DIR,end
14
MACROS=DIR+'macros\' // Path of the macros directory
15
ROUTINES = DIR+'routines\'
18
//compile sci files if necessary and build lib file
19
genlib(libname,MACROS)
28
files=['rtai_sinus.o';
34
libn=ilib_for_link(names,files,[],"c","Makelib","loader.sce","rtinp","","-I.")