Commit | Line | Data |
---|---|---|
733943b9 | 1 | ## Process this file with Automake to create Makefile.in |
2764bd99 | 2 | ## |
e4598559 MW |
3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, |
4 | ## 2008, 2009, 2010, 2011, 2012, 2013 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 | |
7bfd3b9e | 451 | ## This is kind of nasty... there are ".c" files that we don't want to |
1be6b49c ML |
452 | ## compile, since they are #included. So instead we list them here. |
453 | ## Perhaps we can deal with them normally once the merge seems to be | |
454 | ## working. | |
4b126598 | 455 | noinst_HEADERS = conv-integer.i.c conv-uinteger.i.c \ |
71560395 | 456 | srfi-14.i.c \ |
06f9c814 | 457 | quicksort.i.c \ |
09b204d3 | 458 | win32-uname.h \ |
e4598559 | 459 | private-gc.h private-options.h ports-internal.h |
7bfd3b9e | 460 | |
83495480 AW |
461 | # vm instructions |
462 | noinst_HEADERS += vm-engine.c vm-i-system.c vm-i-scheme.c vm-i-loader.c | |
463 | ||
44602b08 | 464 | libguile_@GUILE_EFFECTIVE_VERSION@_la_DEPENDENCIES = @LIBLOBJS@ |
abd7e37a | 465 | |
18f2d5aa | 466 | libguile_@GUILE_EFFECTIVE_VERSION@_la_LIBADD = \ |
cae0945c LC |
467 | @LIBLOBJS@ $(gnulib_library) $(LTLIBGMP) $(LTLIBLTDL) |
468 | ||
469 | # Libtool version info. | |
470 | version_info = @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ | |
471 | ||
472 | libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS = \ | |
473 | $(BDW_GC_LIBS) $(LIBFFI_LIBS) \ | |
dd36ce77 | 474 | $(CEIL_LIBM) \ |
cae0945c | 475 | $(FLOOR_LIBM) \ |
dd36ce77 | 476 | $(FREXP_LIBM) \ |
cae0945c LC |
477 | $(GETADDRINFO_LIB) \ |
478 | $(HOSTENT_LIB) \ | |
479 | $(INET_NTOP_LIB) \ | |
480 | $(INET_PTON_LIB) \ | |
481 | $(ISNAND_LIBM) \ | |
482 | $(ISNANF_LIBM) \ | |
483 | $(ISNANL_LIBM) \ | |
dd36ce77 | 484 | $(LDEXP_LIBM) \ |
cae0945c | 485 | $(LIBSOCKET) \ |
235c2804 | 486 | $(LIB_CLOCK_GETTIME) \ |
cae0945c | 487 | $(LOG1P_LIBM) \ |
005de2e8 | 488 | $(LOG_LIBM) \ |
cae0945c LC |
489 | $(LTLIBICONV) \ |
490 | $(LTLIBINTL) \ | |
491 | $(LTLIBUNISTRING) \ | |
005de2e8 | 492 | $(ROUND_LIBM) \ |
cae0945c LC |
493 | $(SERVENT_LIB) \ |
494 | $(TRUNC_LIBM) \ | |
495 | -version-info $(version_info) \ | |
496 | -export-dynamic -no-undefined \ | |
76e8a758 | 497 | $(GNU_LD_FLAGS) |
733943b9 | 498 | |
9af080f7 LC |
499 | if HAVE_LD_VERSION_SCRIPT |
500 | ||
44602b08 | 501 | libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS += -Wl,--version-script="$(srcdir)/libguile.map" |
9af080f7 LC |
502 | |
503 | endif HAVE_LD_VERSION_SCRIPT | |
504 | ||
505 | ||
54f16aec | 506 | # These are headers visible as <guile/mumble.h> |
6a6df187 | 507 | pkginclude_HEADERS = |
ee2a8b9b | 508 | |
733943b9 | 509 | # These are headers visible as <libguile/mumble.h>. |
718815d7 | 510 | modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)/libguile |
a4a0d399 AW |
511 | modinclude_HEADERS = \ |
512 | __scm.h \ | |
513 | alist.h \ | |
514 | arbiters.h \ | |
c53c0893 | 515 | array-handle.h \ |
5d1b3b2d | 516 | array-map.h \ |
2fa901a5 | 517 | arrays.h \ |
a4a0d399 AW |
518 | async.h \ |
519 | backtrace.h \ | |
1c44468d | 520 | bdw-gc.h \ |
a4a0d399 | 521 | boolean.h \ |
cf396142 | 522 | bitvectors.h \ |
a4a0d399 AW |
523 | bytevectors.h \ |
524 | chars.h \ | |
b9c100d0 | 525 | control.h \ |
a4a0d399 AW |
526 | continuations.h \ |
527 | debug-malloc.h \ | |
528 | debug.h \ | |
529 | deprecated.h \ | |
530 | deprecation.h \ | |
a4a0d399 AW |
531 | dynl.h \ |
532 | dynwind.h \ | |
533 | eq.h \ | |
534 | error.h \ | |
535 | eval.h \ | |
536 | evalext.h \ | |
dc3e203e | 537 | expand.h \ |
a4a0d399 AW |
538 | extensions.h \ |
539 | feature.h \ | |
7b327550 | 540 | finalizers.h \ |
a4a0d399 AW |
541 | filesys.h \ |
542 | fluids.h \ | |
e2c2a699 | 543 | foreign.h \ |
a4a0d399 AW |
544 | fports.h \ |
545 | frames.h \ | |
a4a0d399 AW |
546 | gc.h \ |
547 | gdb_interface.h \ | |
548 | gdbint.h \ | |
549 | gettext.h \ | |
1030b450 | 550 | generalized-arrays.h \ |
f332e957 | 551 | generalized-vectors.h \ |
a4a0d399 AW |
552 | goops.h \ |
553 | gsubr.h \ | |
554 | guardians.h \ | |
555 | hash.h \ | |
556 | hashtab.h \ | |
557 | hooks.h \ | |
558 | i18n.h \ | |
559 | init.h \ | |
560 | inline.h \ | |
561 | instructions.h \ | |
562 | ioext.h \ | |
563 | iselect.h \ | |
564 | keywords.h \ | |
a4a0d399 AW |
565 | list.h \ |
566 | load.h \ | |
567 | macros.h \ | |
568 | mallocs.h \ | |
b7742c6b | 569 | memoize.h \ |
a4a0d399 AW |
570 | modules.h \ |
571 | net_db.h \ | |
572 | null-threads.h \ | |
573 | numbers.h \ | |
574 | objcodes.h \ | |
a4a0d399 AW |
575 | objprop.h \ |
576 | options.h \ | |
577 | pairs.h \ | |
6f81b18a | 578 | poll.h \ |
a4a0d399 AW |
579 | ports.h \ |
580 | posix.h \ | |
581 | print.h \ | |
582 | procprop.h \ | |
583 | procs.h \ | |
584 | programs.h \ | |
7b893819 | 585 | promises.h \ |
a4a0d399 AW |
586 | pthread-threads.h \ |
587 | r6rs-ports.h \ | |
a4a0d399 AW |
588 | random.h \ |
589 | rdelim.h \ | |
590 | read.h \ | |
591 | regex-posix.h \ | |
592 | root.h \ | |
593 | rw.h \ | |
594 | scmsigs.h \ | |
595 | script.h \ | |
596 | simpos.h \ | |
597 | smob.h \ | |
598 | snarf.h \ | |
599 | socket.h \ | |
600 | sort.h \ | |
601 | srcprop.h \ | |
37710f7e AW |
602 | srfi-1.h \ |
603 | srfi-4.h \ | |
a4a0d399 AW |
604 | srfi-13.h \ |
605 | srfi-14.h \ | |
37710f7e | 606 | srfi-60.h \ |
a4a0d399 AW |
607 | stackchk.h \ |
608 | stacks.h \ | |
609 | stime.h \ | |
610 | strings.h \ | |
611 | strorder.h \ | |
612 | strports.h \ | |
613 | struct.h \ | |
614 | symbols.h \ | |
615 | tags.h \ | |
616 | threads.h \ | |
617 | throw.h \ | |
0f458a37 | 618 | trees.h \ |
a4a0d399 | 619 | validate.h \ |
476b894c | 620 | uniform.h \ |
a4a0d399 AW |
621 | values.h \ |
622 | variable.h \ | |
623 | vectors.h \ | |
a4a0d399 AW |
624 | vm-engine.h \ |
625 | vm-expand.h \ | |
626 | vm.h \ | |
627 | vports.h \ | |
628 | weaks.h | |
83495480 | 629 | |
93ff93f6 | 630 | nodist_modinclude_HEADERS = version.h scmconfig.h |
733943b9 | 631 | |
604a672e TTN |
632 | bin_SCRIPTS = guile-snarf |
633 | ||
f94b6524 TTN |
634 | # We can re-enable install for some of these if/when they are documented |
635 | # and people feel like maintaining them. For now, this is not the case. | |
2d6a14ad | 636 | noinst_SCRIPTS = guile-snarf-docs |
adb75a41 | 637 | |
89bc270d | 638 | EXTRA_DIST = ChangeLog-scm ChangeLog-threads \ |
648da032 | 639 | ChangeLog-1996-1999 ChangeLog-2000 ChangeLog-2008 \ |
2d6a14ad | 640 | guile-func-name-check \ |
648da032 | 641 | cpp-E.syms cpp-E.c cpp-SIG.syms cpp-SIG.c \ |
b405cdb4 | 642 | c-tokenize.lex \ |
f49dbcad | 643 | scmconfig.h.top libgettext.h unidata_to_charset.pl libguile.map |
c99f9605 ML |
644 | # $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) \ |
645 | # guile-procedures.txt guile.texi | |
733943b9 | 646 | |
fef07353 | 647 | ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds. |
90ff3ec5 | 648 | libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status |
e151bee6 JB |
649 | @rm -f libpath.tmp |
650 | @echo '/* generated by Makefile */' > libpath.tmp | |
651 | @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp | |
d8a20ddb | 652 | @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp |
d5a1a8cd | 653 | @echo '#define SCM_SITE_DIR "$(sitedir)"' >> libpath.tmp |
bc325e76 | 654 | @echo '#define SCM_GLOBAL_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp |
28af5ee5 AW |
655 | @echo '#define SCM_LIB_DIR "$(libdir)"' >> libpath.tmp |
656 | @echo '#define SCM_EXTENSIONS_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions"' >> libpath.tmp | |
5b197db8 | 657 | @echo '#define SCM_CCACHE_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/ccache"' >> libpath.tmp |
9957641b | 658 | @echo '#define SCM_SITE_CCACHE_DIR "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/site-ccache"' >> libpath.tmp |
5b197db8 | 659 | @echo '#define SCM_EFFECTIVE_VERSION "$(GUILE_EFFECTIVE_VERSION)"' >> libpath.tmp |
e151bee6 JB |
660 | @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp |
661 | @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp | |
c565712c | 662 | @echo ' { "top_srcdir", "@top_srcdir_absolute@" }, \' >> libpath.tmp |
e151bee6 JB |
663 | @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp |
664 | @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp | |
665 | @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp | |
666 | @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp | |
667 | @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp | |
668 | @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp | |
669 | @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp | |
670 | @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp | |
671 | @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp | |
672 | @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp | |
5b197db8 | 673 | @echo ' { "ccachedir", SCM_CCACHE_DIR }, \' >> libpath.tmp |
e151bee6 JB |
674 | @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp |
675 | @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp | |
676 | @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp | |
eb350124 AW |
677 | @echo ' { "pkgdatadir", "$(pkgdatadir)" }, \' >> libpath.tmp |
678 | @echo ' { "pkglibdir", "$(pkglibdir)" }, \' >> libpath.tmp | |
679 | @echo ' { "pkgincludedir", "$(pkgincludedir)" }, \' \ | |
e151bee6 | 680 | >> libpath.tmp |
869bfe86 | 681 | @echo ' { "extensiondir", "$(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/extensions" }, \' >> libpath.tmp |
b6fae158 | 682 | @echo ' { "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp |
54f16aec TTN |
683 | @echo ' { "libguileinterface", "@LIBGUILE_INTERFACE@" }, \' \ |
684 | >> libpath.tmp | |
30dda257 | 685 | @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp |
5bbc5359 | 686 | @echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp |
a6025413 | 687 | @echo ' { "buildstamp", "'`date -u +'%Y-%m-%d %T'`'" }, \' >> libpath.tmp |
e151bee6 | 688 | @echo '}' >> libpath.tmp |
a572fc95 | 689 | $(AM_V_GEN)mv libpath.tmp libpath.h |
733943b9 | 690 | |
3dc81fba | 691 | |
47871d5a | 692 | snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
e9c3d3f9 | 693 | |
3dc81fba | 694 | SUFFIXES = .x .doc |
a572fc95 | 695 | |
733943b9 | 696 | .c.x: |
a572fc95 | 697 | $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) |
c99f9605 | 698 | .c.doc: |
e6d67f1e | 699 | $(AM_V_SNARF)./guile-snarf-docs -o $@ $< -- $(snarfcppopts) |
733943b9 | 700 | |
f9560a34 | 701 | $(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in version.h |
c99f9605 | 702 | |
23f2b9a3 | 703 | $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): scmconfig.h snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT) |
66418d34 | 704 | |
648da032 TTN |
705 | error.x: cpp-E.c |
706 | posix.x: cpp-SIG.c | |
faf6a29b | 707 | load.x: libpath.h |
0bc37aec | 708 | dynl.x: libpath.h |
faf6a29b | 709 | |
f8241358 | 710 | alldotdocfiles = $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) |
83dce818 AW |
711 | snarf2checkedtexi = GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \ |
712 | $(top_builddir)/meta/uninstalled-env guild snarf-check-and-output-texi | |
f8241358 TTN |
713 | dotdoc2texi = cat $(alldotdocfiles) | $(snarf2checkedtexi) |
714 | ||
2e945bcc | 715 | guile.texi: $(alldotdocfiles) guile$(EXEEXT) |
f8241358 TTN |
716 | $(dotdoc2texi) --manual > $@ || { rm $@; false; } |
717 | ||
2e945bcc | 718 | guile-procedures.texi: $(alldotdocfiles) guile$(EXEEXT) |
a572fc95 | 719 | $(AM_V_GEN)$(dotdoc2texi) > $@ || { rm $@; false; } |
9d29e990 | 720 | |
30e3be5a | 721 | c-tokenize.c: c-tokenize.lex |
47ac1e47 | 722 | flex -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; } |
30e3be5a | 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 |