1 ## Process this file with automake to produce Makefile.in.
3 ## Copyright (C) 2009, 2010, 2011, 2012, 2013,
4 ## 2014 Free Software Foundation, Inc.
6 ## This file is part of GUILE.
8 ## GUILE is free software; you can redistribute it and/or modify it
9 ## under the terms of the GNU Lesser General Public License as
10 ## published by the Free Software Foundation; either version 3, or
11 ## (at your option) any later version.
13 ## GUILE is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU Lesser General Public License for more details.
18 ## You should have received a copy of the GNU Lesser General Public
19 ## License along with GUILE; see the file COPYING.LESSER. If not,
20 ## write to the Free Software Foundation, Inc., 51 Franklin Street,
21 ## Fifth Floor, Boston, MA 02110-1301 USA
23 include $(top_srcdir)/am/guilec
25 # We're at the root of the module hierarchy.
28 # Build eval.go first. Then build psyntax-pp.go, as the expander has to
29 # run on every loaded scheme file. It doesn't pay off at compile-time
30 # to interpret the expander in parallel!
31 $(GOBJECTS): ice-9/psyntax-pp.go
32 ice-9/psyntax-pp.go: ice-9/eval.go
33 CLEANFILES += ice-9/eval.go ice-9/psyntax-pp.go
34 nobase_mod_DATA += ice-9/eval.scm ice-9/psyntax-pp.scm
35 nobase_ccache_DATA += ice-9/eval.go ice-9/psyntax-pp.go
36 EXTRA_DIST += ice-9/eval.scm ice-9/psyntax-pp.scm
37 ETAGS_ARGS += ice-9/eval.scm ice-9/psyntax-pp.scm
39 VM_TARGETS := system/vm/assembler.go system/vm/disassembler.go
40 $(VM_TARGETS): $(top_builddir)/libguile/vm-operations.h
42 ice-9/boot-9.go: ice-9/boot-9.scm ice-9/quasisyntax.scm ice-9/r6rs-libraries.scm
43 ice-9/match.go: ice-9/match.scm ice-9/match.upstream.scm
45 # We can compile these in any order, but it's fastest if we compile
46 # boot-9 first, then the compiler itself, then the rest of the code.
49 language/tree-il/peval.scm \
50 language/tree-il/cse.scm \
54 system/vm/linker.scm \
56 system/vm/assembler.scm \
58 language/tree-il.scm \
59 $(TREE_IL_LANG_SOURCES) \
61 $(BYTECODE_LANG_SOURCES) \
62 $(VALUE_LANG_SOURCES) \
63 $(SCHEME_LANG_SOURCES) \
64 $(SYSTEM_BASE_SOURCES) \
72 $(ECMASCRIPT_LANG_SOURCES) \
73 $(ELISP_LANG_SOURCES) \
74 $(BRAINFUCK_LANG_SOURCES) \
78 ## test.scm is not currently installed.
81 ice-9/compile-psyntax.scm \
85 ice-9/compile-psyntax.scm \
88 ice-9/psyntax-pp.scm.gen:
89 $(top_builddir_absolute)/meta/guile --no-auto-compile -s $(srcdir)/ice-9/compile-psyntax.scm \
90 $(srcdir)/ice-9/psyntax.scm $(srcdir)/ice-9/psyntax-pp.scm
92 .PHONY: ice-9/psyntax-pp.scm.gen
94 # Keep this rule in sync with that in `am/guilec'.
95 ice-9/psyntax-pp.go: ice-9/psyntax.scm ice-9/psyntax-pp.scm
96 $(AM_V_GUILEC)GUILE_AUTO_COMPILE=0 \
97 $(top_builddir)/meta/uninstalled-env \
98 guild compile --target="$(host)" $(GUILE_WARNINGS) \
99 -L "$(abs_srcdir)" -L "$(abs_builddir)" \
100 -L "$(abs_top_srcdir)/guile-readline" \
101 -o "ice-9/psyntax-pp.go" "$(srcdir)/ice-9/psyntax.scm"
103 SCHEME_LANG_SOURCES = \
104 language/scheme/spec.scm \
105 language/scheme/compile-tree-il.scm \
106 language/scheme/decompile-tree-il.scm
108 TREE_IL_LANG_SOURCES = \
109 language/tree-il/primitives.scm \
110 language/tree-il/effects.scm \
111 language/tree-il/fix-letrec.scm \
112 language/tree-il/optimize.scm \
113 language/tree-il/canonicalize.scm \
114 language/tree-il/analyze.scm \
115 language/tree-il/inline.scm \
116 language/tree-il/compile-cps.scm \
117 language/tree-il/debug.scm \
118 language/tree-il/spec.scm
122 language/cps/arities.scm \
123 language/cps/closure-conversion.scm \
124 language/cps/compile-bytecode.scm \
125 language/cps/constructors.scm \
126 language/cps/contification.scm \
127 language/cps/dce.scm \
128 language/cps/dfg.scm \
129 language/cps/effects-analysis.scm \
130 language/cps/elide-values.scm \
131 language/cps/primitives.scm \
132 language/cps/reify-primitives.scm \
133 language/cps/slot-allocation.scm \
134 language/cps/simplify.scm \
135 language/cps/spec.scm \
136 language/cps/specialize-primcalls.scm \
137 language/cps/verify.scm
139 BYTECODE_LANG_SOURCES = \
140 language/bytecode.scm \
141 language/bytecode/spec.scm
143 VALUE_LANG_SOURCES = \
144 language/value/spec.scm
146 ECMASCRIPT_LANG_SOURCES = \
147 language/ecmascript/tokenize.scm \
148 language/ecmascript/parse.scm \
149 language/ecmascript/impl.scm \
150 language/ecmascript/base.scm \
151 language/ecmascript/function.scm \
152 language/ecmascript/array.scm \
153 language/ecmascript/compile-tree-il.scm \
154 language/ecmascript/spec.scm
156 ELISP_LANG_SOURCES = \
157 language/elisp/falias.scm \
158 language/elisp/lexer.scm \
159 language/elisp/parser.scm \
160 language/elisp/bindings.scm \
161 language/elisp/compile-tree-il.scm \
162 language/elisp/runtime.scm \
163 language/elisp/runtime/function-slot.scm \
164 language/elisp/runtime/value-slot.scm \
165 language/elisp/spec.scm
167 BRAINFUCK_LANG_SOURCES = \
168 language/brainfuck/parse.scm \
169 language/brainfuck/compile-scheme.scm \
170 language/brainfuck/compile-tree-il.scm \
171 language/brainfuck/spec.scm
174 scripts/compile.scm \
175 scripts/disassemble.scm \
176 scripts/display-commentary.scm \
177 scripts/doc-snarf.scm \
179 scripts/generate-autoload.scm \
184 scripts/read-scheme-source.scm \
185 scripts/read-text-outline.scm \
186 scripts/use2dot.scm \
187 scripts/snarf-check-and-output-texi.scm \
188 scripts/summarize-guile-TODO.scm \
189 scripts/api-diff.scm \
190 scripts/read-rfc822.scm \
191 scripts/snarf-guile-m4-docs.scm
193 SYSTEM_BASE_SOURCES = \
194 system/base/pmatch.scm \
195 system/base/syntax.scm \
196 system/base/compile.scm \
197 system/base/language.scm \
198 system/base/lalr.scm \
199 system/base/message.scm \
200 system/base/target.scm \
205 ice-9/deprecated.scm \
206 ice-9/and-let-star.scm \
207 ice-9/binary-ports.scm \
209 ice-9/command-line.scm \
210 ice-9/common-list.scm \
212 ice-9/curried-definitions.scm \
214 ice-9/documentation.scm \
215 ice-9/eval-string.scm \
219 ice-9/getopt-long.scm \
220 ice-9/hash-table.scm \
228 ice-9/networking.scm \
230 ice-9/occam-channel.scm \
232 ice-9/peg/simplify-tree.scm \
233 ice-9/peg/codegen.scm \
234 ice-9/peg/cache.scm \
235 ice-9/peg/using-parsers.scm \
236 ice-9/peg/string-peg.scm \
247 ice-9/safe-r5rs.scm \
249 ice-9/save-stack.scm \
250 ice-9/scm-style-repl.scm \
253 ice-9/stack-catch.scm \
255 ice-9/string-fun.scm \
259 ice-9/buffered-input.scm \
263 ice-9/pretty-print.scm \
265 ice-9/gap-buffer.scm \
266 ice-9/weak-vector.scm \
268 ice-9/serialize.scm \
273 # This functionality is missing on systems without `fork'---i.e., Windows.
274 ICE_9_SOURCES += ice-9/popen.scm
276 # These modules rely on (ice-9 popen).
278 scripts/autofrisk.scm \
281 endif BUILD_ICE_9_POPEN
283 srfi/srfi-64.go: srfi/srfi-64.scm srfi/srfi-64/testing.scm
288 srfi/srfi-4/gnu.scm \
292 srfi/srfi-9/gnu.scm \
323 rnrs/conditions.scm \
327 rnrs/exceptions.scm \
329 rnrs/hashtables.scm \
331 rnrs/mutable-pairs.scm \
332 rnrs/mutable-strings.scm \
336 rnrs/syntax-case.scm \
338 rnrs/arithmetic/bitwise.scm \
339 rnrs/arithmetic/fixnums.scm \
340 rnrs/arithmetic/flonums.scm \
341 rnrs/bytevectors.scm \
344 rnrs/records/inspection.scm \
345 rnrs/records/procedural.scm \
346 rnrs/records/syntactic.scm \
349 EXTRA_DIST += scripts/ChangeLog-2008
350 EXTRA_DIST += scripts/README
354 oop/goops/active-slot.scm \
355 oop/goops/compile.scm \
356 oop/goops/composite-slot.scm \
357 oop/goops/describe.scm \
358 oop/goops/dispatch.scm \
359 oop/goops/internal.scm \
361 oop/goops/stklos.scm \
363 oop/goops/accessors.scm \
367 system/vm/inspect.scm \
368 system/vm/coverage.scm \
369 system/vm/frame.scm \
370 system/vm/loader.scm \
371 system/vm/program.scm \
372 system/vm/trace.scm \
373 system/vm/traps.scm \
374 system/vm/trap-state.scm \
375 system/vm/debug.scm \
376 system/vm/disassembler.scm \
380 system/repl/debug.scm \
381 system/repl/error-handling.scm \
382 system/repl/common.scm \
383 system/repl/command.scm \
384 system/repl/repl.scm \
385 system/repl/server.scm
389 sxml/apply-templates.scm \
393 sxml/ssax/input-parse.scm \
398 texinfo/docbook.scm \
400 texinfo/indexing.scm \
401 texinfo/string-utils.scm \
402 texinfo/plain-text.scm \
403 texinfo/reflection.scm \
404 texinfo/serialize.scm
412 web/server/http.scm \
415 EXTRA_DIST += oop/ChangeLog-2008
418 language/elisp/boot.el
421 ice-9/match.upstream.scm \
423 ice-9/r6rs-libraries.scm \
424 ice-9/quasisyntax.scm \
425 srfi/srfi-42/ec.scm \
426 srfi/srfi-64/testing.scm \
427 srfi/srfi-67/compare.scm \
428 system/base/lalr.upstream.scm \
429 system/repl/describe.scm \
431 sxml/upstream/SSAX.scm \
432 sxml/upstream/SXML-tree-trans.scm \
433 sxml/upstream/SXPath-old.scm \
434 sxml/upstream/assert.scm \
435 sxml/upstream/input-parse.scm