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