Fix typo in NEWS.
[bpt/guile.git] / module / Makefile.am
CommitLineData
3bb299b3
LC
1## Process this file with automake to produce Makefile.in.
2##
34e89877
MW
3## Copyright (C) 2009, 2010, 2011, 2012, 2013,
4## 2014 Free Software Foundation, Inc.
3bb299b3
LC
5##
6## This file is part of GUILE.
7##
53befeb7
NJ
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
3bb299b3
LC
11## (at your option) any later version.
12##
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
53befeb7 16## GNU Lesser General Public License for more details.
3bb299b3 17##
53befeb7
NJ
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
3bb299b3 22
6d66647d
AW
23include $(top_srcdir)/am/guilec
24
3bb299b3
LC
25# We're at the root of the module hierarchy.
26modpath =
27
c439c756
AW
28# Build eval.go first.
29$(GOBJECTS): ice-9/eval.go
30CLEANFILES += ice-9/eval.go
5161a3c0
AW
31nobase_mod_DATA += ice-9/eval.scm
32nobase_ccache_DATA += ice-9/eval.go
33EXTRA_DIST += ice-9/eval.scm
4fb23c17 34ETAGS_ARGS += ice-9/eval.scm
5161a3c0 35
8210c853 36ice-9/boot-9.go: ice-9/boot-9.scm ice-9/quasisyntax.scm ice-9/r6rs-libraries.scm
8d5d0425 37ice-9/match.go: ice-9/match.scm ice-9/match.upstream.scm
8210c853 38
5f161164
AW
39# We can compile these in any order, but it's fastest if we compile
40# psyntax and boot-9 first, then the compiler itself, then the rest of
41# the code.
42SOURCES = \
43 ice-9/psyntax-pp.scm \
44 ice-9/boot-9.scm \
6ccc6678
AW
45 ice-9/vlist.scm \
46 srfi/srfi-1.scm \
47 language/tree-il/peval.scm \
48 language/tree-il/cse.scm \
5f161164
AW
49 \
50 language/tree-il.scm \
51 language/glil.scm \
52 language/assembly.scm \
53 $(TREE_IL_LANG_SOURCES) \
54 $(GLIL_LANG_SOURCES) \
55 $(ASSEMBLY_LANG_SOURCES) \
56 $(BYTECODE_LANG_SOURCES) \
57 $(OBJCODE_LANG_SOURCES) \
58 $(VALUE_LANG_SOURCES) \
59 $(SCHEME_LANG_SOURCES) \
60 $(SYSTEM_BASE_SOURCES) \
61 \
62 $(ICE_9_SOURCES) \
63 $(SRFI_SOURCES) \
64 $(RNRS_SOURCES) \
65 $(OOP_SOURCES) \
66 $(SYSTEM_SOURCES) \
67 $(SCRIPTS_SOURCES) \
68 $(ECMASCRIPT_LANG_SOURCES) \
e4257331 69 $(ELISP_LANG_SOURCES) \
47f3ce52 70 $(BRAINFUCK_LANG_SOURCES) \
73124c6c
AW
71 $(LIB_SOURCES) \
72 $(WEB_SOURCES)
3bb299b3 73
58df2e43 74## test.scm is not currently installed.
cb65f76c
AR
75EXTRA_DIST += \
76 ice-9/test.scm \
77 ice-9/compile-psyntax.scm \
cb65f76c 78 ice-9/ChangeLog-2008
4fb23c17
NJ
79ETAGS_ARGS += \
80 ice-9/test.scm \
81 ice-9/compile-psyntax.scm \
82 ice-9/ChangeLog-2008
58df2e43 83
dbb39d9c 84ice-9/psyntax-pp.scm.gen:
83dce818
AW
85 GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
86 $(top_builddir_absolute)/meta/guile -s $(srcdir)/ice-9/compile-psyntax.scm \
58df2e43 87 $(srcdir)/ice-9/psyntax.scm $(srcdir)/ice-9/psyntax-pp.scm
90812095 88
736aff00
LC
89.PHONY: ice-9/psyntax-pp.scm.gen
90
f7012874 91# Keep this rule in sync with that in `am/guilec'.
c439c756 92ice-9/psyntax-pp.go: ice-9/psyntax.scm ice-9/psyntax-pp.scm
83dce818 93 $(AM_V_GUILEC)GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
a0a8dd62
LC
94 $(top_builddir)/meta/uninstalled-env \
95 guild compile --target="$(host)" $(GUILE_WARNINGS) \
f7012874
LC
96 -L "$(abs_srcdir)" -L "$(abs_builddir)" \
97 -L "$(abs_top_srcdir)/guile-readline" \
a0a8dd62 98 -o "ice-9/psyntax-pp.go" "$(srcdir)/ice-9/psyntax.scm"
58df2e43 99
3bb299b3 100SCHEME_LANG_SOURCES = \
b81d329e
AW
101 language/scheme/spec.scm \
102 language/scheme/compile-tree-il.scm \
27c8177f 103 language/scheme/decompile-tree-il.scm
3bb299b3 104
9efc833d 105TREE_IL_LANG_SOURCES = \
55ae815b 106 language/tree-il/primitives.scm \
da9b2b71 107 language/tree-il/effects.scm \
c21c89b1 108 language/tree-il/fix-letrec.scm \
b275fb26
AW
109 language/tree-il/optimize.scm \
110 language/tree-il/canonicalize.scm \
cf10678f 111 language/tree-il/analyze.scm \
b275fb26 112 language/tree-il/inline.scm \
cf10678f 113 language/tree-il/compile-glil.scm \
6d2d6897 114 language/tree-il/debug.scm \
cf10678f 115 language/tree-il/spec.scm
811d10f5 116
3bb299b3 117GLIL_LANG_SOURCES = \
c085589b 118 language/glil/spec.scm language/glil/compile-assembly.scm
3bb299b3
LC
119
120ASSEMBLY_LANG_SOURCES = \
121 language/assembly/spec.scm \
122 language/assembly/compile-bytecode.scm \
123 language/assembly/decompile-bytecode.scm \
124 language/assembly/disassemble.scm
125
126BYTECODE_LANG_SOURCES = \
127 language/bytecode/spec.scm
128
129OBJCODE_LANG_SOURCES = \
130 language/objcode/spec.scm
131
132VALUE_LANG_SOURCES = \
133 language/value/spec.scm
134
135ECMASCRIPT_LANG_SOURCES = \
3bb299b3
LC
136 language/ecmascript/tokenize.scm \
137 language/ecmascript/parse.scm \
3bb299b3
LC
138 language/ecmascript/impl.scm \
139 language/ecmascript/base.scm \
140 language/ecmascript/function.scm \
141 language/ecmascript/array.scm \
eb1482ac 142 language/ecmascript/compile-tree-il.scm \
8f9b9683 143 language/ecmascript/spec.scm
3bb299b3 144
e4257331
AW
145ELISP_LANG_SOURCES = \
146 language/elisp/lexer.scm \
147 language/elisp/parser.scm \
148 language/elisp/bindings.scm \
149 language/elisp/compile-tree-il.scm \
150 language/elisp/runtime.scm \
151 language/elisp/runtime/function-slot.scm \
e4257331 152 language/elisp/runtime/value-slot.scm \
8295b7c4
BT
153 language/elisp/runtime/macros.scm \
154 language/elisp/runtime/subrs.scm \
e4257331
AW
155 language/elisp/spec.scm
156
6370a6ad 157BRAINFUCK_LANG_SOURCES = \
6370a6ad 158 language/brainfuck/parse.scm \
5c27902e
AW
159 language/brainfuck/compile-scheme.scm \
160 language/brainfuck/compile-tree-il.scm \
161 language/brainfuck/spec.scm
6370a6ad 162
6d66647d 163SCRIPTS_SOURCES = \
6d66647d
AW
164 scripts/compile.scm \
165 scripts/disassemble.scm \
166 scripts/display-commentary.scm \
167 scripts/doc-snarf.scm \
168 scripts/frisk.scm \
169 scripts/generate-autoload.scm \
f4a76a31 170 scripts/help.scm \
6d66647d 171 scripts/lint.scm \
9228f9eb 172 scripts/list.scm \
6d66647d
AW
173 scripts/punify.scm \
174 scripts/read-scheme-source.scm \
175 scripts/read-text-outline.scm \
176 scripts/use2dot.scm \
177 scripts/snarf-check-and-output-texi.scm \
178 scripts/summarize-guile-TODO.scm \
6d66647d
AW
179 scripts/api-diff.scm \
180 scripts/read-rfc822.scm \
181 scripts/snarf-guile-m4-docs.scm
182
1b101522 183SYSTEM_BASE_SOURCES = \
5f161164
AW
184 system/base/pmatch.scm \
185 system/base/syntax.scm \
186 system/base/compile.scm \
187 system/base/language.scm \
1b101522 188 system/base/lalr.scm \
42090217 189 system/base/message.scm \
46954839 190 system/base/target.scm \
5f4b817d 191 system/base/types.scm \
46954839 192 system/base/ck.scm
5f161164 193
58df2e43 194ICE_9_SOURCES = \
58df2e43
AW
195 ice-9/r4rs.scm \
196 ice-9/r5rs.scm \
2a8a127b 197 ice-9/deprecated.scm \
58df2e43 198 ice-9/and-let-star.scm \
dd0d987f 199 ice-9/binary-ports.scm \
58df2e43 200 ice-9/calling.scm \
da5d81a1 201 ice-9/command-line.scm \
58df2e43 202 ice-9/common-list.scm \
9b2a2a39 203 ice-9/control.scm \
9225df3c 204 ice-9/curried-definitions.scm \
58df2e43 205 ice-9/debug.scm \
58df2e43 206 ice-9/documentation.scm \
d59dd06e 207 ice-9/eval-string.scm \
58df2e43
AW
208 ice-9/expect.scm \
209 ice-9/format.scm \
0d4e6ca3 210 ice-9/futures.scm \
58df2e43 211 ice-9/getopt-long.scm \
5063f0a9 212 ice-9/hash-table.scm \
58df2e43
AW
213 ice-9/hcons.scm \
214 ice-9/i18n.scm \
f05bb849 215 ice-9/iconv.scm \
58df2e43
AW
216 ice-9/lineio.scm \
217 ice-9/ls.scm \
218 ice-9/mapping.scm \
219 ice-9/match.scm \
220 ice-9/networking.scm \
221 ice-9/null.scm \
222 ice-9/occam-channel.scm \
223 ice-9/optargs.scm \
224 ice-9/poe.scm \
6f81b18a 225 ice-9/poll.scm \
58df2e43
AW
226 ice-9/posix.scm \
227 ice-9/q.scm \
228 ice-9/rdelim.scm \
229 ice-9/receive.scm \
230 ice-9/regex.scm \
231 ice-9/runq.scm \
232 ice-9/rw.scm \
233 ice-9/safe-r5rs.scm \
234 ice-9/safe.scm \
d8158b83 235 ice-9/save-stack.scm \
b2e27da3 236 ice-9/scm-style-repl.scm \
58df2e43
AW
237 ice-9/session.scm \
238 ice-9/slib.scm \
239 ice-9/stack-catch.scm \
240 ice-9/streams.scm \
241 ice-9/string-fun.scm \
242 ice-9/syncase.scm \
243 ice-9/threads.scm \
ff87b2bd 244 ice-9/top-repl.scm \
58df2e43
AW
245 ice-9/buffered-input.scm \
246 ice-9/time.scm \
247 ice-9/history.scm \
248 ice-9/channel.scm \
249 ice-9/pretty-print.scm \
250 ice-9/ftw.scm \
251 ice-9/gap-buffer.scm \
252 ice-9/weak-vector.scm \
58df2e43
AW
253 ice-9/list.scm \
254 ice-9/serialize.scm \
d062a8c1 255 ice-9/local-eval.scm
58df2e43 256
df3d365a 257if BUILD_ICE_9_POPEN
712ca51f
LC
258
259# This functionality is missing on systems without `fork'---i.e., Windows.
260ICE_9_SOURCES += ice-9/popen.scm
261
df3d365a
LC
262# These modules rely on (ice-9 popen).
263SCRIPTS_SOURCES += \
264 scripts/autofrisk.scm \
265 scripts/scan-api.scm
266
267endif BUILD_ICE_9_POPEN
712ca51f 268
34e89877
MW
269srfi/srfi-64.go: srfi/srfi-64.scm srfi/srfi-64/testing.scm
270
58df2e43 271SRFI_SOURCES = \
58df2e43
AW
272 srfi/srfi-2.scm \
273 srfi/srfi-4.scm \
ac8ed3db 274 srfi/srfi-4/gnu.scm \
58df2e43
AW
275 srfi/srfi-6.scm \
276 srfi/srfi-8.scm \
277 srfi/srfi-9.scm \
3d82d9a6 278 srfi/srfi-9/gnu.scm \
58df2e43
AW
279 srfi/srfi-10.scm \
280 srfi/srfi-11.scm \
281 srfi/srfi-13.scm \
282 srfi/srfi-14.scm \
283 srfi/srfi-16.scm \
284 srfi/srfi-17.scm \
f176c584 285 srfi/srfi-18.scm \
58df2e43
AW
286 srfi/srfi-19.scm \
287 srfi/srfi-26.scm \
56ec46a7 288 srfi/srfi-27.scm \
58df2e43
AW
289 srfi/srfi-31.scm \
290 srfi/srfi-34.scm \
291 srfi/srfi-35.scm \
292 srfi/srfi-37.scm \
12708eeb 293 srfi/srfi-38.scm \
50d08cd8 294 srfi/srfi-41.scm \
fdc8fd46 295 srfi/srfi-42.scm \
9060dc29 296 srfi/srfi-43.scm \
58df2e43 297 srfi/srfi-39.scm \
f16a2007 298 srfi/srfi-45.scm \
58df2e43 299 srfi/srfi-60.scm \
34e89877 300 srfi/srfi-64.scm \
8175a07e 301 srfi/srfi-67.scm \
58df2e43 302 srfi/srfi-69.scm \
822aacbc 303 srfi/srfi-88.scm \
3e2e4965
MW
304 srfi/srfi-98.scm \
305 srfi/srfi-111.scm
58df2e43 306
1ee2c72e 307RNRS_SOURCES = \
e44d2e4d
AW
308 rnrs/base.scm \
309 rnrs/conditions.scm \
310 rnrs/control.scm \
311 rnrs/enums.scm \
312 rnrs/eval.scm \
313 rnrs/exceptions.scm \
314 rnrs/files.scm \
315 rnrs/hashtables.scm \
316 rnrs/lists.scm \
317 rnrs/mutable-pairs.scm \
318 rnrs/mutable-strings.scm \
319 rnrs/programs.scm \
320 rnrs/r5rs.scm \
321 rnrs/sorting.scm \
322 rnrs/syntax-case.scm \
323 rnrs/unicode.scm \
324 rnrs/arithmetic/bitwise.scm \
325 rnrs/arithmetic/fixnums.scm \
326 rnrs/arithmetic/flonums.scm \
4c06cb2c 327 rnrs/bytevectors.scm \
e44d2e4d 328 rnrs/io/simple.scm \
60b240e9 329 rnrs/io/ports.scm \
e44d2e4d
AW
330 rnrs/records/inspection.scm \
331 rnrs/records/procedural.scm \
9d798af7
LC
332 rnrs/records/syntactic.scm \
333 rnrs.scm
1ee2c72e 334
6d66647d
AW
335EXTRA_DIST += scripts/ChangeLog-2008
336EXTRA_DIST += scripts/README
337
58df2e43
AW
338OOP_SOURCES = \
339 oop/goops.scm \
340 oop/goops/active-slot.scm \
341 oop/goops/compile.scm \
342 oop/goops/composite-slot.scm \
343 oop/goops/describe.scm \
344 oop/goops/dispatch.scm \
345 oop/goops/internal.scm \
346 oop/goops/save.scm \
347 oop/goops/stklos.scm \
348 oop/goops/util.scm \
349 oop/goops/accessors.scm \
350 oop/goops/simple.scm
351
3b12702f
AW
352SYSTEM_SOURCES = \
353 system/vm/inspect.scm \
36b5e394 354 system/vm/coverage.scm \
3b12702f
AW
355 system/vm/frame.scm \
356 system/vm/instruction.scm \
357 system/vm/objcode.scm \
3b12702f
AW
358 system/vm/program.scm \
359 system/vm/trace.scm \
c939b127 360 system/vm/traps.scm \
b9badc35 361 system/vm/trap-state.scm \
3b12702f 362 system/vm/vm.scm \
ab4779ff 363 system/foreign.scm \
3b12702f 364 system/xref.scm \
33df2ec7
AW
365 system/repl/debug.scm \
366 system/repl/error-handling.scm \
3b12702f 367 system/repl/common.scm \
33df2ec7 368 system/repl/command.scm \
d30542c2 369 system/repl/repl.scm \
b0a31499
DT
370 system/repl/server.scm \
371 system/repl/coop-server.scm
9c35c579 372
47f3ce52
AW
373LIB_SOURCES = \
374 statprof.scm \
375 sxml/apply-templates.scm \
376 sxml/fold.scm \
400a5dcb 377 sxml/match.scm \
47f3ce52
AW
378 sxml/simple.scm \
379 sxml/ssax/input-parse.scm \
380 sxml/ssax.scm \
381 sxml/transform.scm \
382 sxml/xpath.scm \
383 texinfo.scm \
384 texinfo/docbook.scm \
385 texinfo/html.scm \
386 texinfo/indexing.scm \
387 texinfo/string-utils.scm \
388 texinfo/plain-text.scm \
389 texinfo/reflection.scm \
390 texinfo/serialize.scm
391
73124c6c 392WEB_SOURCES = \
680c8c5a 393 web/client.scm \
440840c1 394 web/http.scm \
ad05d4e8 395 web/request.scm \
a9eeb2f4 396 web/response.scm \
79ef79ee
AW
397 web/server.scm \
398 web/server/http.scm \
73124c6c
AW
399 web/uri.scm
400
58df2e43
AW
401EXTRA_DIST += oop/ChangeLog-2008
402
3bb299b3 403NOCOMP_SOURCES = \
d967913f 404 ice-9/match.upstream.scm \
47f3ce52 405 ice-9/psyntax.scm \
b1e4c7cc 406 ice-9/r6rs-libraries.scm \
47f3ce52 407 ice-9/quasisyntax.scm \
fdc8fd46 408 srfi/srfi-42/ec.scm \
34e89877 409 srfi/srfi-64/testing.scm \
8175a07e 410 srfi/srfi-67/compare.scm \
1b101522 411 system/base/lalr.upstream.scm \
47f3ce52 412 system/repl/describe.scm \
400a5dcb 413 sxml/sxml-match.ss \
47f3ce52
AW
414 sxml/upstream/SSAX.scm \
415 sxml/upstream/SXML-tree-trans.scm \
416 sxml/upstream/SXPath-old.scm \
417 sxml/upstream/assert.scm \
418 sxml/upstream/input-parse.scm