416ad22389564fc65800d4872a7a583e539c44c8
[bpt/guile.git] / module / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2 ##
3 ## Copyright (C) 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
4 ##
5 ## This file is part of GUILE.
6 ##
7 ## GUILE is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU Lesser General Public License as
9 ## published by the Free Software Foundation; either version 3, or
10 ## (at your option) any later version.
11 ##
12 ## GUILE is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU Lesser General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU Lesser General Public
18 ## License along with GUILE; see the file COPYING.LESSER. If not,
19 ## write to the Free Software Foundation, Inc., 51 Franklin Street,
20 ## Fifth Floor, Boston, MA 02110-1301 USA
21
22 include $(top_srcdir)/am/guilec
23
24 # We're at the root of the module hierarchy.
25 modpath =
26
27 # Build eval.go first.
28 $(GOBJECTS): ice-9/eval.go
29 CLEANFILES += ice-9/eval.go
30 nobase_mod_DATA += ice-9/eval.scm
31 nobase_ccache_DATA += ice-9/eval.go
32 EXTRA_DIST += ice-9/eval.scm
33 ETAGS_ARGS += ice-9/eval.scm
34
35 ice-9/boot-9.go: ice-9/boot-9.scm ice-9/quasisyntax.scm ice-9/r6rs-libraries.scm
36
37 # We can compile these in any order, but it's fastest if we compile
38 # psyntax and boot-9 first, then the compiler itself, then the rest of
39 # the code.
40 SOURCES = \
41 ice-9/psyntax-pp.scm \
42 ice-9/boot-9.scm \
43 ice-9/vlist.scm \
44 srfi/srfi-1.scm \
45 language/tree-il/peval.scm \
46 language/tree-il/cse.scm \
47 \
48 language/tree-il.scm \
49 language/glil.scm \
50 language/assembly.scm \
51 $(TREE_IL_LANG_SOURCES) \
52 $(GLIL_LANG_SOURCES) \
53 $(ASSEMBLY_LANG_SOURCES) \
54 $(BYTECODE_LANG_SOURCES) \
55 $(OBJCODE_LANG_SOURCES) \
56 $(VALUE_LANG_SOURCES) \
57 $(SCHEME_LANG_SOURCES) \
58 $(SYSTEM_BASE_SOURCES) \
59 \
60 $(ICE_9_SOURCES) \
61 $(SRFI_SOURCES) \
62 $(RNRS_SOURCES) \
63 $(OOP_SOURCES) \
64 $(SYSTEM_SOURCES) \
65 $(SCRIPTS_SOURCES) \
66 $(ECMASCRIPT_LANG_SOURCES) \
67 $(ELISP_LANG_SOURCES) \
68 $(BRAINFUCK_LANG_SOURCES) \
69 $(LIB_SOURCES) \
70 $(WEB_SOURCES)
71
72 ## test.scm is not currently installed.
73 EXTRA_DIST += \
74 ice-9/test.scm \
75 ice-9/compile-psyntax.scm \
76 ice-9/ChangeLog-2008
77 ETAGS_ARGS += \
78 ice-9/test.scm \
79 ice-9/compile-psyntax.scm \
80 ice-9/ChangeLog-2008
81
82 ice-9/psyntax-pp.scm.gen:
83 GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
84 $(top_builddir_absolute)/meta/guile -s $(srcdir)/ice-9/compile-psyntax.scm \
85 $(srcdir)/ice-9/psyntax.scm $(srcdir)/ice-9/psyntax-pp.scm
86
87 .PHONY: ice-9/psyntax-pp.scm.gen
88
89 # Keep this rule in sync with that in `am/guilec'.
90 ice-9/psyntax-pp.go: ice-9/psyntax.scm ice-9/psyntax-pp.scm
91 $(AM_V_GUILEC)GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
92 $(top_builddir)/meta/uninstalled-env \
93 guild compile --target="$(host)" $(GUILE_WARNINGS) \
94 -L "$(abs_srcdir)" -L "$(abs_builddir)" \
95 -L "$(abs_top_srcdir)/guile-readline" \
96 -o "ice-9/psyntax-pp.go" "$(srcdir)/ice-9/psyntax.scm"
97
98 SCHEME_LANG_SOURCES = \
99 language/scheme/spec.scm \
100 language/scheme/compile-tree-il.scm \
101 language/scheme/decompile-tree-il.scm
102
103 TREE_IL_LANG_SOURCES = \
104 language/tree-il/primitives.scm \
105 language/tree-il/effects.scm \
106 language/tree-il/fix-letrec.scm \
107 language/tree-il/optimize.scm \
108 language/tree-il/canonicalize.scm \
109 language/tree-il/analyze.scm \
110 language/tree-il/inline.scm \
111 language/tree-il/compile-glil.scm \
112 language/tree-il/debug.scm \
113 language/tree-il/spec.scm
114
115 GLIL_LANG_SOURCES = \
116 language/glil/spec.scm language/glil/compile-assembly.scm
117
118 ASSEMBLY_LANG_SOURCES = \
119 language/assembly/spec.scm \
120 language/assembly/compile-bytecode.scm \
121 language/assembly/decompile-bytecode.scm \
122 language/assembly/disassemble.scm
123
124 BYTECODE_LANG_SOURCES = \
125 language/bytecode/spec.scm
126
127 OBJCODE_LANG_SOURCES = \
128 language/objcode/spec.scm
129
130 VALUE_LANG_SOURCES = \
131 language/value/spec.scm
132
133 ECMASCRIPT_LANG_SOURCES = \
134 language/ecmascript/tokenize.scm \
135 language/ecmascript/parse.scm \
136 language/ecmascript/impl.scm \
137 language/ecmascript/base.scm \
138 language/ecmascript/function.scm \
139 language/ecmascript/array.scm \
140 language/ecmascript/compile-tree-il.scm \
141 language/ecmascript/spec.scm
142
143 ELISP_LANG_SOURCES = \
144 language/elisp/lexer.scm \
145 language/elisp/parser.scm \
146 language/elisp/bindings.scm \
147 language/elisp/compile-tree-il.scm \
148 language/elisp/runtime.scm \
149 language/elisp/runtime/function-slot.scm \
150 language/elisp/runtime/value-slot.scm \
151 language/elisp/runtime/macros.scm \
152 language/elisp/runtime/subrs.scm \
153 language/elisp/spec.scm
154
155 BRAINFUCK_LANG_SOURCES = \
156 language/brainfuck/parse.scm \
157 language/brainfuck/compile-scheme.scm \
158 language/brainfuck/compile-tree-il.scm \
159 language/brainfuck/spec.scm
160
161 SCRIPTS_SOURCES = \
162 scripts/autofrisk.scm \
163 scripts/compile.scm \
164 scripts/disassemble.scm \
165 scripts/display-commentary.scm \
166 scripts/doc-snarf.scm \
167 scripts/frisk.scm \
168 scripts/generate-autoload.scm \
169 scripts/help.scm \
170 scripts/lint.scm \
171 scripts/list.scm \
172 scripts/punify.scm \
173 scripts/read-scheme-source.scm \
174 scripts/read-text-outline.scm \
175 scripts/use2dot.scm \
176 scripts/snarf-check-and-output-texi.scm \
177 scripts/summarize-guile-TODO.scm \
178 scripts/scan-api.scm \
179 scripts/api-diff.scm \
180 scripts/read-rfc822.scm \
181 scripts/snarf-guile-m4-docs.scm
182
183 SYSTEM_BASE_SOURCES = \
184 system/base/pmatch.scm \
185 system/base/syntax.scm \
186 system/base/compile.scm \
187 system/base/language.scm \
188 system/base/lalr.scm \
189 system/base/message.scm \
190 system/base/target.scm \
191 system/base/ck.scm
192
193 ICE_9_SOURCES = \
194 ice-9/r4rs.scm \
195 ice-9/r5rs.scm \
196 ice-9/deprecated.scm \
197 ice-9/and-let-star.scm \
198 ice-9/binary-ports.scm \
199 ice-9/calling.scm \
200 ice-9/command-line.scm \
201 ice-9/common-list.scm \
202 ice-9/control.scm \
203 ice-9/curried-definitions.scm \
204 ice-9/debug.scm \
205 ice-9/documentation.scm \
206 ice-9/eval-string.scm \
207 ice-9/expect.scm \
208 ice-9/format.scm \
209 ice-9/futures.scm \
210 ice-9/getopt-long.scm \
211 ice-9/hcons.scm \
212 ice-9/i18n.scm \
213 ice-9/iconv.scm \
214 ice-9/lineio.scm \
215 ice-9/ls.scm \
216 ice-9/mapping.scm \
217 ice-9/match.scm \
218 ice-9/networking.scm \
219 ice-9/null.scm \
220 ice-9/occam-channel.scm \
221 ice-9/optargs.scm \
222 ice-9/poe.scm \
223 ice-9/poll.scm \
224 ice-9/posix.scm \
225 ice-9/q.scm \
226 ice-9/rdelim.scm \
227 ice-9/receive.scm \
228 ice-9/regex.scm \
229 ice-9/runq.scm \
230 ice-9/rw.scm \
231 ice-9/safe-r5rs.scm \
232 ice-9/safe.scm \
233 ice-9/save-stack.scm \
234 ice-9/scm-style-repl.scm \
235 ice-9/session.scm \
236 ice-9/slib.scm \
237 ice-9/stack-catch.scm \
238 ice-9/streams.scm \
239 ice-9/string-fun.scm \
240 ice-9/syncase.scm \
241 ice-9/threads.scm \
242 ice-9/top-repl.scm \
243 ice-9/buffered-input.scm \
244 ice-9/time.scm \
245 ice-9/history.scm \
246 ice-9/channel.scm \
247 ice-9/pretty-print.scm \
248 ice-9/ftw.scm \
249 ice-9/gap-buffer.scm \
250 ice-9/weak-vector.scm \
251 ice-9/list.scm \
252 ice-9/serialize.scm \
253 ice-9/local-eval.scm
254
255 if HAVE_FORK
256
257 # This functionality is missing on systems without `fork'---i.e., Windows.
258 ICE_9_SOURCES += ice-9/popen.scm
259
260 endif HAVE_FORK
261
262 SRFI_SOURCES = \
263 srfi/srfi-2.scm \
264 srfi/srfi-4.scm \
265 srfi/srfi-4/gnu.scm \
266 srfi/srfi-6.scm \
267 srfi/srfi-8.scm \
268 srfi/srfi-9.scm \
269 srfi/srfi-9/gnu.scm \
270 srfi/srfi-10.scm \
271 srfi/srfi-11.scm \
272 srfi/srfi-13.scm \
273 srfi/srfi-14.scm \
274 srfi/srfi-16.scm \
275 srfi/srfi-17.scm \
276 srfi/srfi-18.scm \
277 srfi/srfi-19.scm \
278 srfi/srfi-26.scm \
279 srfi/srfi-27.scm \
280 srfi/srfi-31.scm \
281 srfi/srfi-34.scm \
282 srfi/srfi-35.scm \
283 srfi/srfi-37.scm \
284 srfi/srfi-38.scm \
285 srfi/srfi-41.scm \
286 srfi/srfi-42.scm \
287 srfi/srfi-39.scm \
288 srfi/srfi-45.scm \
289 srfi/srfi-60.scm \
290 srfi/srfi-67.scm \
291 srfi/srfi-69.scm \
292 srfi/srfi-88.scm \
293 srfi/srfi-98.scm
294
295 RNRS_SOURCES = \
296 rnrs/base.scm \
297 rnrs/conditions.scm \
298 rnrs/control.scm \
299 rnrs/enums.scm \
300 rnrs/eval.scm \
301 rnrs/exceptions.scm \
302 rnrs/files.scm \
303 rnrs/hashtables.scm \
304 rnrs/lists.scm \
305 rnrs/mutable-pairs.scm \
306 rnrs/mutable-strings.scm \
307 rnrs/programs.scm \
308 rnrs/r5rs.scm \
309 rnrs/sorting.scm \
310 rnrs/syntax-case.scm \
311 rnrs/unicode.scm \
312 rnrs/arithmetic/bitwise.scm \
313 rnrs/arithmetic/fixnums.scm \
314 rnrs/arithmetic/flonums.scm \
315 rnrs/bytevectors.scm \
316 rnrs/io/simple.scm \
317 rnrs/io/ports.scm \
318 rnrs/records/inspection.scm \
319 rnrs/records/procedural.scm \
320 rnrs/records/syntactic.scm \
321 rnrs.scm
322
323 EXTRA_DIST += scripts/ChangeLog-2008
324 EXTRA_DIST += scripts/README
325
326 OOP_SOURCES = \
327 oop/goops.scm \
328 oop/goops/active-slot.scm \
329 oop/goops/compile.scm \
330 oop/goops/composite-slot.scm \
331 oop/goops/describe.scm \
332 oop/goops/dispatch.scm \
333 oop/goops/internal.scm \
334 oop/goops/save.scm \
335 oop/goops/stklos.scm \
336 oop/goops/util.scm \
337 oop/goops/accessors.scm \
338 oop/goops/simple.scm
339
340 SYSTEM_SOURCES = \
341 system/vm/inspect.scm \
342 system/vm/coverage.scm \
343 system/vm/frame.scm \
344 system/vm/instruction.scm \
345 system/vm/objcode.scm \
346 system/vm/program.scm \
347 system/vm/trace.scm \
348 system/vm/traps.scm \
349 system/vm/trap-state.scm \
350 system/vm/vm.scm \
351 system/foreign.scm \
352 system/xref.scm \
353 system/repl/debug.scm \
354 system/repl/error-handling.scm \
355 system/repl/common.scm \
356 system/repl/command.scm \
357 system/repl/repl.scm \
358 system/repl/server.scm
359
360 LIB_SOURCES = \
361 statprof.scm \
362 sxml/apply-templates.scm \
363 sxml/fold.scm \
364 sxml/match.scm \
365 sxml/simple.scm \
366 sxml/ssax/input-parse.scm \
367 sxml/ssax.scm \
368 sxml/transform.scm \
369 sxml/xpath.scm \
370 texinfo.scm \
371 texinfo/docbook.scm \
372 texinfo/html.scm \
373 texinfo/indexing.scm \
374 texinfo/string-utils.scm \
375 texinfo/plain-text.scm \
376 texinfo/reflection.scm \
377 texinfo/serialize.scm
378
379 WEB_SOURCES = \
380 web/client.scm \
381 web/http.scm \
382 web/request.scm \
383 web/response.scm \
384 web/server.scm \
385 web/server/http.scm \
386 web/uri.scm
387
388 EXTRA_DIST += oop/ChangeLog-2008
389
390 NOCOMP_SOURCES = \
391 ice-9/match.upstream.scm \
392 ice-9/psyntax.scm \
393 ice-9/r6rs-libraries.scm \
394 ice-9/quasisyntax.scm \
395 srfi/srfi-42/ec.scm \
396 srfi/srfi-67/compare.scm \
397 system/base/lalr.upstream.scm \
398 system/repl/describe.scm \
399 sxml/sxml-match.ss \
400 sxml/upstream/SSAX.scm \
401 sxml/upstream/SXML-tree-trans.scm \
402 sxml/upstream/SXPath-old.scm \
403 sxml/upstream/assert.scm \
404 sxml/upstream/input-parse.scm