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