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