source: project/release/4/nemo/trunk/nemo.setup @ 27300

Last change on this file since 27300 was 27300, checked in by Ivan Raikov, 9 years ago

nemo: version set to 6.8

File size: 8.0 KB
Line 
1; -*- Hen -*-
2
3(define (dynld-name fn)         
4  (make-pathname #f fn ##sys#load-dynamic-extension))   
5
6(define nemo-version 6.8)
7
8(use make)
9
10(make (
11       ("expr.grm.scm" ("expr.grm")
12        (run (csi -s expr.grm)))
13
14       ((dynld-name "nemo-core") ("nemo-core.scm" "expr.grm.scm")
15        (compile -no-trace -O -d2 -s nemo-core.scm -j nemo-core))
16
17       ((dynld-name "nemo-core.import") ("nemo-core.import.scm")
18        (compile -no-trace -O2 -s nemo-core.import.scm))
19       )
20  (list (dynld-name "nemo-core")
21        (dynld-name "nemo-core.import"))
22  )
23
24(install-extension
25
26  ; Name of your extension:
27  'nemo-core
28
29  ; Files to install for your extension:
30  `(,(dynld-name "nemo-core") ,(dynld-name "nemo-core.import"))
31
32  ; Assoc list with properties for your extension:
33  `((version ,nemo-version)))
34
35
36(make (
37       ((dynld-name "nemo-utils") ("nemo-utils.scm")
38        (compile -no-trace -O -d2 -s nemo-utils.scm -j nemo-utils))
39
40       ((dynld-name "nemo-utils.import") ("nemo-utils.import.scm")
41        (compile -no-trace -O2 -s nemo-utils.import.scm))
42       )
43  (list (dynld-name "nemo-utils")
44        (dynld-name "nemo-utils.import"))
45  )
46
47
48(install-extension
49
50  ; Name of your extension:
51  'nemo-utils
52
53  ; Files to install for your extension:
54  `(,(dynld-name "nemo-utils") ,(dynld-name "nemo-utils.import"))
55
56  ; Assoc list with properties for your extension:
57  `((version ,nemo-version)))
58
59
60(make (
61       ((dynld-name "nemo-synapse") ("nemo-synapse.scm")
62        (compile -no-trace -O -d2 -s nemo-synapse.scm -j nemo-synapse))
63
64       ((dynld-name "nemo-synapse.import") ("nemo-synapse.import.scm")
65        (compile -no-trace -O2 -s nemo-synapse.import.scm))
66       )
67  (list (dynld-name "nemo-synapse")
68        (dynld-name "nemo-synapse.import"))
69  )
70
71
72
73(install-extension
74
75  ; Name of your extension:
76  'nemo-synapse
77
78  ; Files to install for your extension:
79  `(,(dynld-name "nemo-synapse") ,(dynld-name "nemo-synapse.import") )
80
81  ; Assoc list with properties for your extension:
82  `((version ,nemo-version)))
83
84
85
86(make (
87       ((dynld-name "nemo-gate-complex") ("nemo-gate-complex.scm")
88        (compile -no-trace -O -d2 -s nemo-gate-complex.scm -j nemo-gate-complex))
89
90       ((dynld-name "nemo-gate-complex.import") ("nemo-gate-complex.import.scm")
91        (compile -no-trace -O2 -s nemo-gate-complex.import.scm))
92       )
93  (list (dynld-name "nemo-gate-complex")
94        (dynld-name "nemo-gate-complex.import"))
95  )
96
97
98
99(install-extension
100
101  ; Name of your extension:
102  'nemo-gate-complex
103
104  ; Files to install for your extension:
105  `(,(dynld-name "nemo-gate-complex") ,(dynld-name "nemo-gate-complex.import") )
106
107  ; Assoc list with properties for your extension:
108  `((version ,nemo-version)))
109
110
111(make (
112       ((dynld-name "nemo-macros") ("nemo-macros.scm")
113        (compile -no-trace -O -d2 -s nemo-macros.scm -j nemo-macros))
114
115       ((dynld-name "nemo-macros.import") ("nemo-macros.import.scm")
116        (compile -no-trace -O2 -s nemo-macros.import.scm))
117       )
118  (list (dynld-name "nemo-macros")
119        (dynld-name "nemo-macros.import"))
120  )
121
122(install-extension
123
124  ; Name of your extension:
125  'nemo-macros
126
127  ; Files to install for your extension:
128  `(,(dynld-name "nemo-macros") ,(dynld-name "nemo-macros.import") )
129
130  ; Assoc list with properties for your extension:
131  `((version ,nemo-version)))
132
133
134(make (
135       ((dynld-name "nemo-nmodl") ("nemo-nmodl.scm")
136        (compile -no-trace -O -d2 -s nemo-nmodl.scm -j nemo-nmodl))
137
138       ((dynld-name "nemo-nmodl.import") ("nemo-nmodl.import.scm")
139        (compile -no-trace -O2 -s nemo-nmodl.import.scm))
140       )
141  (list (dynld-name "nemo-nmodl")
142        (dynld-name "nemo-nmodl.import"))
143  )
144
145(install-extension
146
147  ; Name of your extension:
148  'nemo-nmodl
149
150  ; Files to install for your extension:
151  `(,(dynld-name "nemo-nmodl")  ,(dynld-name "nemo-nmodl.import")  )
152
153  ; Assoc list with properties for your extension:
154  `((version ,nemo-version)))
155
156(if (file-exists? "nemo-matlab.scm")
157    (begin
158      (make (
159             ((dynld-name "nemo-matlab") ("nemo-matlab.scm")
160              (compile -no-trace -O -d2 -s nemo-matlab.scm -j nemo-matlab))
161             
162             ((dynld-name "nemo-matlab.import") ("nemo-matlab.import.scm")
163              (compile -no-trace -O2 -s nemo-matlab.import.scm))
164             )
165        (list (dynld-name "nemo-matlab")
166              (dynld-name "nemo-matlab.import"))
167        )))
168
169
170(if (file-exists? "nemo-matlab.scm")
171    (install-extension
172     
173     ;; Name of your extension:
174     'nemo-matlab
175     
176     ;; Files to install for your extension:
177     `(,(dynld-name "nemo-matlab")  ,(dynld-name "nemo-matlab.import")  )
178     
179     ;; Assoc list with properties for your extension:
180     `((version ,nemo-version))))
181
182
183(if (file-exists? "nemo-nest.scm")
184    (begin
185      (make (
186             ((dynld-name "nemo-nest") ("nemo-nest.scm")
187              (compile -no-trace -O -d2 -s nemo-nest.scm -j nemo-nest))
188             
189             ((dynld-name "nemo-nest.import") ("nemo-nest.import.scm")
190              (compile -no-trace -O2 -s nemo-nest.import.scm))
191             )
192        (list (dynld-name "nemo-nest")
193              (dynld-name "nemo-nest.import"))
194        )))
195
196
197(if (file-exists? "nemo-nest.scm")
198    (install-extension
199     
200     ;; Name of your extension:
201     'nemo-nest
202     
203     ;; Files to install for your extension:
204     `(,(dynld-name "nemo-nest")  ,(dynld-name "nemo-nest.import")  )
205     
206     ;; Assoc list with properties for your extension:
207     `((version ,nemo-version))))
208
209
210(if (file-exists? "nemo-pyparams.scm")
211    (begin
212      (make (
213             ((dynld-name "nemo-pyparams") ("nemo-pyparams.scm")
214              (compile -no-trace -O -d2 -s nemo-pyparams.scm -j nemo-pyparams))
215             
216             ((dynld-name "nemo-pyparams.import") ("nemo-pyparams.import.scm")
217              (compile -no-trace -O2 -s nemo-pyparams.import.scm))
218             )
219        (list (dynld-name "nemo-pyparams")
220              (dynld-name "nemo-pyparams.import"))
221        )))
222
223
224(if (file-exists? "nemo-pyparams.scm")
225    (install-extension
226     
227     ;; Name of your extension:
228     'nemo-pyparams
229     
230     ;; Files to install for your extension:
231     `(,(dynld-name "nemo-pyparams")  ,(dynld-name "nemo-pyparams.import")  )
232     
233     ;; Assoc list with properties for your extension:
234     `((version ,nemo-version))))
235
236
237(make (
238       ((dynld-name "nemo-hh") ("extensions/nemo-hh.scm")
239        (compile -no-trace -O -d2 -s extensions/nemo-hh.scm -j nemo-hh
240                 -o ,(dynld-name "nemo-hh")) )
241
242       ((dynld-name "nemo-hh.import") ("nemo-hh.import.scm")
243        (compile -no-trace -O2 -s nemo-hh.import.scm))
244       )
245  (list (dynld-name "nemo-hh")
246        (dynld-name "nemo-hh.import"))
247  )
248
249(install-extension
250
251  ; Name of your extension:
252  'nemo-hh
253
254  ; Files to install for your extension:
255  `(,(dynld-name "nemo-hh")  ,(dynld-name "nemo-hh.import"))
256
257  ; Assoc list with properties for your extension:
258  `((version ,nemo-version)))
259
260(make (
261       ((dynld-name "nemo-vclamp") ("extensions/nemo-vclamp.scm")
262        (compile -no-trace -O -d2 -s extensions/nemo-vclamp.scm -j nemo-vclamp
263                 -o ,(dynld-name "nemo-vclamp")) )
264
265       ((dynld-name "nemo-vclamp.import") ("nemo-vclamp.import.scm")
266        (compile -no-trace -O2 -s nemo-vclamp.import.scm))
267       )
268  (list (dynld-name "nemo-vclamp")
269        (dynld-name "nemo-vclamp.import"))
270  )
271
272
273(install-extension
274
275  ; Name of your extension:
276  'nemo-vclamp
277
278  ; Files to install for your extension:
279  `(,(dynld-name "nemo-vclamp") ,(dynld-name "nemo-vclamp.import"))
280
281  ; Assoc list with properties for your extension:
282  `((version ,nemo-version)))
283
284
285(make (
286       ("nemo" ("nemo.scm")
287        (compile -no-trace -uses files -d2 nemo.scm))
288       )
289  "nemo")
290
291(install-program
292 'nemo
293 
294 `("nemo" )
295
296  ; Assoc list with properties for the program:
297  `((version ,nemo-version)
298    (documentation "nemo.html")))
299
300;; From setup-header.scm by Kon Lovett
301
302(define (installation-chicken-home)
303  (if (not (installation-prefix)) (chicken-home)
304    (make-pathname `(,(installation-prefix) "share") "chicken") ) )
305
306;;; Constants & Procedures
307
308(define SHARED-DIR (installation-chicken-home))
309(define NEMO-DIR (make-pathname SHARED-DIR "nemo"))
310
311;; File Copy Operations
312
313(define (copy-file-to-nemo-dir fn)
314  (let ([fn (->string fn)])
315    (copy-file fn (make-pathname NEMO-DIR fn)) ) )
316
317;(copy-file-to-nemo-dir "examples/hh-substrate.nemo")
318;(copy-file-to-nemo-dir "examples/hh-superstrate.nemo")
319;(copy-file-to-nemo-dir "examples/Khaliq03")
320
Note: See TracBrowser for help on using the repository browser.