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