1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
|
// This is the builder.sce
// must be run from this directory
lines(0);
ilib_name = 'libexamples' // interface library name
ilib_name =
libexamples
// objects files
files = ['ex01intc.o'
'ex01intf.o'
'ex02intc.o'
'ex02intf.o'
'ex03intc.o'
'ex04intc.o'
'ex04intf.o'
'ex05intc.o'
'ex06intc.o'
'ex07intc.o'
'ex08intc.o'
'ex09intc.o'
'ex09intf.o'
'ex10intc.o'
'ex11intc.o'
'ex12intc.o'
'ex12intf.o'
'ex13intc.o'
'ex13intf.o'
'ex14intc.o'
'ex14intf.o'
'ex15intc.o'
'ex15intf.o'
'ex15f.o'
'ex16intc.o'
'ex17intc.o'];
libs = [] // other libs needed for linking
libs =
[]
// table of (scilab_name,interface-name)
// for fortran coded interface use 'C2F(name)'
table =['ex1c', 'intex1c';
'ex1f', 'C2F(intex1f)';
'ex2c_1', 'intex2c_1';
'ex2c_2', 'intex2c_2';
'ex2f_1', 'C2F(intex2f1)';
'ex2f_2', 'C2F(intex2f2)';
'ex3c_1', 'intex3c_1';
'ex3c_2', 'intex3c_2';
'ex3c_3', 'intex3c_3';
'ex4c_1', 'intex4c_1';
'ex4c_2', 'intex4c_2';
'ex4c_3', 'intex4c_3';
'ex4c_4', 'intex4c_4';
'ex4f_1', 'C2F(intex4f1)';
'ex4f_2', 'C2F(intex4f2)';
'ex4f_3', 'C2F(intex4f3)';
'ex4f_4', 'C2F(intex4f4)';
'ex5c_1', 'intex5c_1';
'ex5c_2', 'intex5c_2';
'ex6c_1', 'intex6c_1';
'ex6c_2', 'intex6c_2';
'ex6c_3', 'intex6c_3';
'ex6c_4', 'intex6c_4';
'ex7c_1', 'intex7c_1';
'ex7c_2', 'intex7c_2';
'ex7c_3', 'intex7c_3';
'ex8c_1', 'intex8c_1';
'ex8c_2', 'intex8c_2';
'ex9c_1', 'intex9c_1';
'ex9c_2', 'intex9c_2';
'ex9c_3', 'intex9c_3';
'ex9c_4', 'intex9c_4';
'ex9f_1', 'C2F(intex9f1)';
'ex9f_2', 'C2F(intex9f2)';
'ex9f_3', 'C2F(intex9f3)';
'ex9f_4', 'C2F(intex9f4)';
'ex10c_1', 'intex10c_1';
'ex10c_2', 'intex10c_2';
'ex10c_3', 'intex10c_3';
'ex10c_4', 'intex10c_4';
'ex11c', 'intex11c';
'ex12c', 'intex12c';
'ex12f', 'C2F(intex12f)';
'ex13c_1', 'intex13c_1';
'ex13c_2', 'intex13c_2';
'ex13c_3', 'intex13c_3';
'ex13f_1', 'C2F(intex13f1)';
'ex13f_2', 'C2F(intex13f2)';
'ex13f_3', 'C2F(intex13f3)';
'ex14c', 'intex14c';
'ex14f', 'C2F(intex14f)';
'ex15c', 'intex15c';
'ex15f', 'intex15f';
'ex16c', 'intex16c';
'ex17c', 'intex17c_1'];
// extra parameters can be transmited to the linker
// and to the C and Fortran compilers with
// ldflags,cflags,fflags
// for example to link a set of routines using the
// ImageMagick library
// ldflags = "`Magick-config --ldflags --libs`";
// cflags = "`Magick-config --cppflags`";
// fflags = "";
ldflags = "";
cflags ="";
fflags ="";
// do not modify below
// ----------------------------------------------
ilib_build(ilib_name,table,files,libs,'Makelib',ldflags,cflags,fflags)
generate a gateway file
generate a loader file
generate a Makefile: Makelib
running the makefile
compilation of ex01intc
compilation of ex01intf
compilation of ex02intc
compilation of ex02intf
compilation of ex03intc
compilation of ex04intc
compilation of ex04intf
compilation of ex05intc
compilation of ex06intc
compilation of ex07intc
compilation of ex08intc
compilation of ex09intc
compilation of ex09intf
compilation of ex10intc
compilation of ex11intc
compilation of ex12intc
compilation of ex12intf
compilation of ex13intc
compilation of ex13intf
compilation of ex14intc
compilation of ex14intf
compilation of ex15intc
compilation of ex15intf
compilation of ex15f
compilation of ex16intc
compilation of ex17intc
building shared library (be patient)
|