Commit | Line | Data |
---|---|---|
733943b9 | 1 | ## Process this file with Automake to create Makefile.in |
2764bd99 | 2 | ## |
6e9ec86d | 3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. |
2764bd99 JB |
4 | ## |
5 | ## This file is part of GUILE. | |
54f16aec | 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 | |
2764bd99 | 10 | ## (at your option) any later version. |
54f16aec | 11 | ## |
2764bd99 JB |
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. |
54f16aec | 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 | |
733943b9 | 21 | |
a572fc95 NI |
22 | include $(top_srcdir)/am/snarf |
23 | ||
3307df95 | 24 | AUTOMAKE_OPTIONS = gnu |
733943b9 | 25 | |
a0599745 | 26 | ## Prevent automake from adding extra -I options |
8f99e3f3 | 27 | DEFS = @DEFS@ |
535b3592 LC |
28 | |
29 | # Override Automake's `DEFAULT_INCLUDES'. By default, it contains | |
30 | # "-I$(srcdir)", which causes problems on Tru64 where our "random.h" | |
31 | # is picked up by <stdlib.h> instead of the libc's <random.h>. | |
32 | DEFAULT_INCLUDES = | |
33 | ||
733943b9 TT |
34 | ## Check for headers in $(srcdir)/.., so that #include |
35 | ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're | |
6caac03c | 36 | ## building. Also look for Gnulib headers in `lib'. |
442f3f20 | 37 | AM_CPPFLAGS = -DBUILDING_LIBGUILE=1 -I$(top_srcdir) -I$(top_builddir) \ |
d8b04f04 | 38 | -I$(top_srcdir)/lib -I$(top_builddir)/lib $(LIBFFI_CFLAGS) |
6caac03c | 39 | |
d8b04f04 | 40 | AM_CFLAGS = $(GCC_CFLAGS) $(CFLAG_VISIBILITY) |
6caac03c LC |
41 | |
42 | ## The Gnulib Libtool archive. | |
43 | gnulib_library = $(top_builddir)/lib/libgnu.la | |
733943b9 | 44 | |
4079f87e | 45 | ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \ |
abc049a9 | 46 | --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/' |
fef07353 | 47 | |
44602b08 | 48 | lib_LTLIBRARIES = libguile-@GUILE_EFFECTIVE_VERSION@.la |
f94b6524 | 49 | bin_PROGRAMS = guile |
b32fca0f | 50 | |
64c2db80 RB |
51 | noinst_PROGRAMS = guile_filter_doc_snarfage gen-scmconfig |
52 | ||
53 | gen_scmconfig_SOURCES = gen-scmconfig.c | |
54 | ||
a04e5749 AW |
55 | ## Override default rule; this should be compiled for BUILD host. Note |
56 | ## that we don't add $(AM_CPPFLAGS) here, as we need to run this | |
57 | ## program, but $(top_srcdir)/lib has a gnulib configured for the | |
58 | ## target. Instead we manually add $(top_builddir), in order to pick up | |
59 | ## the generated config.h and gen-scmconfig.h. Nothing else from Guile | |
60 | ## is included by this code generator. | |
64c2db80 | 61 | gen-scmconfig.$(OBJEXT): gen-scmconfig.c |
ad378da9 AW |
62 | $(AM_V_GEN) \ |
63 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
a04e5749 | 64 | $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) -I$(top_builddir) \ |
b3da54d1 | 65 | -c -o $@ $<; \ |
ad378da9 AW |
66 | else \ |
67 | $(COMPILE) -c -o $@ $<; \ | |
64c2db80 RB |
68 | fi |
69 | ||
2e945bcc | 70 | ## Override default rule; this should run on BUILD host. |
6a6df187 | 71 | gen-scmconfig$(EXEEXT): $(gen_scmconfig_OBJECTS) $(gen_scmconfig_DEPENDENCIES) |
a572fc95 NI |
72 | $(AM_V_GEN) \ |
73 | rm -f gen-scmconfig$(EXEEXT); \ | |
2e945bcc SJ |
74 | if [ "$(cross_compiling)" = "yes" ]; then \ |
75 | $(CCLD_FOR_BUILD) -o $@ $(gen_scmconfig_OBJECTS); \ | |
76 | else \ | |
77 | $(LINK) $(gen_scmconfig_OBJECTS) $(LDADD) $(LIBS); \ | |
78 | fi | |
79 | ||
80 | scmconfig.h: ${top_builddir}/config.h gen-scmconfig$(EXEEXT) | |
a572fc95 NI |
81 | $(AM_V_GEN)(rm -f scmconfig.h.tmp; \ |
82 | cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp; \ | |
83 | ./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp; \ | |
84 | chmod 444 scmconfig.h.tmp; \ | |
85 | rm -f scmconfig.h; \ | |
86 | mv scmconfig.h.tmp scmconfig.h) | |
87 | ||
64c2db80 | 88 | |
b32fca0f MV |
89 | guile_filter_doc_snarfage_SOURCES = c-tokenize.c |
90 | ||
91 | ## Override default rule; this should be compiled for BUILD host. | |
92 | ## For some reason, OBJEXT does not include the dot | |
93 | c-tokenize.$(OBJEXT): c-tokenize.c | |
a572fc95 | 94 | $(AM_V_GEN) \ |
b32fca0f | 95 | if [ "$(cross_compiling)" = "yes" ]; then \ |
bb5b36d0 | 96 | $(CC_FOR_BUILD) -c -o $@ $<; \ |
b32fca0f | 97 | else \ |
4ea57d5b | 98 | $(COMPILE) -c -o $@ $<; \ |
b32fca0f MV |
99 | fi |
100 | ||
101 | ## Override default rule; this should run on BUILD host. | |
6a6df187 | 102 | guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile_filter_doc_snarfage_DEPENDENCIES) |
a572fc95 NI |
103 | $(AM_V_GEN) \ |
104 | rm -f guile_filter_doc_snarfage$(EXEEXT); \ | |
b32fca0f MV |
105 | if [ "$(cross_compiling)" = "yes" ]; then \ |
106 | $(CCLD_FOR_BUILD) -o $@ $(guile_filter_doc_snarfage_OBJECTS); \ | |
107 | else \ | |
3d458a81 | 108 | $(LINK) $(guile_filter_doc_snarfage_OBJECTS) $(LDADD) $(gnulib_library) $(LIBS); \ |
b32fca0f MV |
109 | fi |
110 | ||
549436de JB |
111 | |
112 | guile_SOURCES = guile.c | |
bfb2e113 | 113 | guile_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS) |
44602b08 | 114 | guile_LDADD = libguile-@GUILE_EFFECTIVE_VERSION@.la |
de7d32d0 | 115 | guile_LDFLAGS = $(GUILE_CFLAGS) |
5bbc5359 | 116 | |
44602b08 | 117 | libguile_@GUILE_EFFECTIVE_VERSION@_la_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS) |
ee2a8b9b | 118 | |
44602b08 | 119 | libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = \ |
a4a0d399 AW |
120 | alist.c \ |
121 | arbiters.c \ | |
c53c0893 | 122 | array-handle.c \ |
5d1b3b2d | 123 | array-map.c \ |
2fa901a5 | 124 | arrays.c \ |
a4a0d399 AW |
125 | async.c \ |
126 | backtrace.c \ | |
127 | boolean.c \ | |
cf396142 | 128 | bitvectors.c \ |
a4a0d399 AW |
129 | bytevectors.c \ |
130 | chars.c \ | |
b9c100d0 | 131 | control.c \ |
a4a0d399 AW |
132 | continuations.c \ |
133 | debug.c \ | |
134 | deprecated.c \ | |
135 | deprecation.c \ | |
9ede013f | 136 | dynstack.c \ |
a4a0d399 AW |
137 | dynwind.c \ |
138 | eq.c \ | |
139 | error.c \ | |
140 | eval.c \ | |
141 | evalext.c \ | |
dc3e203e | 142 | expand.c \ |
a4a0d399 AW |
143 | extensions.c \ |
144 | feature.c \ | |
073167ef | 145 | filesys.c \ |
6e9ec86d | 146 | finalizers.c \ |
a4a0d399 | 147 | fluids.c \ |
e2c2a699 | 148 | foreign.c \ |
a4a0d399 AW |
149 | fports.c \ |
150 | frames.c \ | |
a4a0d399 | 151 | gc-malloc.c \ |
a4a0d399 | 152 | gc.c \ |
a4a0d399 AW |
153 | gdbint.c \ |
154 | gettext.c \ | |
1030b450 | 155 | generalized-arrays.c \ |
f332e957 | 156 | generalized-vectors.c \ |
a4a0d399 AW |
157 | goops.c \ |
158 | gsubr.c \ | |
159 | guardians.c \ | |
160 | hash.c \ | |
161 | hashtab.c \ | |
162 | hooks.c \ | |
756e8a3a | 163 | i18n.c \ |
a4a0d399 AW |
164 | init.c \ |
165 | inline.c \ | |
166 | instructions.c \ | |
167 | ioext.c \ | |
168 | keywords.c \ | |
a4a0d399 AW |
169 | list.c \ |
170 | load.c \ | |
171 | macros.c \ | |
172 | mallocs.c \ | |
b7742c6b | 173 | memoize.c \ |
a4a0d399 AW |
174 | modules.c \ |
175 | null-threads.c \ | |
176 | numbers.c \ | |
177 | objcodes.c \ | |
a4a0d399 AW |
178 | objprop.c \ |
179 | options.c \ | |
180 | pairs.c \ | |
6f81b18a | 181 | poll.c \ |
a4a0d399 AW |
182 | ports.c \ |
183 | print.c \ | |
184 | procprop.c \ | |
185 | procs.c \ | |
186 | programs.c \ | |
7b893819 | 187 | promises.c \ |
a4a0d399 | 188 | r6rs-ports.c \ |
a4a0d399 AW |
189 | random.c \ |
190 | rdelim.c \ | |
191 | read.c \ | |
192 | root.c \ | |
193 | rw.c \ | |
194 | scmsigs.c \ | |
195 | script.c \ | |
196 | simpos.c \ | |
197 | smob.c \ | |
198 | sort.c \ | |
199 | srcprop.c \ | |
37710f7e AW |
200 | srfi-1.c \ |
201 | srfi-4.c \ | |
a4a0d399 AW |
202 | srfi-13.c \ |
203 | srfi-14.c \ | |
37710f7e | 204 | srfi-60.c \ |
a4a0d399 AW |
205 | stackchk.c \ |
206 | stacks.c \ | |
207 | stime.c \ | |
208 | strings.c \ | |
209 | strorder.c \ | |
210 | strports.c \ | |
211 | struct.c \ | |
212 | symbols.c \ | |
213 | threads.c \ | |
214 | throw.c \ | |
0f458a37 | 215 | trees.c \ |
476b894c | 216 | uniform.c \ |
a4a0d399 AW |
217 | values.c \ |
218 | variable.c \ | |
219 | vectors.c \ | |
220 | version.c \ | |
221 | vm.c \ | |
222 | vports.c \ | |
26b26354 | 223 | weak-set.c \ |
7005c60f | 224 | weak-table.c \ |
a141db86 | 225 | weak-vector.c |
83495480 | 226 | |
a4a0d399 AW |
227 | DOT_X_FILES = \ |
228 | alist.x \ | |
229 | arbiters.x \ | |
c53c0893 | 230 | array-handle.x \ |
5d1b3b2d | 231 | array-map.x \ |
2fa901a5 | 232 | arrays.x \ |
a4a0d399 AW |
233 | async.x \ |
234 | backtrace.x \ | |
235 | boolean.x \ | |
cf396142 | 236 | bitvectors.x \ |
a4a0d399 AW |
237 | bytevectors.x \ |
238 | chars.x \ | |
b9c100d0 | 239 | control.x \ |
a4a0d399 AW |
240 | continuations.x \ |
241 | debug.x \ | |
242 | deprecated.x \ | |
243 | deprecation.x \ | |
a4a0d399 AW |
244 | dynl.x \ |
245 | dynwind.x \ | |
246 | eq.x \ | |
247 | error.x \ | |
248 | eval.x \ | |
249 | evalext.x \ | |
dc3e203e | 250 | expand.x \ |
a4a0d399 AW |
251 | extensions.x \ |
252 | feature.x \ | |
ee037cee | 253 | filesys.x \ |
a4a0d399 | 254 | fluids.x \ |
e2c2a699 | 255 | foreign.x \ |
a4a0d399 | 256 | fports.x \ |
a4a0d399 | 257 | gc-malloc.x \ |
a4a0d399 AW |
258 | gc.x \ |
259 | gettext.x \ | |
1030b450 | 260 | generalized-arrays.x \ |
f332e957 | 261 | generalized-vectors.x \ |
a4a0d399 AW |
262 | goops.x \ |
263 | gsubr.x \ | |
264 | guardians.x \ | |
265 | hash.x \ | |
266 | hashtab.x \ | |
267 | hooks.x \ | |
268 | i18n.x \ | |
269 | init.x \ | |
270 | ioext.x \ | |
271 | keywords.x \ | |
a4a0d399 AW |
272 | list.x \ |
273 | load.x \ | |
274 | macros.x \ | |
275 | mallocs.x \ | |
b7742c6b | 276 | memoize.x \ |
a4a0d399 AW |
277 | modules.x \ |
278 | numbers.x \ | |
a4a0d399 AW |
279 | objprop.x \ |
280 | options.x \ | |
281 | pairs.x \ | |
282 | ports.x \ | |
283 | print.x \ | |
284 | procprop.x \ | |
285 | procs.x \ | |
7b893819 | 286 | promises.x \ |
a4a0d399 | 287 | r6rs-ports.x \ |
a4a0d399 AW |
288 | random.x \ |
289 | rdelim.x \ | |
290 | read.x \ | |
291 | root.x \ | |
292 | rw.x \ | |
293 | scmsigs.x \ | |
294 | script.x \ | |
295 | simpos.x \ | |
296 | smob.x \ | |
297 | sort.x \ | |
298 | srcprop.x \ | |
37710f7e AW |
299 | srfi-1.x \ |
300 | srfi-4.x \ | |
a4a0d399 AW |
301 | srfi-13.x \ |
302 | srfi-14.x \ | |
37710f7e | 303 | srfi-60.x \ |
a4a0d399 AW |
304 | stackchk.x \ |
305 | stacks.x \ | |
306 | stime.x \ | |
307 | strings.x \ | |
308 | strorder.x \ | |
309 | strports.x \ | |
310 | struct.x \ | |
311 | symbols.x \ | |
312 | threads.x \ | |
313 | throw.x \ | |
0f458a37 | 314 | trees.x \ |
476b894c | 315 | uniform.x \ |
a4a0d399 AW |
316 | values.x \ |
317 | variable.x \ | |
318 | vectors.x \ | |
319 | version.x \ | |
320 | vports.x \ | |
26b26354 | 321 | weak-set.x \ |
7005c60f | 322 | weak-table.x \ |
a141db86 | 323 | weak-vector.x |
8bee78b3 | 324 | |
83495480 AW |
325 | # vm-related snarfs |
326 | DOT_X_FILES += frames.x instructions.x objcodes.x programs.x vm.x | |
327 | ||
e9e225e5 | 328 | EXTRA_DOT_X_FILES = @EXTRA_DOT_X_FILES@ |
8bee78b3 | 329 | |
a4a0d399 AW |
330 | DOT_DOC_FILES = \ |
331 | alist.doc \ | |
332 | arbiters.doc \ | |
c53c0893 | 333 | array-handle.doc \ |
5d1b3b2d | 334 | array-map.doc \ |
2fa901a5 | 335 | arrays.doc \ |
a4a0d399 AW |
336 | async.doc \ |
337 | backtrace.doc \ | |
338 | boolean.doc \ | |
cf396142 | 339 | bitvectors.doc \ |
a4a0d399 AW |
340 | bytevectors.doc \ |
341 | chars.doc \ | |
b9c100d0 | 342 | control.doc \ |
a4a0d399 AW |
343 | continuations.doc \ |
344 | debug.doc \ | |
345 | deprecated.doc \ | |
346 | deprecation.doc \ | |
a4a0d399 AW |
347 | dynl.doc \ |
348 | dynwind.doc \ | |
349 | eq.doc \ | |
350 | error.doc \ | |
351 | eval.doc \ | |
352 | evalext.doc \ | |
dc3e203e | 353 | expand.doc \ |
a4a0d399 AW |
354 | extensions.doc \ |
355 | feature.doc \ | |
073167ef | 356 | filesys.doc \ |
a4a0d399 | 357 | fluids.doc \ |
e2c2a699 | 358 | foreign.doc \ |
a4a0d399 | 359 | fports.doc \ |
a4a0d399 | 360 | gc-malloc.doc \ |
a4a0d399 AW |
361 | gc.doc \ |
362 | gettext.doc \ | |
1030b450 | 363 | generalized-arrays.doc \ |
476b894c | 364 | generalized-vectors.doc \ |
a4a0d399 AW |
365 | goops.doc \ |
366 | gsubr.doc \ | |
367 | guardians.doc \ | |
368 | hash.doc \ | |
369 | hashtab.doc \ | |
370 | hooks.doc \ | |
371 | i18n.doc \ | |
372 | init.doc \ | |
373 | ioext.doc \ | |
374 | keywords.doc \ | |
a4a0d399 AW |
375 | list.doc \ |
376 | load.doc \ | |
377 | macros.doc \ | |
378 | mallocs.doc \ | |
b7742c6b | 379 | memoize.doc \ |
a4a0d399 AW |
380 | modules.doc \ |
381 | numbers.doc \ | |
a4a0d399 AW |
382 | objprop.doc \ |
383 | options.doc \ | |
384 | pairs.doc \ | |
385 | ports.doc \ | |
386 | print.doc \ | |
387 | procprop.doc \ | |
388 | procs.doc \ | |
7b893819 | 389 | promises.doc \ |
a4a0d399 | 390 | r6rs-ports.doc \ |
a4a0d399 AW |
391 | random.doc \ |
392 | rdelim.doc \ | |
393 | read.doc \ | |
394 | root.doc \ | |
395 | rw.doc \ | |
396 | scmsigs.doc \ | |
397 | script.doc \ | |
398 | simpos.doc \ | |
399 | smob.doc \ | |
400 | sort.doc \ | |
401 | srcprop.doc \ | |
37710f7e AW |
402 | srfi-1.doc \ |
403 | srfi-4.doc \ | |
a4a0d399 AW |
404 | srfi-13.doc \ |
405 | srfi-14.doc \ | |
37710f7e | 406 | srfi-60.doc \ |
a4a0d399 AW |
407 | stackchk.doc \ |
408 | stacks.doc \ | |
409 | stime.doc \ | |
410 | strings.doc \ | |
411 | strorder.doc \ | |
412 | strports.doc \ | |
413 | struct.doc \ | |
414 | symbols.doc \ | |
415 | threads.doc \ | |
416 | throw.doc \ | |
0f458a37 | 417 | trees.doc \ |
476b894c | 418 | uniform.doc \ |
a4a0d399 AW |
419 | values.doc \ |
420 | variable.doc \ | |
421 | vectors.doc \ | |
422 | version.doc \ | |
423 | vports.doc \ | |
26b26354 | 424 | weak-set.doc \ |
7005c60f | 425 | weak-table.doc \ |
a141db86 | 426 | weak-vector.doc |
a3365d47 | 427 | |
2ce88b54 | 428 | EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@ |
9515eae6 | 429 | |
83495480 AW |
430 | DOT_I_FILES = vm-i-system.i vm-i-scheme.i vm-i-loader.i |
431 | ||
432 | .c.i: | |
a572fc95 | 433 | $(AM_V_GEN)$(GREP) '^VM_DEFINE' $< > $@ |
83495480 | 434 | |
648da032 | 435 | BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h \ |
b405cdb4 | 436 | scmconfig.h \ |
83495480 | 437 | $(DOT_I_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) |
9515eae6 | 438 | |
44602b08 | 439 | EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = _scm.h \ |
c32b39b9 | 440 | memmove.c strerror.c \ |
f731051e | 441 | dynl.c regex-posix.c \ |
073167ef | 442 | posix.c net_db.c socket.c \ |
29627818 | 443 | debug-malloc.c mkstemp.c \ |
95643853 | 444 | win32-uname.c win32-socket.c \ |
b89c4943 | 445 | locale-categories.h |
7bfd3b9e | 446 | |
413a1367 ML |
447 | ## delete guile-snarf.awk from the installation bindir, in case it's |
448 | ## lingering there due to an earlier guile version not having been | |
449 | ## wiped out. | |
450 | install-exec-hook: | |
b27b814d | 451 | rm -f $(DESTDIR)$(bindir)/guile-snarf.awk |
413a1367 | 452 | |
7bfd3b9e | 453 | ## This is kind of nasty... there are ".c" files that we don't want to |
1be6b49c ML |
454 | ## compile, since they are #included. So instead we list them here. |
455 | ## Perhaps we can deal with them normally once the merge seems to be | |
456 | ## working. | |
4b126598 | 457 | noinst_HEADERS = conv-integer.i.c conv-uinteger.i.c \ |
71560395 | 458 | ieee-754.h \ |
71560395 | 459 | srfi-14.i.c \ |
06f9c814 | 460 | quicksort.i.c \ |
95643853 | 461 | win32-uname.h win32-socket.h \ |
981ff600 | 462 | private-gc.h private-options.h |
7bfd3b9e | 463 | |
83495480 AW |
464 | # vm instructions |
465 | noinst_HEADERS += vm-engine.c vm-i-system.c vm-i-scheme.c vm-i-loader.c | |
466 | ||
44602b08 | 467 | libguile_@GUILE_EFFECTIVE_VERSION@_la_DEPENDENCIES = @LIBLOBJS@ |
abd7e37a | 468 | |
18f2d5aa | 469 | libguile_@GUILE_EFFECTIVE_VERSION@_la_LIBADD = \ |
cae0945c LC |
470 | @LIBLOBJS@ $(gnulib_library) $(LTLIBGMP) $(LTLIBLTDL) |
471 | ||
472 | # Libtool version info. | |
473 | version_info = @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ | |
474 | ||
475 | libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS = \ | |
476 | $(BDW_GC_LIBS) $(LIBFFI_LIBS) \ | |
dd36ce77 | 477 | $(CEIL_LIBM) \ |
cae0945c | 478 | $(FLOOR_LIBM) \ |
dd36ce77 | 479 | $(FREXP_LIBM) \ |
cae0945c LC |
480 | $(GETADDRINFO_LIB) \ |
481 | $(HOSTENT_LIB) \ | |
482 | $(INET_NTOP_LIB) \ | |
483 | $(INET_PTON_LIB) \ | |
484 | $(ISNAND_LIBM) \ | |
485 | $(ISNANF_LIBM) \ | |
486 | $(ISNANL_LIBM) \ | |
dd36ce77 | 487 | $(LDEXP_LIBM) \ |
e3b8bce8 | 488 | $(LIB_CLOCK_GETTIME) \ |
cae0945c LC |
489 | $(LIBSOCKET) \ |
490 | $(LOG1P_LIBM) \ | |
491 | $(LTLIBICONV) \ | |
492 | $(LTLIBINTL) \ | |
493 | $(LTLIBUNISTRING) \ | |
cae0945c LC |
494 | $(SERVENT_LIB) \ |
495 | $(TRUNC_LIBM) \ | |
496 | -version-info $(version_info) \ | |
497 | -export-dynamic -no-undefined \ | |
76e8a758 | 498 | $(GNU_LD_FLAGS) |
733943b9 | 499 | |
9af080f7 LC |
500 | if HAVE_LD_VERSION_SCRIPT |
501 | ||
44602b08 | 502 | libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS += -Wl,--version-script="$(srcdir)/libguile.map" |
9af080f7 LC |
503 | |
504 | endif HAVE_LD_VERSION_SCRIPT | |
505 | ||
506 | ||
54f16aec | 507 | # These are headers visible as <guile/mumble.h> |
6a6df187 | 508 | pkginclude_HEADERS = |
ee2a8b9b | 509 | |
733943b9 | 510 | # These are headers visible as <libguile/mumble.h>. |
718815d7 | 511 | modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)/libguile |
a4a0d399 AW |
512 | modinclude_HEADERS = \ |
513 | __scm.h \ | |
514 | alist.h \ | |
515 | arbiters.h \ | |
c53c0893 | 516 | array-handle.h \ |
5d1b3b2d | 517 | array-map.h \ |
2fa901a5 | 518 | arrays.h \ |
a4a0d399 AW |
519 | async.h \ |
520 | backtrace.h \ | |
1c44468d | 521 | bdw-gc.h \ |
a4a0d399 | 522 | boolean.h \ |
cf396142 | 523 | bitvectors.h \ |
a4a0d399 AW |
524 | bytevectors.h \ |
525 | chars.h \ | |
b9c100d0 | 526 | control.h \ |
a4a0d399 AW |
527 | continuations.h \ |
528 | debug-malloc.h \ | |
529 | debug.h \ | |
530 | deprecated.h \ | |
531 | deprecation.h \ | |
a4a0d399 | 532 | dynl.h \ |
9ede013f | 533 | dynstack.h \ |
a4a0d399 AW |
534 | dynwind.h \ |
535 | eq.h \ | |
536 | error.h \ | |
537 | eval.h \ | |
538 | evalext.h \ | |
dc3e203e | 539 | expand.h \ |
a4a0d399 AW |
540 | extensions.h \ |
541 | feature.h \ | |
6e9ec86d | 542 | finalizers.h \ |
a4a0d399 AW |
543 | filesys.h \ |
544 | fluids.h \ | |
e2c2a699 | 545 | foreign.h \ |
a4a0d399 AW |
546 | fports.h \ |
547 | frames.h \ | |
a4a0d399 AW |
548 | gc.h \ |
549 | gdb_interface.h \ | |
550 | gdbint.h \ | |
551 | gettext.h \ | |
1030b450 | 552 | generalized-arrays.h \ |
f332e957 | 553 | generalized-vectors.h \ |
a4a0d399 AW |
554 | goops.h \ |
555 | gsubr.h \ | |
556 | guardians.h \ | |
557 | hash.h \ | |
558 | hashtab.h \ | |
559 | hooks.h \ | |
560 | i18n.h \ | |
561 | init.h \ | |
562 | inline.h \ | |
563 | instructions.h \ | |
564 | ioext.h \ | |
565 | iselect.h \ | |
566 | keywords.h \ | |
a4a0d399 AW |
567 | list.h \ |
568 | load.h \ | |
569 | macros.h \ | |
570 | mallocs.h \ | |
b7742c6b | 571 | memoize.h \ |
a4a0d399 AW |
572 | modules.h \ |
573 | net_db.h \ | |
574 | null-threads.h \ | |
575 | numbers.h \ | |
576 | objcodes.h \ | |
a4a0d399 AW |
577 | objprop.h \ |
578 | options.h \ | |
579 | pairs.h \ | |
6f81b18a | 580 | poll.h \ |
a4a0d399 AW |
581 | ports.h \ |
582 | posix.h \ | |
583 | print.h \ | |
584 | procprop.h \ | |
585 | procs.h \ | |
586 | programs.h \ | |
7b893819 | 587 | promises.h \ |
a4a0d399 AW |
588 | pthread-threads.h \ |
589 | r6rs-ports.h \ | |
a4a0d399 AW |
590 | random.h \ |
591 | rdelim.h \ | |
592 | read.h \ | |
593 | regex-posix.h \ | |
594 | root.h \ | |
595 | rw.h \ | |
596 | scmsigs.h \ | |
597 | script.h \ | |
598 | simpos.h \ | |
599 | smob.h \ | |
600 | snarf.h \ | |
601 | socket.h \ | |
602 | sort.h \ | |
603 | srcprop.h \ | |
37710f7e AW |
604 | srfi-1.h \ |
605 | srfi-4.h \ | |
a4a0d399 AW |
606 | srfi-13.h \ |
607 | srfi-14.h \ | |
37710f7e | 608 | srfi-60.h \ |
a4a0d399 AW |
609 | stackchk.h \ |
610 | stacks.h \ | |
611 | stime.h \ | |
612 | strings.h \ | |
613 | strorder.h \ | |
614 | strports.h \ | |
615 | struct.h \ | |
616 | symbols.h \ | |
617 | tags.h \ | |
618 | threads.h \ | |
619 | throw.h \ | |
0f458a37 | 620 | trees.h \ |
a4a0d399 | 621 | validate.h \ |
476b894c | 622 | uniform.h \ |
a4a0d399 AW |
623 | values.h \ |
624 | variable.h \ | |
625 | vectors.h \ | |
a4a0d399 AW |
626 | vm-engine.h \ |
627 | vm-expand.h \ | |
628 | vm.h \ | |
629 | vports.h \ | |
26b26354 | 630 | weak-set.h \ |
7005c60f | 631 | weak-table.h \ |
a141db86 | 632 | weak-vector.h |
83495480 | 633 | |
93ff93f6 | 634 | nodist_modinclude_HEADERS = version.h scmconfig.h |
733943b9 | 635 | |
604a672e TTN |
636 | bin_SCRIPTS = guile-snarf |
637 | ||
f94b6524 TTN |
638 | # We can re-enable install for some of these if/when they are documented |
639 | # and people feel like maintaining them. For now, this is not the case. | |
2d6a14ad | 640 | noinst_SCRIPTS = guile-snarf-docs |
adb75a41 | 641 | |
89bc270d | 642 | EXTRA_DIST = ChangeLog-scm ChangeLog-threads \ |
648da032 | 643 | ChangeLog-1996-1999 ChangeLog-2000 ChangeLog-2008 \ |
2d6a14ad | 644 | guile-func-name-check \ |
648da032 | 645 | cpp-E.syms cpp-E.c cpp-SIG.syms cpp-SIG.c \ |
b405cdb4 | 646 | c-tokenize.lex \ |
f49dbcad | 647 | scmconfig.h.top libgettext.h unidata_to_charset.pl libguile.map |
c99f9605 ML |
648 | # $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) \ |
649 | # guile-procedures.txt guile.texi | |
733943b9 | 650 | |
fef07353 | 651 | ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds. |
90ff3ec5 | 652 | libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status |
e151bee6 JB |
653 | @rm -f libpath.tmp |
654 | @echo '/* generated by Makefile */' > libpath.tmp | |
655 | @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp | |
d8a20ddb | 656 | @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp |
d5a1a8cd | 657 | @echo '#define SCM_SITE_DIR "$(sitedir)"' >> libpath.tmp |
bc325e76 | 658 | @echo '#define SCM_GLOBAL_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp |
28af5ee5 AW |
659 | @echo '#define SCM_LIB_DIR "$(libdir)"' >> libpath.tmp |
660 | @echo '#define SCM_EXTENSIONS_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions"' >> libpath.tmp | |
5b197db8 | 661 | @echo '#define SCM_CCACHE_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/ccache"' >> libpath.tmp |
9957641b | 662 | @echo '#define SCM_SITE_CCACHE_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/site-ccache"' >> libpath.tmp |
5b197db8 | 663 | @echo '#define SCM_EFFECTIVE_VERSION "$(GUILE_EFFECTIVE_VERSION)"' >> libpath.tmp |
e151bee6 JB |
664 | @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp |
665 | @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp | |
c565712c | 666 | @echo ' { "top_srcdir", "@top_srcdir_absolute@" }, \' >> libpath.tmp |
e151bee6 JB |
667 | @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp |
668 | @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp | |
669 | @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp | |
670 | @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp | |
671 | @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp | |
672 | @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp | |
673 | @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp | |
674 | @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp | |
675 | @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp | |
676 | @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp | |
5b197db8 | 677 | @echo ' { "ccachedir", SCM_CCACHE_DIR }, \' >> libpath.tmp |
e151bee6 JB |
678 | @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp |
679 | @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp | |
680 | @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp | |
eb350124 AW |
681 | @echo ' { "pkgdatadir", "$(pkgdatadir)" }, \' >> libpath.tmp |
682 | @echo ' { "pkglibdir", "$(pkglibdir)" }, \' >> libpath.tmp | |
683 | @echo ' { "pkgincludedir", "$(pkgincludedir)" }, \' \ | |
e151bee6 | 684 | >> libpath.tmp |
869bfe86 | 685 | @echo ' { "extensiondir", "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions" }, \' >> libpath.tmp |
b6fae158 | 686 | @echo ' { "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp |
54f16aec TTN |
687 | @echo ' { "libguileinterface", "@LIBGUILE_INTERFACE@" }, \' \ |
688 | >> libpath.tmp | |
30dda257 | 689 | @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp |
5bbc5359 | 690 | @echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp |
a6025413 | 691 | @echo ' { "buildstamp", "'`date -u +'%Y-%m-%d %T'`'" }, \' >> libpath.tmp |
e151bee6 | 692 | @echo '}' >> libpath.tmp |
a572fc95 | 693 | $(AM_V_GEN)mv libpath.tmp libpath.h |
733943b9 | 694 | |
3dc81fba | 695 | |
47871d5a | 696 | snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
e9c3d3f9 | 697 | |
3dc81fba | 698 | SUFFIXES = .x .doc |
a572fc95 | 699 | |
733943b9 | 700 | .c.x: |
a572fc95 | 701 | $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) |
c99f9605 | 702 | .c.doc: |
e6d67f1e | 703 | $(AM_V_SNARF)./guile-snarf-docs -o $@ $< -- $(snarfcppopts) |
733943b9 | 704 | |
f9560a34 | 705 | $(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in version.h |
c99f9605 | 706 | |
23f2b9a3 | 707 | $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): scmconfig.h snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT) |
66418d34 | 708 | |
648da032 TTN |
709 | error.x: cpp-E.c |
710 | posix.x: cpp-SIG.c | |
faf6a29b MV |
711 | load.x: libpath.h |
712 | ||
f8241358 | 713 | alldotdocfiles = $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) |
b8b06598 | 714 | snarf2checkedtexi = GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guild snarf-check-and-output-texi |
f8241358 TTN |
715 | dotdoc2texi = cat $(alldotdocfiles) | $(snarf2checkedtexi) |
716 | ||
2e945bcc | 717 | guile.texi: $(alldotdocfiles) guile$(EXEEXT) |
f8241358 TTN |
718 | $(dotdoc2texi) --manual > $@ || { rm $@; false; } |
719 | ||
2e945bcc | 720 | guile-procedures.texi: $(alldotdocfiles) guile$(EXEEXT) |
a572fc95 | 721 | $(AM_V_GEN)$(dotdoc2texi) > $@ || { rm $@; false; } |
9d29e990 | 722 | |
9df3eecc MV |
723 | if HAVE_MAKEINFO |
724 | ||
cecb4a5e | 725 | guile-procedures.txt: guile-procedures.texi |
9d29e990 | 726 | rm -f $@ |
f7742034 | 727 | makeinfo --force -o $@ guile-procedures.texi || test -f $@ |
4079f87e | 728 | |
9df3eecc MV |
729 | else |
730 | ||
731 | guile-procedures.txt: guile-procedures.texi | |
f7742034 | 732 | cp guile-procedures.texi $@ |
9df3eecc MV |
733 | |
734 | endif | |
735 | ||
30e3be5a | 736 | c-tokenize.c: c-tokenize.lex |
47ac1e47 | 737 | flex -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; } |
30e3be5a | 738 | |
d8a20ddb | 739 | schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION) |
8dc9439f | 740 | schemelib_DATA = guile-procedures.txt |
4079f87e | 741 | |
733943b9 | 742 | ## Add -MG to make the .x magic work with auto-dep code. |
47871d5a | 743 | MKDEP = gcc -M -MG $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
ee78fbb0 | 744 | |
648da032 TTN |
745 | \f |
746 | # This page is for maintenance of the lists of CPP symbols that are eventually | |
747 | # included in error.c (‘errno’ values: E*) and posix.c (signal names: SIG*), | |
748 | # in the funcs scm_init_{error,posix}, respectively. | |
749 | # | |
750 | # The lists (files cpp-{E,SIG}.syms) are not included verbatim, but processed | |
751 | # (via pattern rule ‘.syms.c’ below) so that each CPP symbol is transformed to | |
752 | # fragment of #ifdef'd C code that defines a Scheme variable of the same name. | |
753 | # The resulting files, cpp-{E,SIG}.c, are the ones #include:d. | |
754 | # | |
755 | # To maintain the (source) lists of symbols, we use a GCC-specific feature | |
756 | # to list all symbols #define:d when expanding <{errno,signal}.h>, grep | |
757 | # the output for {E,SIG}*, massage the result into a usable form, and | |
758 | # construct a union of the current and new symbols. This is written to | |
759 | # files cpp-{E,SIG}.syms.NEW for review. If things look ok, you can then | |
760 | # "mv foo.NEW foo" and commit. Generating the foo.NEW files and showing | |
761 | # an informative message is the job of targets chknew-{E,SIG}. | |
762 | ||
763 | # For each line in foo.syms, transform: | |
764 | # SYMBOL | |
765 | # to: | |
766 | # #ifdef SYMBOL | |
767 | # scm_c_define ("SYMBOL", scm_from_int (SYMBOL)); | |
768 | # #endif | |
319b53dd TTN |
769 | # writing output to foo.c. We use a while-read loop instead of a |
770 | # one-line sed script because some seds (e.g., FreeBSD) don't read | |
771 | # '\n' as a newline (like GNU sed does). Sad, but true. | |
648da032 | 772 | .syms.c: |
bfebf099 | 773 | $(AM_V_GEN) \ |
319b53dd TTN |
774 | cat $< | while read sym ; do \ |
775 | echo "#ifdef $$sym" ; \ | |
776 | echo "scm_c_define (\"$$sym\", scm_from_int ($$sym));" ; \ | |
777 | echo "#endif" ; \ | |
778 | done > $@T | |
bfebf099 | 779 | @mv $@T $@ |
648da032 TTN |
780 | |
781 | # Write $(srcdir)/cpp-{E,SIG}.syms.NEW if there are any not-yet-seen | |
782 | # ("new" to us) E* or SIG* symbols in <errno.h> or <signal.h>, respectively. | |
9253d090 | 783 | chknew-E chknew-SIG: \ |
648da032 TTN |
784 | @bit=`echo $@ | sed s/^chknew-//` ; \ |
785 | old="$(srcdir)/cpp-$$bit.syms" ; \ | |
786 | echo "#include <$${bit}.h>" \ | |
787 | | sed 's/E/errno/;s/SIG/signal/' \ | |
9253d090 | 788 | | gcc -dM -E - \ |
648da032 TTN |
789 | | sed 's/^#define //;/^'$$bit'[A-Z][A-Z]*/!d;s/ .*//' \ |
790 | | sort | diff -u $$old - | sed '1,2d;/^+/!d;s/^.//' \ | |
791 | > TMP ; \ | |
792 | if [ -s TMP ] ; then new="$$old.NEW" ; \ | |
793 | cat $$old TMP | sort > $$new ; \ | |
794 | echo "$$new: `sed -n '$$=' TMP` new symbol(s)." ; \ | |
795 | sed 's/^/ /' TMP ; \ | |
796 | else echo "No new symbols found." ; \ | |
797 | fi ; rm TMP | |
798 | ||
799 | \f | |
67ec3667 | 800 | |
ad6b30a0 | 801 | MOSTLYCLEANFILES = \ |
23ccb831 | 802 | scmconfig.h scmconfig.h.tmp |
ad6b30a0 | 803 | |
84595266 AW |
804 | CLEANFILES = libpath.h *.x *.doc guile-procedures.txt guile-procedures.texi guile.texi \ |
805 | vm-i-*.i | |
ee0c0e03 ML |
806 | |
807 | MAINTAINERCLEANFILES = c-tokenize.c |