Commit | Line | Data |
---|---|---|
733943b9 | 1 | ## Process this file with Automake to create Makefile.in |
2764bd99 | 2 | ## |
7ca96180 | 3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009 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 | |
3307df95 | 22 | AUTOMAKE_OPTIONS = gnu |
733943b9 | 23 | |
a0599745 | 24 | ## Prevent automake from adding extra -I options |
8f99e3f3 | 25 | DEFS = @DEFS@ |
535b3592 LC |
26 | |
27 | # Override Automake's `DEFAULT_INCLUDES'. By default, it contains | |
28 | # "-I$(srcdir)", which causes problems on Tru64 where our "random.h" | |
29 | # is picked up by <stdlib.h> instead of the libc's <random.h>. | |
30 | DEFAULT_INCLUDES = | |
31 | ||
733943b9 TT |
32 | ## Check for headers in $(srcdir)/.., so that #include |
33 | ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're | |
6caac03c | 34 | ## building. Also look for Gnulib headers in `lib'. |
442f3f20 | 35 | AM_CPPFLAGS = -DBUILDING_LIBGUILE=1 -I$(top_srcdir) -I$(top_builddir) \ |
47871d5a | 36 | -I$(top_srcdir)/lib -I$(top_builddir)/lib |
6caac03c | 37 | |
442f3f20 | 38 | AM_CFLAGS = $(GCC_CFLAGS) $(CFLAG_VISIBILITY) |
6caac03c LC |
39 | |
40 | ## The Gnulib Libtool archive. | |
41 | gnulib_library = $(top_builddir)/lib/libgnu.la | |
733943b9 | 42 | |
4079f87e | 43 | ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \ |
abc049a9 | 44 | --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/' |
fef07353 | 45 | |
756e8a3a | 46 | lib_LTLIBRARIES = libguile.la |
f94b6524 | 47 | bin_PROGRAMS = guile |
b32fca0f | 48 | |
64c2db80 RB |
49 | noinst_PROGRAMS = guile_filter_doc_snarfage gen-scmconfig |
50 | ||
51 | gen_scmconfig_SOURCES = gen-scmconfig.c | |
52 | ||
53 | ## Override default rule; this should be compiled for BUILD host. | |
54 | ## For some reason, OBJEXT does not include the dot | |
55 | gen-scmconfig.$(OBJEXT): gen-scmconfig.c | |
56 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
47871d5a | 57 | $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) -c -o $@ $<; \ |
64c2db80 RB |
58 | else \ |
59 | $(COMPILE) -c -o $@ $<; \ | |
60 | fi | |
61 | ||
2e945bcc SJ |
62 | ## Override default rule; this should run on BUILD host. |
63 | gen-scmconfig$(EXEEXT): $(gen_scmconfig_OBJECTS) $(gen_scmconfig_DEPENDENCIES) | |
64 | @rm -f gen-scmconfig$(EXEEXT) | |
65 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
66 | $(CCLD_FOR_BUILD) -o $@ $(gen_scmconfig_OBJECTS); \ | |
67 | else \ | |
68 | $(LINK) $(gen_scmconfig_OBJECTS) $(LDADD) $(LIBS); \ | |
69 | fi | |
70 | ||
71 | scmconfig.h: ${top_builddir}/config.h gen-scmconfig$(EXEEXT) | |
64c2db80 | 72 | rm -f scmconfig.h.tmp |
eaf94f77 | 73 | cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp |
2e945bcc | 74 | ./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp |
64c2db80 RB |
75 | chmod 444 scmconfig.h.tmp |
76 | rm -f scmconfig.h | |
77 | mv scmconfig.h.tmp scmconfig.h | |
78 | ||
b32fca0f MV |
79 | guile_filter_doc_snarfage_SOURCES = c-tokenize.c |
80 | ||
81 | ## Override default rule; this should be compiled for BUILD host. | |
82 | ## For some reason, OBJEXT does not include the dot | |
83 | c-tokenize.$(OBJEXT): c-tokenize.c | |
84 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
47871d5a | 85 | $(CC_FOR_BUILD) $(DEFS) $(AM_CPPFLAGS) -c -o $@ $<; \ |
b32fca0f | 86 | else \ |
d3518113 | 87 | $(filter-out -Werror,$(COMPILE)) -c -o $@ $<; \ |
b32fca0f MV |
88 | fi |
89 | ||
90 | ## Override default rule; this should run on BUILD host. | |
91 | guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile_filter_doc_snarfage_DEPENDENCIES) | |
92 | @rm -f guile_filter_doc_snarfage$(EXEEXT) | |
93 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
94 | $(CCLD_FOR_BUILD) -o $@ $(guile_filter_doc_snarfage_OBJECTS); \ | |
95 | else \ | |
96 | $(LINK) $(guile_filter_doc_snarfage_OBJECTS) $(LDADD) $(LIBS); \ | |
97 | fi | |
98 | ||
549436de JB |
99 | |
100 | guile_SOURCES = guile.c | |
bfb2e113 | 101 | guile_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS) |
8f99e3f3 | 102 | guile_LDADD = libguile.la |
de7d32d0 | 103 | guile_LDFLAGS = $(GUILE_CFLAGS) |
5bbc5359 | 104 | |
bfb2e113 | 105 | libguile_la_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS) |
ee2a8b9b | 106 | |
a4a0d399 AW |
107 | libguile_la_SOURCES = \ |
108 | alist.c \ | |
109 | arbiters.c \ | |
c53c0893 | 110 | array-handle.c \ |
5d1b3b2d | 111 | array-map.c \ |
2fa901a5 | 112 | arrays.c \ |
a4a0d399 AW |
113 | async.c \ |
114 | backtrace.c \ | |
115 | boolean.c \ | |
cf396142 | 116 | bitvectors.c \ |
a4a0d399 AW |
117 | bytevectors.c \ |
118 | chars.c \ | |
119 | continuations.c \ | |
120 | debug.c \ | |
121 | deprecated.c \ | |
122 | deprecation.c \ | |
123 | discouraged.c \ | |
124 | dynwind.c \ | |
125 | eq.c \ | |
126 | error.c \ | |
127 | eval.c \ | |
128 | evalext.c \ | |
129 | extensions.c \ | |
130 | feature.c \ | |
131 | fluids.c \ | |
132 | fports.c \ | |
133 | frames.c \ | |
134 | futures.c \ | |
a4a0d399 | 135 | gc-malloc.c \ |
a4a0d399 | 136 | gc.c \ |
a4a0d399 AW |
137 | gdbint.c \ |
138 | gettext.c \ | |
1030b450 | 139 | generalized-arrays.c \ |
f332e957 | 140 | generalized-vectors.c \ |
a4a0d399 AW |
141 | goops.c \ |
142 | gsubr.c \ | |
143 | guardians.c \ | |
144 | hash.c \ | |
145 | hashtab.c \ | |
146 | hooks.c \ | |
756e8a3a | 147 | i18n.c \ |
a4a0d399 AW |
148 | init.c \ |
149 | inline.c \ | |
150 | instructions.c \ | |
151 | ioext.c \ | |
152 | keywords.c \ | |
153 | lang.c \ | |
154 | list.c \ | |
155 | load.c \ | |
156 | macros.c \ | |
157 | mallocs.c \ | |
158 | modules.c \ | |
159 | null-threads.c \ | |
160 | numbers.c \ | |
161 | objcodes.c \ | |
162 | objects.c \ | |
163 | objprop.c \ | |
164 | options.c \ | |
165 | pairs.c \ | |
166 | ports.c \ | |
167 | print.c \ | |
168 | procprop.c \ | |
169 | procs.c \ | |
170 | programs.c \ | |
171 | properties.c \ | |
172 | r6rs-ports.c \ | |
a4a0d399 AW |
173 | random.c \ |
174 | rdelim.c \ | |
175 | read.c \ | |
176 | root.c \ | |
177 | rw.c \ | |
178 | scmsigs.c \ | |
179 | script.c \ | |
180 | simpos.c \ | |
181 | smob.c \ | |
182 | sort.c \ | |
183 | srcprop.c \ | |
184 | srfi-13.c \ | |
185 | srfi-14.c \ | |
186 | srfi-4.c \ | |
187 | stackchk.c \ | |
188 | stacks.c \ | |
189 | stime.c \ | |
190 | strings.c \ | |
191 | strorder.c \ | |
192 | strports.c \ | |
193 | struct.c \ | |
194 | symbols.c \ | |
195 | threads.c \ | |
196 | throw.c \ | |
476b894c | 197 | uniform.c \ |
a4a0d399 AW |
198 | values.c \ |
199 | variable.c \ | |
200 | vectors.c \ | |
201 | version.c \ | |
202 | vm.c \ | |
203 | vports.c \ | |
204 | weaks.c | |
83495480 | 205 | |
a4a0d399 AW |
206 | DOT_X_FILES = \ |
207 | alist.x \ | |
208 | arbiters.x \ | |
c53c0893 | 209 | array-handle.x \ |
5d1b3b2d | 210 | array-map.x \ |
2fa901a5 | 211 | arrays.x \ |
a4a0d399 AW |
212 | async.x \ |
213 | backtrace.x \ | |
214 | boolean.x \ | |
cf396142 | 215 | bitvectors.x \ |
a4a0d399 AW |
216 | bytevectors.x \ |
217 | chars.x \ | |
218 | continuations.x \ | |
219 | debug.x \ | |
220 | deprecated.x \ | |
221 | deprecation.x \ | |
222 | discouraged.x \ | |
223 | dynl.x \ | |
224 | dynwind.x \ | |
225 | eq.x \ | |
226 | error.x \ | |
227 | eval.x \ | |
228 | evalext.x \ | |
229 | extensions.x \ | |
230 | feature.x \ | |
231 | fluids.x \ | |
232 | fports.x \ | |
233 | futures.x \ | |
a4a0d399 | 234 | gc-malloc.x \ |
a4a0d399 AW |
235 | gc.x \ |
236 | gettext.x \ | |
1030b450 | 237 | generalized-arrays.x \ |
f332e957 | 238 | generalized-vectors.x \ |
a4a0d399 AW |
239 | goops.x \ |
240 | gsubr.x \ | |
241 | guardians.x \ | |
242 | hash.x \ | |
243 | hashtab.x \ | |
244 | hooks.x \ | |
245 | i18n.x \ | |
246 | init.x \ | |
247 | ioext.x \ | |
248 | keywords.x \ | |
249 | lang.x \ | |
250 | list.x \ | |
251 | load.x \ | |
252 | macros.x \ | |
253 | mallocs.x \ | |
254 | modules.x \ | |
255 | numbers.x \ | |
256 | objects.x \ | |
257 | objprop.x \ | |
258 | options.x \ | |
259 | pairs.x \ | |
260 | ports.x \ | |
261 | print.x \ | |
262 | procprop.x \ | |
263 | procs.x \ | |
264 | properties.x \ | |
265 | r6rs-ports.x \ | |
a4a0d399 AW |
266 | random.x \ |
267 | rdelim.x \ | |
268 | read.x \ | |
269 | root.x \ | |
270 | rw.x \ | |
271 | scmsigs.x \ | |
272 | script.x \ | |
273 | simpos.x \ | |
274 | smob.x \ | |
275 | sort.x \ | |
276 | srcprop.x \ | |
277 | srfi-13.x \ | |
278 | srfi-14.x \ | |
279 | srfi-4.x \ | |
280 | stackchk.x \ | |
281 | stacks.x \ | |
282 | stime.x \ | |
283 | strings.x \ | |
284 | strorder.x \ | |
285 | strports.x \ | |
286 | struct.x \ | |
287 | symbols.x \ | |
288 | threads.x \ | |
289 | throw.x \ | |
476b894c | 290 | uniform.x \ |
a4a0d399 AW |
291 | values.x \ |
292 | variable.x \ | |
293 | vectors.x \ | |
294 | version.x \ | |
295 | vports.x \ | |
296 | weaks.x | |
8bee78b3 | 297 | |
83495480 AW |
298 | # vm-related snarfs |
299 | DOT_X_FILES += frames.x instructions.x objcodes.x programs.x vm.x | |
300 | ||
e9e225e5 | 301 | EXTRA_DOT_X_FILES = @EXTRA_DOT_X_FILES@ |
8bee78b3 | 302 | |
a4a0d399 AW |
303 | DOT_DOC_FILES = \ |
304 | alist.doc \ | |
305 | arbiters.doc \ | |
c53c0893 | 306 | array-handle.doc \ |
5d1b3b2d | 307 | array-map.doc \ |
2fa901a5 | 308 | arrays.doc \ |
a4a0d399 AW |
309 | async.doc \ |
310 | backtrace.doc \ | |
311 | boolean.doc \ | |
cf396142 | 312 | bitvectors.doc \ |
a4a0d399 AW |
313 | bytevectors.doc \ |
314 | chars.doc \ | |
315 | continuations.doc \ | |
316 | debug.doc \ | |
317 | deprecated.doc \ | |
318 | deprecation.doc \ | |
319 | discouraged.doc \ | |
320 | dynl.doc \ | |
321 | dynwind.doc \ | |
322 | eq.doc \ | |
323 | error.doc \ | |
324 | eval.doc \ | |
325 | evalext.doc \ | |
326 | extensions.doc \ | |
327 | feature.doc \ | |
328 | fluids.doc \ | |
329 | fports.doc \ | |
330 | futures.doc \ | |
a4a0d399 | 331 | gc-malloc.doc \ |
a4a0d399 AW |
332 | gc.doc \ |
333 | gettext.doc \ | |
1030b450 | 334 | generalized-arrays.doc \ |
476b894c | 335 | generalized-vectors.doc \ |
a4a0d399 AW |
336 | goops.doc \ |
337 | gsubr.doc \ | |
338 | guardians.doc \ | |
339 | hash.doc \ | |
340 | hashtab.doc \ | |
341 | hooks.doc \ | |
342 | i18n.doc \ | |
343 | init.doc \ | |
344 | ioext.doc \ | |
345 | keywords.doc \ | |
346 | lang.doc \ | |
347 | list.doc \ | |
348 | load.doc \ | |
349 | macros.doc \ | |
350 | mallocs.doc \ | |
351 | modules.doc \ | |
352 | numbers.doc \ | |
353 | objects.doc \ | |
354 | objprop.doc \ | |
355 | options.doc \ | |
356 | pairs.doc \ | |
357 | ports.doc \ | |
358 | print.doc \ | |
359 | procprop.doc \ | |
360 | procs.doc \ | |
361 | properties.doc \ | |
362 | r6rs-ports.doc \ | |
a4a0d399 AW |
363 | random.doc \ |
364 | rdelim.doc \ | |
365 | read.doc \ | |
366 | root.doc \ | |
367 | rw.doc \ | |
368 | scmsigs.doc \ | |
369 | script.doc \ | |
370 | simpos.doc \ | |
371 | smob.doc \ | |
372 | sort.doc \ | |
373 | srcprop.doc \ | |
374 | srfi-13.doc \ | |
375 | srfi-14.doc \ | |
376 | srfi-4.doc \ | |
377 | stackchk.doc \ | |
378 | stacks.doc \ | |
379 | stime.doc \ | |
380 | strings.doc \ | |
381 | strorder.doc \ | |
382 | strports.doc \ | |
383 | struct.doc \ | |
384 | symbols.doc \ | |
385 | threads.doc \ | |
386 | throw.doc \ | |
476b894c | 387 | uniform.doc \ |
a4a0d399 AW |
388 | values.doc \ |
389 | variable.doc \ | |
390 | vectors.doc \ | |
391 | version.doc \ | |
392 | vports.doc \ | |
393 | weaks.doc | |
a3365d47 | 394 | |
2ce88b54 | 395 | EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@ |
9515eae6 | 396 | |
83495480 AW |
397 | DOT_I_FILES = vm-i-system.i vm-i-scheme.i vm-i-loader.i |
398 | ||
399 | .c.i: | |
400 | grep '^VM_DEFINE' $< > $@ | |
401 | ||
64c2db80 RB |
402 | BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h \ |
403 | version.h scmconfig.h \ | |
83495480 | 404 | $(DOT_I_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) |
9515eae6 | 405 | |
f731051e MV |
406 | EXTRA_libguile_la_SOURCES = _scm.h \ |
407 | inet_aton.c memmove.c putenv.c strerror.c \ | |
408 | dynl.c regex-posix.c \ | |
409 | filesys.c posix.c net_db.c socket.c \ | |
29627818 | 410 | debug-malloc.c mkstemp.c \ |
b89c4943 LC |
411 | win32-uname.c win32-dirent.c win32-socket.c \ |
412 | locale-categories.h | |
7bfd3b9e | 413 | |
413a1367 ML |
414 | ## delete guile-snarf.awk from the installation bindir, in case it's |
415 | ## lingering there due to an earlier guile version not having been | |
416 | ## wiped out. | |
417 | install-exec-hook: | |
b27b814d | 418 | rm -f $(DESTDIR)$(bindir)/guile-snarf.awk |
413a1367 | 419 | |
7bfd3b9e | 420 | ## This is kind of nasty... there are ".c" files that we don't want to |
1be6b49c ML |
421 | ## compile, since they are #included. So instead we list them here. |
422 | ## Perhaps we can deal with them normally once the merge seems to be | |
423 | ## working. | |
4b126598 | 424 | noinst_HEADERS = conv-integer.i.c conv-uinteger.i.c \ |
1ee2c72e | 425 | eval.i.c ieee-754.h \ |
f49dbcad | 426 | srfi-4.i.c srfi-14.i.c \ |
06f9c814 | 427 | quicksort.i.c \ |
340c49bf | 428 | win32-uname.h win32-dirent.h win32-socket.h \ |
03291373 | 429 | private-gc.h private-options.h |
7bfd3b9e | 430 | |
83495480 AW |
431 | # vm instructions |
432 | noinst_HEADERS += vm-engine.c vm-i-system.c vm-i-scheme.c vm-i-loader.c | |
433 | ||
78bda5f3 | 434 | libguile_la_DEPENDENCIES = @LIBLOBJS@ |
f4863880 | 435 | libguile_la_LIBADD = @LIBLOBJS@ $(gnulib_library) $(LTLIBGMP) $(LTLIBUNISTRING) |
88686555 | 436 | libguile_la_LDFLAGS = @LTLIBINTL@ -version-info @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ -export-dynamic -no-undefined |
733943b9 | 437 | |
9af080f7 LC |
438 | if HAVE_LD_VERSION_SCRIPT |
439 | ||
440 | libguile_la_LDFLAGS += -Wl,--version-script="$(srcdir)/libguile.map" | |
441 | ||
442 | endif HAVE_LD_VERSION_SCRIPT | |
443 | ||
444 | ||
54f16aec | 445 | # These are headers visible as <guile/mumble.h> |
89bc270d | 446 | pkginclude_HEADERS = |
ee2a8b9b | 447 | |
733943b9 | 448 | # These are headers visible as <libguile/mumble.h>. |
5380de6b | 449 | modincludedir = $(includedir)/libguile |
a4a0d399 AW |
450 | modinclude_HEADERS = \ |
451 | __scm.h \ | |
452 | alist.h \ | |
453 | arbiters.h \ | |
c53c0893 | 454 | array-handle.h \ |
5d1b3b2d | 455 | array-map.h \ |
2fa901a5 | 456 | arrays.h \ |
a4a0d399 AW |
457 | async.h \ |
458 | backtrace.h \ | |
1c44468d | 459 | bdw-gc.h \ |
a4a0d399 | 460 | boolean.h \ |
cf396142 | 461 | bitvectors.h \ |
a4a0d399 AW |
462 | bytevectors.h \ |
463 | chars.h \ | |
464 | continuations.h \ | |
465 | debug-malloc.h \ | |
466 | debug.h \ | |
467 | deprecated.h \ | |
468 | deprecation.h \ | |
469 | discouraged.h \ | |
470 | dynl.h \ | |
471 | dynwind.h \ | |
472 | eq.h \ | |
473 | error.h \ | |
474 | eval.h \ | |
475 | evalext.h \ | |
476 | extensions.h \ | |
477 | feature.h \ | |
478 | filesys.h \ | |
479 | fluids.h \ | |
480 | fports.h \ | |
481 | frames.h \ | |
482 | futures.h \ | |
483 | gc.h \ | |
484 | gdb_interface.h \ | |
485 | gdbint.h \ | |
486 | gettext.h \ | |
1030b450 | 487 | generalized-arrays.h \ |
f332e957 | 488 | generalized-vectors.h \ |
a4a0d399 AW |
489 | goops.h \ |
490 | gsubr.h \ | |
491 | guardians.h \ | |
492 | hash.h \ | |
493 | hashtab.h \ | |
494 | hooks.h \ | |
495 | i18n.h \ | |
496 | init.h \ | |
497 | inline.h \ | |
498 | instructions.h \ | |
499 | ioext.h \ | |
500 | iselect.h \ | |
501 | keywords.h \ | |
502 | lang.h \ | |
503 | list.h \ | |
504 | load.h \ | |
505 | macros.h \ | |
506 | mallocs.h \ | |
507 | modules.h \ | |
508 | net_db.h \ | |
509 | null-threads.h \ | |
510 | numbers.h \ | |
511 | objcodes.h \ | |
512 | objects.h \ | |
513 | objprop.h \ | |
514 | options.h \ | |
515 | pairs.h \ | |
516 | ports.h \ | |
517 | posix.h \ | |
518 | print.h \ | |
519 | procprop.h \ | |
520 | procs.h \ | |
521 | programs.h \ | |
522 | properties.h \ | |
523 | pthread-threads.h \ | |
524 | r6rs-ports.h \ | |
a4a0d399 AW |
525 | random.h \ |
526 | rdelim.h \ | |
527 | read.h \ | |
528 | regex-posix.h \ | |
529 | root.h \ | |
530 | rw.h \ | |
531 | scmsigs.h \ | |
532 | script.h \ | |
533 | simpos.h \ | |
534 | smob.h \ | |
535 | snarf.h \ | |
536 | socket.h \ | |
537 | sort.h \ | |
538 | srcprop.h \ | |
539 | srfi-13.h \ | |
540 | srfi-14.h \ | |
541 | srfi-4.h \ | |
542 | stackchk.h \ | |
543 | stacks.h \ | |
544 | stime.h \ | |
545 | strings.h \ | |
546 | strorder.h \ | |
547 | strports.h \ | |
548 | struct.h \ | |
549 | symbols.h \ | |
550 | tags.h \ | |
551 | threads.h \ | |
552 | throw.h \ | |
a4a0d399 | 553 | validate.h \ |
476b894c | 554 | uniform.h \ |
a4a0d399 AW |
555 | values.h \ |
556 | variable.h \ | |
557 | vectors.h \ | |
558 | vm-bootstrap.h \ | |
559 | vm-engine.h \ | |
560 | vm-expand.h \ | |
561 | vm.h \ | |
562 | vports.h \ | |
563 | weaks.h | |
83495480 | 564 | |
93ff93f6 | 565 | nodist_modinclude_HEADERS = version.h scmconfig.h |
733943b9 | 566 | |
604a672e TTN |
567 | bin_SCRIPTS = guile-snarf |
568 | ||
f94b6524 TTN |
569 | # We can re-enable install for some of these if/when they are documented |
570 | # and people feel like maintaining them. For now, this is not the case. | |
604a672e | 571 | noinst_SCRIPTS = guile-doc-snarf guile-snarf-docs guile-func-name-check |
adb75a41 | 572 | |
89bc270d | 573 | EXTRA_DIST = ChangeLog-scm ChangeLog-threads \ |
61db429e LC |
574 | ChangeLog-1996-1999 ChangeLog-2000 ChangeLog-2008 cpp_signal.c \ |
575 | cpp_errno.c cpp_err_symbols.in cpp_err_symbols.c \ | |
576 | cpp_sig_symbols.c cpp_sig_symbols.in cpp_cnvt.awk \ | |
577 | c-tokenize.lex version.h.in \ | |
f49dbcad | 578 | scmconfig.h.top libgettext.h unidata_to_charset.pl libguile.map |
c99f9605 ML |
579 | # $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) \ |
580 | # guile-procedures.txt guile.texi | |
733943b9 | 581 | |
d8a20ddb RB |
582 | ## We use @-...-@ as the substitution brackets here, instead of the |
583 | ## usual @...@, so autoconf doesn't go and substitute the values | |
584 | ## directly into the left-hand sides of the sed substitutions. *sigh* | |
585 | version.h: version.h.in | |
8ab3d8a0 | 586 | sed < $(srcdir)/version.h.in > $@.tmp \ |
d8a20ddb RB |
587 | -e s:@-GUILE_MAJOR_VERSION-@:${GUILE_MAJOR_VERSION}: \ |
588 | -e s:@-GUILE_MINOR_VERSION-@:${GUILE_MINOR_VERSION}: \ | |
589 | -e s:@-GUILE_MICRO_VERSION-@:${GUILE_MICRO_VERSION}: | |
590 | mv $@.tmp $@ | |
591 | ||
fef07353 | 592 | ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds. |
90ff3ec5 | 593 | libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status |
54f16aec | 594 | @echo "Generating libpath.h..." |
e151bee6 JB |
595 | @rm -f libpath.tmp |
596 | @echo '/* generated by Makefile */' > libpath.tmp | |
597 | @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp | |
d8a20ddb | 598 | @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp |
e151bee6 | 599 | @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp |
5b197db8 AW |
600 | @echo '#define SCM_CCACHE_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/ccache"' >> libpath.tmp |
601 | @echo '#define SCM_EFFECTIVE_VERSION "$(GUILE_EFFECTIVE_VERSION)"' >> libpath.tmp | |
e151bee6 JB |
602 | @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp |
603 | @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp | |
c565712c | 604 | @echo ' { "top_srcdir", "@top_srcdir_absolute@" }, \' >> libpath.tmp |
e151bee6 JB |
605 | @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp |
606 | @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp | |
607 | @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp | |
608 | @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp | |
609 | @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp | |
610 | @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp | |
611 | @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp | |
612 | @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp | |
613 | @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp | |
614 | @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp | |
5b197db8 | 615 | @echo ' { "ccachedir", SCM_CCACHE_DIR }, \' >> libpath.tmp |
e151bee6 JB |
616 | @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp |
617 | @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp | |
618 | @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp | |
5b197db8 AW |
619 | @echo ' { "pkgdatadir", "@pkgdatadir@" }, \' >> libpath.tmp |
620 | @echo ' { "pkglibdir", "@pkglibdir@" }, \' >> libpath.tmp | |
621 | @echo ' { "pkgincludedir", "@pkgincludedir@" }, \' \ | |
e151bee6 | 622 | >> libpath.tmp |
b6fae158 | 623 | @echo ' { "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp |
54f16aec TTN |
624 | @echo ' { "libguileinterface", "@LIBGUILE_INTERFACE@" }, \' \ |
625 | >> libpath.tmp | |
30dda257 | 626 | @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp |
5bbc5359 | 627 | @echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp |
54f16aec | 628 | @echo ' { "buildstamp", "'"`date`"'" }, \' >> libpath.tmp |
e151bee6 JB |
629 | @echo '}' >> libpath.tmp |
630 | @mv libpath.tmp libpath.h | |
733943b9 | 631 | |
3dc81fba | 632 | |
47871d5a | 633 | snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
e9c3d3f9 | 634 | |
3dc81fba | 635 | SUFFIXES = .x .doc |
733943b9 | 636 | .c.x: |
2c7a286a | 637 | ./guile-snarf -o $@ $< $(snarfcppopts) |
c99f9605 | 638 | .c.doc: |
23d72566 | 639 | -$(AWK) -f ./guile-func-name-check $< |
e9c3d3f9 | 640 | (./guile-snarf-docs $(snarfcppopts) $< | \ |
af68e5e5 | 641 | ./guile_filter_doc_snarfage$(EXEEXT) --filter-snarfage) > $@ || { rm $@; false; } |
733943b9 | 642 | |
23f2b9a3 | 643 | $(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in |
c99f9605 | 644 | |
23f2b9a3 | 645 | $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): scmconfig.h snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT) |
66418d34 | 646 | |
faf6a29b MV |
647 | error.x: cpp_err_symbols.c |
648 | posix.x: cpp_sig_symbols.c | |
649 | load.x: libpath.h | |
650 | ||
f8241358 | 651 | alldotdocfiles = $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) |
e27f640a | 652 | snarf2checkedtexi = GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guile-tools snarf-check-and-output-texi |
f8241358 TTN |
653 | dotdoc2texi = cat $(alldotdocfiles) | $(snarf2checkedtexi) |
654 | ||
2e945bcc | 655 | guile.texi: $(alldotdocfiles) guile$(EXEEXT) |
f8241358 TTN |
656 | $(dotdoc2texi) --manual > $@ || { rm $@; false; } |
657 | ||
2e945bcc | 658 | guile-procedures.texi: $(alldotdocfiles) guile$(EXEEXT) |
f8241358 | 659 | $(dotdoc2texi) > $@ || { rm $@; false; } |
9d29e990 | 660 | |
9df3eecc MV |
661 | if HAVE_MAKEINFO |
662 | ||
cecb4a5e | 663 | guile-procedures.txt: guile-procedures.texi |
9d29e990 | 664 | rm -f $@ |
f7742034 | 665 | makeinfo --force -o $@ guile-procedures.texi || test -f $@ |
4079f87e | 666 | |
9df3eecc MV |
667 | else |
668 | ||
669 | guile-procedures.txt: guile-procedures.texi | |
f7742034 | 670 | cp guile-procedures.texi $@ |
9df3eecc MV |
671 | |
672 | endif | |
673 | ||
30e3be5a | 674 | c-tokenize.c: c-tokenize.lex |
47ac1e47 | 675 | flex -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; } |
30e3be5a | 676 | |
d8a20ddb | 677 | schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION) |
8dc9439f | 678 | schemelib_DATA = guile-procedures.txt |
4079f87e | 679 | |
733943b9 | 680 | ## Add -MG to make the .x magic work with auto-dep code. |
47871d5a | 681 | MKDEP = gcc -M -MG $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
ee78fbb0 | 682 | |
a9c093e2 | 683 | cpp_err_symbols.c: cpp_err_symbols.in cpp_cnvt.awk |
a0e90145 | 684 | $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \ |
593d151f JB |
685 | cpp_err_symbols.tmp |
686 | mv cpp_err_symbols.tmp cpp_err_symbols.c | |
ee78fbb0 | 687 | |
a9c093e2 | 688 | cpp_sig_symbols.c: cpp_sig_symbols.in cpp_cnvt.awk |
a0e90145 | 689 | $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \ |
593d151f JB |
690 | cpp_sig_symbols.tmp |
691 | mv cpp_sig_symbols.tmp cpp_sig_symbols.c | |
67ec3667 | 692 | |
a0e90145 | 693 | ## Create a new version of the cpp_sig_symbols.in file, including all SIGXXX |
67ec3667 GH |
694 | ## macros defined on this platform. |
695 | check_signals: | |
696 | gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \ | |
697 | | cut -f2 -d' ' | sort > cpp_sig_symbols_here | |
a0e90145 JB |
698 | diff -u $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_here \ |
699 | | egrep '^\+S' \ | |
67ec3667 GH |
700 | | cut -c2- > cpp_sig_symbols_diff |
701 | if test -s cpp_sig_symbols_diff ; then \ | |
a0e90145 | 702 | cat $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_diff \ |
67ec3667 GH |
703 | | sort > cpp_sig_symbols_new ;\ |
704 | echo "cpp_sig_symbols_new has the following additions:" ;\ | |
705 | cat cpp_sig_symbols_diff ;\ | |
706 | else echo "No new symbols found."; \ | |
707 | fi | |
708 | ||
a0e90145 | 709 | ## Likewise for cpp_err_symbols.in. |
67ec3667 GH |
710 | check_errnos: |
711 | gcc -undef -dM -E $(srcdir)/cpp_errno.c | egrep ' E.+' \ | |
712 | | cut -f2 -d' ' | sort > cpp_err_symbols_here | |
a0e90145 JB |
713 | diff -u $(srcdir)/cpp_err_symbols.in cpp_err_symbols_here \ |
714 | | egrep '^\+E' \ | |
67ec3667 GH |
715 | | cut -c2- > cpp_err_symbols_diff |
716 | if test -s cpp_err_symbols_diff ; then \ | |
a0e90145 | 717 | cat $(srcdir)/cpp_err_symbols.in cpp_err_symbols_diff \ |
67ec3667 GH |
718 | | sort > cpp_err_symbols_new ;\ |
719 | echo "cpp_err_symbols_new has the following additions:" ;\ | |
720 | cat cpp_err_symbols_diff ;\ | |
721 | else echo "No new symbols found."; \ | |
722 | fi | |
723 | ||
ad6b30a0 TP |
724 | MOSTLYCLEANFILES = \ |
725 | cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \ | |
d8a20ddb RB |
726 | cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new \ |
727 | version.h version.h.tmp \ | |
23ccb831 | 728 | scmconfig.h scmconfig.h.tmp |
ad6b30a0 | 729 | |
84595266 AW |
730 | CLEANFILES = libpath.h *.x *.doc guile-procedures.txt guile-procedures.texi guile.texi \ |
731 | vm-i-*.i | |
ee0c0e03 ML |
732 | |
733 | MAINTAINERCLEANFILES = c-tokenize.c |