1 ## Process this file with automake to produce Makefile.in.
3 ## Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
5 ## This file is part of GUILE.
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.
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.
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
22 include $(top_srcdir)/am/guilec
24 # We're at the root of the module hierarchy.
27 # Build eval.go first. Then build psyntax-pp.go, as the expander has to
28 # run on every loaded scheme file. It doesn't pay off at compile-time
29 # to interpret the expander in parallel!
30 $(GOBJECTS): ice-9/psyntax-pp.go
31 ice-9/psyntax-pp.go: ice-9/eval.go
32 CLEANFILES += ice-9/eval.go ice-9/psyntax-pp.go
33 nobase_mod_DATA += ice-9/eval.scm ice-9/psyntax-pp.scm
34 nobase_ccache_DATA += ice-9/eval.go ice-9/psyntax-pp.go
35 EXTRA_DIST += ice-9/eval.scm ice-9/psyntax-pp.scm
36 ETAGS_ARGS += ice-9/eval.scm ice-9/psyntax-pp.scm
38 VM_TARGETS := system/vm/assembler.go system/vm/disassembler.go
39 $(VM_TARGETS): $(top_builddir)/libguile/vm-operations.h
41 ice-9/boot-9.go: ice-9/boot-9.scm ice-9/quasisyntax.scm ice-9/r6rs-libraries.scm
42 ice-9/match.go: ice-9/match.scm ice-9/match.upstream.scm
44 # We can compile these in any order, but it's fastest if we compile
45 # boot-9 first, then the compiler itself, then the rest of the code.
48 language/tree-il/peval.scm \
49 language/tree-il/cse.scm \
53 system/vm/linker.scm \
55 system/vm/assembler.scm \
57 language/tree-il.scm \
58 $(TREE_IL_LANG_SOURCES) \
60 $(BYTECODE_LANG_SOURCES) \
61 $(VALUE_LANG_SOURCES) \
62 $(SCHEME_LANG_SOURCES) \
63 $(SYSTEM_BASE_SOURCES) \
71 $(ECMASCRIPT_LANG_SOURCES) \
72 $(ELISP_LANG_SOURCES) \
73 $(BRAINFUCK_LANG_SOURCES) \
77 ## test.scm is not currently installed.
80 ice-9/compile-psyntax.scm \
84 ice-9/compile-psyntax.scm \
87 ice-9/psyntax-pp.scm.gen:
88 $(top_builddir_absolute)/meta/guile --no-auto-compile -s $(srcdir)/ice-9/compile-psyntax.scm \
89 $(srcdir)/ice-9/psyntax.scm $(srcdir)/ice-9/psyntax-pp.scm
91 .PHONY: ice-9/psyntax-pp.scm.gen
93 # Keep this rule in sync with that in `am/guilec'.
94 ice-9/psyntax-pp.go: ice-9/psyntax.scm ice-9/psyntax-pp.scm
95 $(AM_V_GUILEC)GUILE_AUTO_COMPILE=0 \
96 $(top_builddir)/meta/uninstalled-env \
97 guild compile --target="$(host)" $(GUILE_WARNINGS) \
98 -L "$(abs_srcdir)" -L "$(abs_builddir)" \
99 -L "$(abs_top_srcdir)/guile-readline" \
100 -o "ice-9/psyntax-pp.go" "$(srcdir)/ice-9/psyntax.scm"
102 SCHEME_LANG_SOURCES = \
103 language/scheme/spec.scm \
104 language/scheme/compile-tree-il.scm \
105 language/scheme/decompile-tree-il.scm
107 TREE_IL_LANG_SOURCES = \
108 language/tree-il/primitives.scm \
109 language/tree-il/effects.scm \
110 language/tree-il/fix-letrec.scm \
111 language/tree-il/optimize.scm \
112 language/tree-il/canonicalize.scm \
113 language/tree-il/analyze.scm \
114 language/tree-il/inline.scm \
115 language/tree-il/compile-cps.scm \
116 language/tree-il/debug.scm \
117 language/tree-il/spec.scm
121 language/cps/arities.scm \
122 language/cps/closure-conversion.scm \
123 language/cps/compile-bytecode.scm \
124 language/cps/constructors.scm \
125 language/cps/contification.scm \
126 language/cps/dce.scm \
127 language/cps/dfg.scm \
128 language/cps/effects-analysis.scm \
129 language/cps/elide-values.scm \
130 language/cps/primitives.scm \
131 language/cps/reify-primitives.scm \
132 language/cps/slot-allocation.scm \
133 language/cps/simplify.scm \
134 language/cps/spec.scm \
135 language/cps/specialize-primcalls.scm \
136 language/cps/verify.scm
138 BYTECODE_LANG_SOURCES = \
139 language/bytecode.scm \
140 language/bytecode/spec.scm
142 VALUE_LANG_SOURCES = \
143 language/value/spec.scm
145 ECMASCRIPT_LANG_SOURCES = \
146 language/ecmascript/tokenize.scm \
147 language/ecmascript/parse.scm \
148 language/ecmascript/impl.scm \
149 language/ecmascript/base.scm \
150 language/ecmascript/function.scm \
151 language/ecmascript/array.scm \
152 language/ecmascript/compile-tree-il.scm \
153 language/ecmascript/spec.scm
155 ELISP_LANG_SOURCES = \
156 language/elisp/falias.scm \
157 language/elisp/lexer.scm \
158 language/elisp/parser.scm \
159 language/elisp/bindings.scm \
160 language/elisp/compile-tree-il.scm \
161 language/elisp/runtime.scm \
162 language/elisp/runtime/function-slot.scm \
163 language/elisp/runtime/value-slot.scm \
164 language/elisp/spec.scm
166 BRAINFUCK_LANG_SOURCES = \
167 language/brainfuck/parse.scm \
168 language/brainfuck/compile-scheme.scm \
169 language/brainfuck/compile-tree-il.scm \
170 language/brainfuck/spec.scm
173 scripts/compile.scm \
174 scripts/disassemble.scm \
175 scripts/display-commentary.scm \
176 scripts/doc-snarf.scm \
178 scripts/generate-autoload.scm \
183 scripts/read-scheme-source.scm \
184 scripts/read-text-outline.scm \
185 scripts/use2dot.scm \
186 scripts/snarf-check-and-output-texi.scm \
187 scripts/summarize-guile-TODO.scm \
188 scripts/api-diff.scm \
189 scripts/read-rfc822.scm \
190 scripts/snarf-guile-m4-docs.scm
192 SYSTEM_BASE_SOURCES = \
193 system/base/pmatch.scm \
194 system/base/syntax.scm \
195 system/base/compile.scm \
196 system/base/language.scm \
197 system/base/lalr.scm \
198 system/base/message.scm \
199 system/base/target.scm \
204 ice-9/deprecated.scm \
205 ice-9/and-let-star.scm \
206 ice-9/binary-ports.scm \
208 ice-9/command-line.scm \
209 ice-9/common-list.scm \
211 ice-9/curried-definitions.scm \
213 ice-9/documentation.scm \
214 ice-9/eval-string.scm \
218 ice-9/getopt-long.scm \
219 ice-9/hash-table.scm \
227 ice-9/networking.scm \
229 ice-9/occam-channel.scm \
231 ice-9/peg/simplify-tree.scm \
232 ice-9/peg/codegen.scm \
233 ice-9/peg/cache.scm \
234 ice-9/peg/using-parsers.scm \
235 ice-9/peg/string-peg.scm \
246 ice-9/safe-r5rs.scm \
248 ice-9/save-stack.scm \
249 ice-9/scm-style-repl.scm \
252 ice-9/stack-catch.scm \
254 ice-9/string-fun.scm \
258 ice-9/buffered-input.scm \
262 ice-9/pretty-print.scm \
264 ice-9/gap-buffer.scm \
265 ice-9/weak-vector.scm \
267 ice-9/serialize.scm \
272 # This functionality is missing on systems without `fork'---i.e., Windows.
273 ICE_9_SOURCES += ice-9/popen.scm
275 # These modules rely on (ice-9 popen).
277 scripts/autofrisk.scm \
280 endif BUILD_ICE_9_POPEN
285 srfi/srfi-4/gnu.scm \
289 srfi/srfi-9/gnu.scm \
317 rnrs/conditions.scm \
321 rnrs/exceptions.scm \
323 rnrs/hashtables.scm \
325 rnrs/mutable-pairs.scm \
326 rnrs/mutable-strings.scm \
330 rnrs/syntax-case.scm \
332 rnrs/arithmetic/bitwise.scm \
333 rnrs/arithmetic/fixnums.scm \
334 rnrs/arithmetic/flonums.scm \
335 rnrs/bytevectors.scm \
338 rnrs/records/inspection.scm \
339 rnrs/records/procedural.scm \
340 rnrs/records/syntactic.scm \
343 EXTRA_DIST += scripts/ChangeLog-2008
344 EXTRA_DIST += scripts/README
348 oop/goops/active-slot.scm \
349 oop/goops/compile.scm \
350 oop/goops/composite-slot.scm \
351 oop/goops/describe.scm \
352 oop/goops/dispatch.scm \
353 oop/goops/internal.scm \
355 oop/goops/stklos.scm \
357 oop/goops/accessors.scm \
361 system/vm/inspect.scm \
362 system/vm/coverage.scm \
363 system/vm/frame.scm \
364 system/vm/loader.scm \
365 system/vm/program.scm \
366 system/vm/trace.scm \
367 system/vm/traps.scm \
368 system/vm/trap-state.scm \
369 system/vm/debug.scm \
370 system/vm/disassembler.scm \
374 system/repl/debug.scm \
375 system/repl/error-handling.scm \
376 system/repl/common.scm \
377 system/repl/command.scm \
378 system/repl/repl.scm \
379 system/repl/server.scm
383 sxml/apply-templates.scm \
387 sxml/ssax/input-parse.scm \
392 texinfo/docbook.scm \
394 texinfo/indexing.scm \
395 texinfo/string-utils.scm \
396 texinfo/plain-text.scm \
397 texinfo/reflection.scm \
398 texinfo/serialize.scm
406 web/server/http.scm \
409 EXTRA_DIST += oop/ChangeLog-2008
412 language/elisp/boot.el
415 ice-9/match.upstream.scm \
417 ice-9/r6rs-libraries.scm \
418 ice-9/quasisyntax.scm \
419 srfi/srfi-42/ec.scm \
420 srfi/srfi-67/compare.scm \
421 system/base/lalr.upstream.scm \
422 system/repl/describe.scm \
424 sxml/upstream/SSAX.scm \
425 sxml/upstream/SXML-tree-trans.scm \
426 sxml/upstream/SXPath-old.scm \
427 sxml/upstream/assert.scm \
428 sxml/upstream/input-parse.scm