add include-from-path
[bpt/guile.git] / module / Makefile.am
CommitLineData
3bb299b3
LC
1## Process this file with automake to produce Makefile.in.
2##
3## Copyright (C) 2009 Free Software Foundation, Inc.
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
58df2e43
AW
27# Compile psyntax and boot-9 first, so that we get the speed benefit in
28# the rest of the compilation. Also, if there is too much switching back
29# and forth between interpreted and compiled code, we end up using more
30# of the C stack than the interpreter would have; so avoid that by
31# putting these core modules first.
32
3bb299b3 33SOURCES = \
811d10f5 34 ice-9/psyntax-pp.scm \
3bb299b3
LC
35 system/base/pmatch.scm system/base/syntax.scm \
36 system/base/compile.scm system/base/language.scm \
2e4c3227 37 system/base/message.scm \
3bb299b3 38 \
811d10f5 39 language/tree-il.scm \
80af1168 40 language/glil.scm language/assembly.scm \
3bb299b3 41 \
bac02722 42 $(SCHEME_LANG_SOURCES) \
811d10f5 43 $(TREE_IL_LANG_SOURCES) \
80af1168 44 $(GLIL_LANG_SOURCES) \
3bb299b3 45 $(ASSEMBLY_LANG_SOURCES) $(BYTECODE_LANG_SOURCES) \
6d66647d
AW
46 $(OBJCODE_LANG_SOURCES) $(VALUE_LANG_SOURCES) \
47 \
58df2e43
AW
48 $(ICE_9_SOURCES) \
49 $(SRFI_SOURCES) \
1ee2c72e 50 $(RNRS_SOURCES) \
58df2e43 51 $(OOP_SOURCES) \
9c35c579 52 $(SYSTEM_SOURCES) \
80af1168 53 $(SCRIPTS_SOURCES) \
bac02722 54 $(ECMASCRIPT_LANG_SOURCES) \
80af1168 55 $(BRAINFUCK_LANG_SOURCES)
3bb299b3 56
58df2e43
AW
57## test.scm is not currently installed.
58EXTRA_DIST += ice-9/test.scm ice-9/compile-psyntax.scm ice-9/ChangeLog-2008
59
60# We expect this to never be invoked when there is not already
61# ice-9/psyntax-pp.scm in %load-path, since compile-psyntax.scm depends
62# on ice-9/syncase.scm, which does `(load-from-path "ice-9/psyntax-pp.scm")'.
63# In other words, to bootstrap this file, you need to do something like:
64# GUILE_LOAD_PATH=/usr/local/share/guile/1.5.4 make psyntax-pp.scm
65include $(top_srcdir)/am/pre-inst-guile
66ice-9/psyntax-pp.scm: ice-9/psyntax.scm
55dce020 67 $(preinstguile) --no-autocompile -s $(srcdir)/ice-9/compile-psyntax.scm \
58df2e43
AW
68 $(srcdir)/ice-9/psyntax.scm $(srcdir)/ice-9/psyntax-pp.scm
69
3bb299b3 70SCHEME_LANG_SOURCES = \
b81d329e
AW
71 language/scheme/spec.scm \
72 language/scheme/compile-tree-il.scm \
27c8177f 73 language/scheme/decompile-tree-il.scm
3bb299b3 74
9efc833d 75TREE_IL_LANG_SOURCES = \
55ae815b 76 language/tree-il/primitives.scm \
cf10678f 77 language/tree-il/optimize.scm \
dab0f9d5 78 language/tree-il/inline.scm \
c21c89b1 79 language/tree-il/fix-letrec.scm \
cf10678f
AW
80 language/tree-il/analyze.scm \
81 language/tree-il/compile-glil.scm \
82 language/tree-il/spec.scm
811d10f5 83
3bb299b3 84GLIL_LANG_SOURCES = \
860f569a
AW
85 language/glil/spec.scm language/glil/compile-assembly.scm \
86 language/glil/decompile-assembly.scm
3bb299b3
LC
87
88ASSEMBLY_LANG_SOURCES = \
89 language/assembly/spec.scm \
90 language/assembly/compile-bytecode.scm \
91 language/assembly/decompile-bytecode.scm \
92 language/assembly/disassemble.scm
93
94BYTECODE_LANG_SOURCES = \
95 language/bytecode/spec.scm
96
97OBJCODE_LANG_SOURCES = \
98 language/objcode/spec.scm
99
100VALUE_LANG_SOURCES = \
101 language/value/spec.scm
102
103ECMASCRIPT_LANG_SOURCES = \
104 language/ecmascript/parse-lalr.scm \
105 language/ecmascript/tokenize.scm \
106 language/ecmascript/parse.scm \
3bb299b3
LC
107 language/ecmascript/impl.scm \
108 language/ecmascript/base.scm \
109 language/ecmascript/function.scm \
110 language/ecmascript/array.scm \
eb1482ac 111 language/ecmascript/compile-tree-il.scm \
8f9b9683 112 language/ecmascript/spec.scm
3bb299b3 113
6370a6ad 114BRAINFUCK_LANG_SOURCES = \
6370a6ad 115 language/brainfuck/parse.scm \
5c27902e
AW
116 language/brainfuck/compile-scheme.scm \
117 language/brainfuck/compile-tree-il.scm \
118 language/brainfuck/spec.scm
6370a6ad 119
6d66647d
AW
120SCRIPTS_SOURCES = \
121 scripts/PROGRAM.scm \
122 scripts/autofrisk.scm \
123 scripts/compile.scm \
124 scripts/disassemble.scm \
125 scripts/display-commentary.scm \
126 scripts/doc-snarf.scm \
127 scripts/frisk.scm \
128 scripts/generate-autoload.scm \
129 scripts/lint.scm \
130 scripts/punify.scm \
131 scripts/read-scheme-source.scm \
132 scripts/read-text-outline.scm \
133 scripts/use2dot.scm \
134 scripts/snarf-check-and-output-texi.scm \
135 scripts/summarize-guile-TODO.scm \
136 scripts/scan-api.scm \
137 scripts/api-diff.scm \
138 scripts/read-rfc822.scm \
139 scripts/snarf-guile-m4-docs.scm
140
58df2e43
AW
141ICE_9_SOURCES = \
142 ice-9/boot-9.scm \
143 ice-9/r4rs.scm \
144 ice-9/r5rs.scm \
145 ice-9/and-let-star.scm \
146 ice-9/calling.scm \
147 ice-9/common-list.scm \
148 ice-9/debug.scm \
149 ice-9/debugger.scm \
150 ice-9/documentation.scm \
151 ice-9/emacs.scm \
58df2e43
AW
152 ice-9/expect.scm \
153 ice-9/format.scm \
154 ice-9/getopt-long.scm \
155 ice-9/hcons.scm \
156 ice-9/i18n.scm \
157 ice-9/lineio.scm \
158 ice-9/ls.scm \
159 ice-9/mapping.scm \
160 ice-9/match.scm \
161 ice-9/networking.scm \
162 ice-9/null.scm \
163 ice-9/occam-channel.scm \
164 ice-9/optargs.scm \
165 ice-9/poe.scm \
166 ice-9/popen.scm \
167 ice-9/posix.scm \
168 ice-9/q.scm \
169 ice-9/rdelim.scm \
170 ice-9/receive.scm \
171 ice-9/regex.scm \
172 ice-9/runq.scm \
173 ice-9/rw.scm \
174 ice-9/safe-r5rs.scm \
175 ice-9/safe.scm \
176 ice-9/session.scm \
177 ice-9/slib.scm \
178 ice-9/stack-catch.scm \
179 ice-9/streams.scm \
180 ice-9/string-fun.scm \
181 ice-9/syncase.scm \
182 ice-9/threads.scm \
183 ice-9/buffered-input.scm \
184 ice-9/time.scm \
185 ice-9/history.scm \
186 ice-9/channel.scm \
187 ice-9/pretty-print.scm \
188 ice-9/ftw.scm \
189 ice-9/gap-buffer.scm \
190 ice-9/weak-vector.scm \
191 ice-9/deprecated.scm \
192 ice-9/list.scm \
193 ice-9/serialize.scm \
194 ice-9/gds-server.scm
195
196SRFI_SOURCES = \
197 srfi/srfi-1.scm \
198 srfi/srfi-2.scm \
199 srfi/srfi-4.scm \
ac8ed3db 200 srfi/srfi-4/gnu.scm \
58df2e43
AW
201 srfi/srfi-6.scm \
202 srfi/srfi-8.scm \
203 srfi/srfi-9.scm \
204 srfi/srfi-10.scm \
205 srfi/srfi-11.scm \
206 srfi/srfi-13.scm \
207 srfi/srfi-14.scm \
208 srfi/srfi-16.scm \
209 srfi/srfi-17.scm \
f176c584 210 srfi/srfi-18.scm \
58df2e43
AW
211 srfi/srfi-19.scm \
212 srfi/srfi-26.scm \
213 srfi/srfi-31.scm \
214 srfi/srfi-34.scm \
215 srfi/srfi-35.scm \
216 srfi/srfi-37.scm \
217 srfi/srfi-39.scm \
218 srfi/srfi-60.scm \
219 srfi/srfi-69.scm \
822aacbc
AW
220 srfi/srfi-88.scm \
221 srfi/srfi-98.scm
58df2e43 222
1ee2c72e
LC
223RNRS_SOURCES = \
224 rnrs/bytevector.scm \
225 rnrs/io/ports.scm
226
6d66647d
AW
227EXTRA_DIST += scripts/ChangeLog-2008
228EXTRA_DIST += scripts/README
229
58df2e43
AW
230OOP_SOURCES = \
231 oop/goops.scm \
232 oop/goops/active-slot.scm \
233 oop/goops/compile.scm \
234 oop/goops/composite-slot.scm \
235 oop/goops/describe.scm \
236 oop/goops/dispatch.scm \
237 oop/goops/internal.scm \
238 oop/goops/save.scm \
239 oop/goops/stklos.scm \
240 oop/goops/util.scm \
241 oop/goops/accessors.scm \
242 oop/goops/simple.scm
243
9c35c579
AW
244SYSTEM_SOURCES = \
245 system/vm/debug.scm system/vm/frame.scm system/vm/instruction.scm \
246 system/vm/objcode.scm system/vm/profile.scm system/vm/program.scm \
247 system/vm/trace.scm system/vm/vm.scm \
248 \
249 system/xref.scm \
250 \
251 system/repl/repl.scm system/repl/common.scm \
252 system/repl/command.scm
253
58df2e43
AW
254EXTRA_DIST += oop/ChangeLog-2008
255
3bb299b3 256NOCOMP_SOURCES = \
58df2e43
AW
257 ice-9/gds-client.scm \
258 ice-9/psyntax.scm \
259 system/repl/describe.scm \
260 ice-9/debugger/command-loop.scm \
261 ice-9/debugger/commands.scm \
262 ice-9/debugger/state.scm \
263 ice-9/debugger/trc.scm \
264 ice-9/debugger/utils.scm \
265 ice-9/debugging/example-fns.scm \
58df2e43
AW
266 ice-9/debugging/steps.scm \
267 ice-9/debugging/trace.scm \
268 ice-9/debugging/traps.scm \
f176c584 269 ice-9/debugging/trc.scm