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

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

nemo: updated copyright year

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