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