1 ## Process this file with automake to produce Makefile.in.
3 ## Copyright (C) 2009, 2010, 2011, 2012, 2013 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.
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
35 VM_TARGETS := system/vm/assembler.go system/vm/disassembler.go
36 $(VM_TARGETS): $(top_builddir)/libguile/vm-operations.h
38 ice-9/boot-9.go: ice-9/boot-9.scm ice-9/quasisyntax.scm ice-9/r6rs-libraries.scm
39 ice-9/match.go: ice-9/match.scm ice-9/match.upstream.scm
41 # We can compile these in any order, but it's fastest if we compile
42 # psyntax and boot-9 first, then the compiler itself, then the rest of
45 ice-9/psyntax-pp.scm \
49 language/tree-il/peval.scm \
50 language/tree-il/cse.scm \
52 language/tree-il.scm \
54 language/assembly.scm \
55 $(TREE_IL_LANG_SOURCES) \
58 $(GLIL_LANG_SOURCES) \
59 $(ASSEMBLY_LANG_SOURCES) \
60 $(BYTECODE_LANG_SOURCES) \
61 $(OBJCODE_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/compile-glil.scm \
118 language/tree-il/debug.scm \
119 language/tree-il/spec.scm
123 language/cps/arities.scm \
124 language/cps/closure-conversion.scm \
125 language/cps/primitives.scm \
126 language/cps/reify-primitives.scm \
127 language/cps/spec.scm \
128 language/cps/verify.scm
132 language/rtl/spec.scm
134 GLIL_LANG_SOURCES = \
135 language/glil/spec.scm language/glil/compile-assembly.scm
137 ASSEMBLY_LANG_SOURCES = \
138 language/assembly/spec.scm \
139 language/assembly/compile-bytecode.scm \
140 language/assembly/decompile-bytecode.scm \
141 language/assembly/disassemble.scm
143 BYTECODE_LANG_SOURCES = \
144 language/bytecode/spec.scm
146 OBJCODE_LANG_SOURCES = \
147 language/objcode/spec.scm \
148 language/objcode/elf.scm
150 VALUE_LANG_SOURCES = \
151 language/value/spec.scm
153 ECMASCRIPT_LANG_SOURCES = \
154 language/ecmascript/tokenize.scm \
155 language/ecmascript/parse.scm \
156 language/ecmascript/impl.scm \
157 language/ecmascript/base.scm \
158 language/ecmascript/function.scm \
159 language/ecmascript/array.scm \
160 language/ecmascript/compile-tree-il.scm \
161 language/ecmascript/spec.scm
163 ELISP_LANG_SOURCES = \
164 language/elisp/falias.scm \
165 language/elisp/lexer.scm \
166 language/elisp/parser.scm \
167 language/elisp/bindings.scm \
168 language/elisp/compile-tree-il.scm \
169 language/elisp/runtime.scm \
170 language/elisp/runtime/function-slot.scm \
171 language/elisp/runtime/value-slot.scm \
172 language/elisp/spec.scm
174 BRAINFUCK_LANG_SOURCES = \
175 language/brainfuck/parse.scm \
176 language/brainfuck/compile-scheme.scm \
177 language/brainfuck/compile-tree-il.scm \
178 language/brainfuck/spec.scm
181 scripts/compile.scm \
182 scripts/disassemble.scm \
183 scripts/display-commentary.scm \
184 scripts/doc-snarf.scm \
186 scripts/generate-autoload.scm \
191 scripts/read-scheme-source.scm \
192 scripts/read-text-outline.scm \
193 scripts/use2dot.scm \
194 scripts/snarf-check-and-output-texi.scm \
195 scripts/summarize-guile-TODO.scm \
196 scripts/api-diff.scm \
197 scripts/read-rfc822.scm \
198 scripts/snarf-guile-m4-docs.scm
200 SYSTEM_BASE_SOURCES = \
201 system/base/pmatch.scm \
202 system/base/syntax.scm \
203 system/base/compile.scm \
204 system/base/language.scm \
205 system/base/lalr.scm \
206 system/base/message.scm \
207 system/base/target.scm \
212 ice-9/deprecated.scm \
213 ice-9/and-let-star.scm \
214 ice-9/binary-ports.scm \
216 ice-9/command-line.scm \
217 ice-9/common-list.scm \
219 ice-9/curried-definitions.scm \
221 ice-9/documentation.scm \
222 ice-9/eval-string.scm \
226 ice-9/getopt-long.scm \
234 ice-9/networking.scm \
236 ice-9/occam-channel.scm \
238 ice-9/peg/simplify-tree.scm \
239 ice-9/peg/codegen.scm \
240 ice-9/peg/cache.scm \
241 ice-9/peg/using-parsers.scm \
242 ice-9/peg/string-peg.scm \
253 ice-9/safe-r5rs.scm \
255 ice-9/save-stack.scm \
256 ice-9/scm-style-repl.scm \
259 ice-9/stack-catch.scm \
261 ice-9/string-fun.scm \
265 ice-9/buffered-input.scm \
269 ice-9/pretty-print.scm \
271 ice-9/gap-buffer.scm \
272 ice-9/weak-vector.scm \
274 ice-9/serialize.scm \
279 # This functionality is missing on systems without `fork'---i.e., Windows.
280 ICE_9_SOURCES += ice-9/popen.scm
282 # These modules rely on (ice-9 popen).
284 scripts/autofrisk.scm \
287 endif BUILD_ICE_9_POPEN
292 srfi/srfi-4/gnu.scm \
296 srfi/srfi-9/gnu.scm \
324 rnrs/conditions.scm \
328 rnrs/exceptions.scm \
330 rnrs/hashtables.scm \
332 rnrs/mutable-pairs.scm \
333 rnrs/mutable-strings.scm \
337 rnrs/syntax-case.scm \
339 rnrs/arithmetic/bitwise.scm \
340 rnrs/arithmetic/fixnums.scm \
341 rnrs/arithmetic/flonums.scm \
342 rnrs/bytevectors.scm \
345 rnrs/records/inspection.scm \
346 rnrs/records/procedural.scm \
347 rnrs/records/syntactic.scm \
350 EXTRA_DIST += scripts/ChangeLog-2008
351 EXTRA_DIST += scripts/README
355 oop/goops/active-slot.scm \
356 oop/goops/compile.scm \
357 oop/goops/composite-slot.scm \
358 oop/goops/describe.scm \
359 oop/goops/dispatch.scm \
360 oop/goops/internal.scm \
362 oop/goops/stklos.scm \
364 oop/goops/accessors.scm \
368 system/vm/inspect.scm \
369 system/vm/coverage.scm \
371 system/vm/linker.scm \
372 system/vm/frame.scm \
373 system/vm/instruction.scm \
374 system/vm/objcode.scm \
375 system/vm/program.scm \
376 system/vm/trace.scm \
377 system/vm/traps.scm \
378 system/vm/trap-state.scm \
379 system/vm/assembler.scm \
380 system/vm/debug.scm \
381 system/vm/disassembler.scm \
385 system/repl/debug.scm \
386 system/repl/error-handling.scm \
387 system/repl/common.scm \
388 system/repl/command.scm \
389 system/repl/repl.scm \
390 system/repl/server.scm
394 sxml/apply-templates.scm \
398 sxml/ssax/input-parse.scm \
403 texinfo/docbook.scm \
405 texinfo/indexing.scm \
406 texinfo/string-utils.scm \
407 texinfo/plain-text.scm \
408 texinfo/reflection.scm \
409 texinfo/serialize.scm
417 web/server/http.scm \
420 EXTRA_DIST += oop/ChangeLog-2008
423 language/elisp/boot.el
426 ice-9/match.upstream.scm \
428 ice-9/r6rs-libraries.scm \
429 ice-9/quasisyntax.scm \
430 srfi/srfi-42/ec.scm \
431 srfi/srfi-67/compare.scm \
432 system/base/lalr.upstream.scm \
433 system/repl/describe.scm \
435 sxml/upstream/SSAX.scm \
436 sxml/upstream/SXML-tree-trans.scm \
437 sxml/upstream/SXPath-old.scm \
438 sxml/upstream/assert.scm \
439 sxml/upstream/input-parse.scm