source: project/ode/trunk/ode.setup @ 7225

Last change on this file since 7225 was 7225, checked in by Ivan Raikov, 13 years ago

Restructuring of the solver interface.

File size: 6.1 KB
Line 
1
2(required-extension-version 'interp1d "1.8")
3
4(define has-exports? (string>=? (chicken-version) "2.310"))
5
6(define (dynld-name fn)         
7  (make-pathname #f fn ##sys#load-dynamic-extension))   
8
9(run (csi -qbs ode-eggdoc.scm > ode.html))
10
11
12(compile -O2 -s -o ,(dynld-name "ode")
13         ,@(if has-exports? '(-check-imports -emit-exports ode.exports) '())
14         ode.scm)
15
16(install-extension
17
18  ; Name of your extension:
19  'ode
20
21  ; Files to install for your extension:
22  `(,(dynld-name "ode") "ode.html"
23    ,@(if has-exports? '("ode.exports") (list)) )
24
25  ; Assoc list with properties for your extension:
26  `((version 2.6)
27    (documentation "ode.html")
28    ,@(if has-exports? `((exports "ode.exports")) (list)) ))
29
30
31(compile -O2 -s -o ,(dynld-name "ode-euler")
32         ,@(if has-exports? '(-check-imports -emit-exports ode-euler.exports) '())
33         euler.scm)
34
35(compile -O2 -s -o ,(dynld-name "ode-rkf45")
36         ,@(if has-exports? '(-check-imports -emit-exports ode-rkf45.exports) '())
37         rkf45.scm)
38
39(compile -O2 -s -o ,(dynld-name "ode-abm4")
40         ,@(if has-exports? '(-check-imports -emit-exports ode-abm4.exports) '())
41         abm4.scm)
42
43(install-extension
44
45  ; Name of your extension:
46  'ode-abm4
47
48  ; Files to install for your extension:
49  `(,(dynld-name "ode-abm4") 
50    ,@(if has-exports? '("ode-abm4.exports") (list)) )
51
52  ; Assoc list with properties for your extension:
53  `((version 2.6)
54    ,@(if has-exports? `((exports "ode-abm4.exports")) (list)) ))
55
56
57(install-extension
58
59  ; Name of your extension:
60  'ode-rkf45
61
62  ; Files to install for your extension:
63  `( ,(dynld-name "ode-rkf45")
64    ,@(if has-exports? '("ode-rkf45.exports") (list)) )
65
66  ; Assoc list with properties for your extension:
67  `((version 2.6)
68    ,@(if has-exports? `((exports "ode-rkf45.exports")) (list)) ))
69
70
71(install-extension
72
73  ; Name of your extension:
74  'ode-euler
75
76  ; Files to install for your extension:
77  `(,(dynld-name "ode-euler")
78    ,@(if has-exports? '("ode-euler.exports") (list)) )
79  ; Assoc list with properties for your extension:
80  `((version 2.6)
81    ,@(if has-exports? `((exports "ode-euler.exports")) (list)) ))
82
83
84(compile -d2 -O -s -o ,(dynld-name "ode-solvers")
85         ,@(if has-exports? '(-check-imports -emit-exports ode-solvers.exports) '())
86         extensions/ode-solvers.scm)
87
88(compile -d2 -O -s -o ,(dynld-name "ode-ctranslator")
89         ,@(if has-exports? '(-check-imports -emit-exports ode-ctranslator.exports) '())
90         extensions/ode-ctranslator.scm)
91
92(compile -d2 -O -s -o ,(dynld-name "ode-bpr")
93         ,@(if has-exports? '(-check-imports -emit-exports ode-bpr.exports) '())
94         extensions/ode-bpr.scm)
95
96(compile -d2 -O -s -o ,(dynld-name "ode-hhsbp")
97         ,@(if has-exports? '(-check-imports -emit-exports ode-hhsbp.exports) '())
98         extensions/ode-hhsbp.scm)
99
100(compile -d2 -O -s -o ,(dynld-name "ode-waveform")
101         ,@(if has-exports? '(-check-imports -emit-exports ode-waveform.exports) '())
102         extensions/ode-waveform.scm)
103
104(compile -d2 -O -s -o ,(dynld-name "ode-lambda")
105         ,@(if has-exports? '(-check-imports -emit-exports ode-lambda.exports) '())
106         extensions/ode-lambda.scm)
107
108(compile -d2 -O -s -o ,(dynld-name "ode-rate")
109         ,@(if has-exports? '(-check-imports -emit-exports ode-rate.exports) '())
110         extensions/ode-rate.scm)
111
112(compile -d2 -O -s -o ,(dynld-name "ode-hhs")
113         ,@(if has-exports? '(-check-imports -emit-exports ode-hhs.exports) '())
114         extensions/ode-hhs.scm)
115
116;(compile -d2 -O -s -o ,(dynld-name "ode-interp1d")
117;        ,@(if has-exports? '(-check-imports -emit-exports ode-interp1d.exports) '())
118;        extensions/ode-interp1d.scm)
119
120
121
122(install-extension
123
124  ; Name of your extension:
125  'ode-solvers
126
127  ; Files to install for your extension:
128  `(,(dynld-name "ode-solvers") 
129    ,@(if has-exports? '("ode-solvers.exports") (list)) )
130
131  ; Assoc list with properties for your extension:
132  `((version 2.6)
133    ,@(if has-exports? `((exports "ode-solvers.exports")) (list)) ))
134
135
136(install-extension
137
138  ; Name of your extension:
139  'ode-ctranslator
140
141  ; Files to install for your extension:
142  `(,(dynld-name "ode-ctranslator") 
143    ,@(if has-exports? '("ode-ctranslator.exports") (list)) )
144
145  ; Assoc list with properties for your extension:
146  `((version 2.6)
147    ,@(if has-exports? `((exports "ode-ctranslator.exports")) (list)) ))
148
149
150(install-extension
151
152  ; Name of your extension:
153  'ode-hhsbp
154
155  ; Files to install for your extension:
156  `(,(dynld-name "ode-hhsbp") 
157    ,@(if has-exports? '("ode-hhsbp.exports") (list)) )
158
159  ; Assoc list with properties for your extension:
160  `((version 2.6)
161    ,@(if has-exports? `((exports "ode-hhsbp.exports")) (list)) ))
162
163
164(install-extension
165
166  ; Name of your extension:
167  'ode-bpr
168
169  ; Files to install for your extension:
170  `(,(dynld-name "ode-bpr") 
171    ,@(if has-exports? '("ode-bpr.exports") (list)) )
172
173  ; Assoc list with properties for your extension:
174  `((version 2.6)
175    ,@(if has-exports? `((exports "ode-bpr.exports")) (list)) ))
176
177
178
179(install-extension
180
181  ; Name of your extension:
182  'ode-waveform
183
184  ; Files to install for your extension:
185  `(,(dynld-name "ode-waveform") 
186    ,@(if has-exports? '("ode-waveform.exports") (list)) )
187
188  ; Assoc list with properties for your extension:
189  `((version 2.6)
190    ,@(if has-exports? `((exports "ode-waveform.exports")) (list)) ))
191
192
193(install-extension
194
195  ; Name of your extension:
196  'ode-hhs
197
198  ; Files to install for your extension:
199  `(,(dynld-name "ode-hhs") 
200    ,@(if has-exports? '("ode-hhs.exports") (list)) )
201
202  ; Assoc list with properties for your extension:
203  `((version 2.6)
204    ,@(if has-exports? `((exports "ode-hhs.exports")) (list)) ))
205
206
207(install-extension
208
209  ; Name of your extension:
210  'ode-lambda
211
212  ; Files to install for your extension:
213  `(,(dynld-name "ode-lambda") 
214    ,@(if has-exports? '("ode-lambda.exports") (list)) )
215
216  ; Assoc list with properties for your extension:
217  `((version 2.6)
218    ,@(if has-exports? `((exports "ode-lambda.exports")) (list)) ))
219
220
221(install-extension
222
223  ; Name of your extension:
224  'ode-rate
225
226  ; Files to install for your extension:
227  `(,(dynld-name "ode-rate") 
228    ,@(if has-exports? '("ode-rate.exports") (list)) )
229
230  ; Assoc list with properties for your extension:
231  `((version 2.6)
232    ,@(if has-exports? `((exports "ode-rate.exports")) (list)) ))
233
234
235
236
237(install-extension
238 'ode-macros
239 `("ode-macros.scm" )
240 `((version 2.6)
241   (syntax)
242   (require-at-runtime ode)))
243
244
Note: See TracBrowser for help on using the repository browser.