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