~ubuntu-branches/debian/jessie/rtai/jessie

« back to all changes in this revision

Viewing changes to rtai-lab/scicoslab/macros/builder.sce

  • Committer: Bazaar Package Importer
  • Author(s): Roland Stigge
  • Date: 2009-07-04 11:47:08 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090704114708-0ivbkccfaawz2pby
Tags: 3.7.1-1
* New upstream release
* debian/control: Standards-Version: 3.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
mode(-1);
 
2
// specific part
 
3
libname='rtai' // name of scilab function library [CUSTOM]
 
4
 
 
5
//** It is a better function to recover the absolute path information 
 
6
DIR = get_absolute_file_path('builder.sce')
 
7
 
 
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\' 
 
16
end
 
17
 
 
18
//compile sci files if necessary and build lib file
 
19
genlib(libname,MACROS)
 
20
 
 
21
cd(ROUTINES)
 
22
 
 
23
names=['rtsinus';
 
24
       'rtsquare';
 
25
       'rt_step';
 
26
       'exit_on_error';
 
27
       'par_getstr']
 
28
files=['rtai_sinus.o';
 
29
       'rtai_square.o';
 
30
       'rtai_step.o';
 
31
       'exit_on_error.o';
 
32
       'getstr.o']
 
33
 
 
34
libn=ilib_for_link(names,files,[],"c","Makelib","loader.sce","rtinp","","-I.")
 
35
 
 
36
quit