* ports.h, ports.c (scm_unread_string): New procedure.
[bpt/guile.git] / libguile / Makefile.in
CommitLineData
5798fd97 1# Makefile.in generated automatically by automake 1.3 from Makefile.am
0f2d19dd 2
5798fd97 3# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
733943b9 4# This Makefile.in is free software; the Free Software Foundation
cbab9700
JB
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11# PARTICULAR PURPOSE.
0f2d19dd 12
0f2d19dd 13
3f622d2b 14SHELL = /bin/sh
0f2d19dd 15
733943b9
TT
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
19prefix = @prefix@
0f2d19dd
JB
20exec_prefix = @exec_prefix@
21
733943b9
TT
22bindir = @bindir@
23sbindir = @sbindir@
24libexecdir = @libexecdir@
25datadir = @datadir@
26sysconfdir = @sysconfdir@
27sharedstatedir = @sharedstatedir@
28localstatedir = @localstatedir@
a2086f6f 29libdir = @libdir@
733943b9
TT
30infodir = @infodir@
31mandir = @mandir@
a2086f6f 32includedir = @includedir@
733943b9 33oldincludedir = /usr/include
0f2d19dd 34
5798fd97
MD
35DISTDIR =
36
733943b9
TT
37pkgdatadir = $(datadir)/@PACKAGE@
38pkglibdir = $(libdir)/@PACKAGE@
39pkgincludedir = $(includedir)/@PACKAGE@
0f2d19dd 40
b1e9e9d1 41top_builddir = ..
0f2d19dd 42
e13d8dc0
JB
43ACLOCAL = @ACLOCAL@
44AUTOCONF = @AUTOCONF@
45AUTOMAKE = @AUTOMAKE@
46AUTOHEADER = @AUTOHEADER@
47
733943b9
TT
48INSTALL = @INSTALL@
49INSTALL_PROGRAM = @INSTALL_PROGRAM@
50INSTALL_DATA = @INSTALL_DATA@
51INSTALL_SCRIPT = @INSTALL_SCRIPT@
52transform = @program_transform_name@
e13d8dc0 53
341eaef0
GH
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
ef12d978 60host_alias = @host_alias@
e13d8dc0 61host_triplet = @host@
ef12d978 62AWK = @AWK@
ef12d978 63CC = @CC@
de185a27 64CPP = @CPP@
daa4f38c 65GUILE_LIBS = @GUILE_LIBS@
fef07353
JB
66GUILE_MAJOR_VERSION = @GUILE_MAJOR_VERSION@
67GUILE_MINOR_VERSION = @GUILE_MINOR_VERSION@
68GUILE_STAMP = @GUILE_STAMP@
69GUILE_VERSION = @GUILE_VERSION@
70LD = @LD@
e13d8dc0
JB
71LIBLOBJS = @LIBLOBJS@
72LIBTOOL = @LIBTOOL@
cbab9700 73LN_S = @LN_S@
ef12d978 74MAINT = @MAINT@
de185a27 75MAKEINFO = @MAKEINFO@
cbab9700 76NM = @NM@
ef12d978 77PACKAGE = @PACKAGE@
a0e6f509 78QTHREAD_LTLIBS = @QTHREAD_LTLIBS@
e13d8dc0 79RANLIB = @RANLIB@
a0e6f509
JB
80THREAD_CPPFLAGS = @THREAD_CPPFLAGS@
81THREAD_LIBS_INSTALLED = @THREAD_LIBS_INSTALLED@
82THREAD_LIBS_LOCAL = @THREAD_LIBS_LOCAL@
83THREAD_PACKAGE = @THREAD_PACKAGE@
e13d8dc0 84VERSION = @VERSION@
a0e6f509 85qtdmdb_s = @qtdmdb_s@
285403bb 86qthread_asflags = @qthread_asflags@
b1e9e9d1 87qtmd_h = @qtmd_h@
b1e9e9d1 88qtmdc_c = @qtmdc_c@
b1e9e9d1 89qtmds_s = @qtmds_s@
0f2d19dd 90
733943b9 91AUTOMAKE_OPTIONS = foreign
60704a73 92
a0e6f509 93INCLUDES = -I.. -I$(srcdir)/.. ${THREAD_CPPFLAGS}
0f2d19dd 94
fef07353
JB
95ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(PROC\|PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/'
96
e13d8dc0 97lib_LTLIBRARIES = libguile.la
0487b82f
JB
98bin_PROGRAMS = guile
99
100guile_SOURCES = guile.c
a0e6f509 101guile_LDADD = libguile.la ${THREAD_LIBS_LOCAL}
ee2a8b9b
JB
102
103libguile_la_SOURCES = \
4b422a5a
JB
104 alist.c arbiters.c async.c backtrace.c boolean.c chars.c \
105 continuations.c debug.c dynl.c dynwind.c eq.c error.c eval.c \
106 feature.c filesys.c fluids.c fports.c gc.c gdbint.c genio.c \
107 gh_data.c gh_eval.c gh_funcs.c gh_init.c gh_io.c gh_list.c \
108 gh_predicates.c gsubr.c hash.c hashtab.c init.c ioext.c kw.c \
109 list.c load.c mallocs.c markers.c net_db.c numbers.c objects.c \
110 objprop.c options.c pairs.c ports.c posix.c print.c procprop.c \
111 procs.c ramap.c read.c readline.c root.c scmsigs.c script.c \
112 simpos.c smob.c socket.c srcprop.c stackchk.c stacks.c stime.c \
113 strings.c strop.c strorder.c strports.c struct.c symbols.c tag.c \
114 throw.c unif.c variable.c vectors.c version.c vports.c weaks.c
0487b82f 115
a3365d47 116BUILT_SOURCES = \
c02daa09 117 cpp_err_symbols.c cpp_sig_symbols.c libpath.h \
4b422a5a
JB
118 alist.x arbiters.x async.x backtrace.x boolean.x chars.x \
119 continuations.x debug.x dynl.x dynwind.x eq.x error.x eval.x \
120 feature.x filesys.x fluids.x fports.x gc.x gdbint.x genio.x \
121 gh_data.x gh_eval.x gh_funcs.x gh_init.x gh_io.x gh_list.x \
122 gh_predicates.x gsubr.x hash.x hashtab.x init.x ioext.x iselect.x \
123 kw.x list.x load.x mallocs.x markers.x net_db.x numbers.x \
124 objects.x objprop.x options.x pairs.x ports.x posix.x print.x \
125 procprop.x procs.x ramap.x read.x readline.x regex-posix.x root.x \
126 scmsigs.x script.x simpos.x smob.x socket.x srcprop.x stackchk.x \
127 stacks.x stime.x strings.x strop.x strorder.x strports.x struct.x \
128 symbols.x tag.x threads.x throw.x unif.x variable.x vectors.x \
129 version.x vports.x weaks.x
a3365d47 130
ee2a8b9b 131EXTRA_libguile_la_SOURCES = _scm.h \
7bfd3b9e 132 strerror.c inet_aton.c putenv.c \
f255378e 133 threads.c alloca.c \
b9025808 134 regex-posix.c iselect.c
7bfd3b9e
JB
135
136noinst_HEADERS = coop-threads.c coop-threads.h coop.c
137
78bda5f3 138libguile_la_DEPENDENCIES = @LIBLOBJS@
4a5fa91c 139libguile_la_LIBADD = @LIBLOBJS@
c15f9b9d 140libguile_la_LDFLAGS = -version-info 4:0 -export-dynamic
0f2d19dd 141
733943b9 142include_HEADERS = libguile.h
0f2d19dd 143
ee2a8b9b
JB
144# These are headers visible as <guile/mumble.h>
145pkginclude_HEADERS = gh.h
146
733943b9 147# These are headers visible as <libguile/mumble.h>.
5380de6b 148modincludedir = $(includedir)/libguile
99dc0f92
JB
149modinclude_HEADERS = \
150 __scm.h alist.h arbiters.h async.h backtrace.h boolean.h chars.h \
151 continuations.h debug.h dynl.h dynwind.h eq.h error.h eval.h \
152 feature.h filesys.h fports.h gc.h gdb_interface.h gdbint.h genio.h \
153 gsubr.h hash.h hashtab.h init.h ioext.h kw.h list.h load.h \
154 mallocs.h markers.h net_db.h numbers.h objects.h objprop.h \
155 options.h pairs.h ports.h posix.h regex-posix.h print.h procprop.h \
156 procs.h ramap.h read.h readline.h root.h scmsigs.h script.h \
157 simpos.h smob.h socket.h srcprop.h stackchk.h stacks.h stime.h \
158 strings.h strop.h strorder.h strports.h struct.h symbols.h tag.h \
159 tags.h throw.h unif.h variable.h vectors.h version.h vports.h \
b9025808 160 weaks.h snarf.h threads.h coop-defs.h fluids.h iselect.h
733943b9
TT
161
162modinclude_DATA = scmconfig.h
163
adb75a41
TT
164bin_SCRIPTS = guile-snarf
165
a0e6f509 166check_ldadd = libguile.la ${THREAD_LIBS_LOCAL}
ee2a8b9b
JB
167check_PROGRAMS = gh_test_c gh_test_repl
168gh_test_c_SOURCES = gh_test_c.c
169gh_test_c_LDADD = ${check_ldadd}
170gh_test_repl_SOURCES = gh_test_repl.c
171gh_test_repl_LDADD = ${check_ldadd}
172
1773993b
JB
173EXTRA_DIST = ChangeLog-gh ChangeLog-scm ChangeLog-threads dynl-dl.c \
174 dynl-dld.c dynl-shl.c dynl-vms.c DYNAMIC-LINKING cpp_signal.c cpp_errno.c \
175 cpp_err_symbols.in cpp_sig_symbols.in cpp_cnvt.awk coop-threads.h.cygnus \
176 coop-threads.c.cygnus mit-pthreads.h mit-pthreads.c fsu-pthreads.h
733943b9
TT
177
178SUFFIXES = .x
179
180MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
ee78fbb0 181
9159ebec
TP
182MOSTLYCLEANFILES = \
183 cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \
67ec3667 184 cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
9159ebec
TP
185
186CLEANFILES = versiondat.h libpath.h
187
188DISTCLEANFILES = *.x
b1e9e9d1 189mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
733943b9 190CONFIG_HEADER = scmconfig.h
c02daa09 191CONFIG_CLEAN_FILES = guile-snarf versiondat.h
e13d8dc0 192LTLIBRARIES = $(lib_LTLIBRARIES)
733943b9
TT
193
194
195DEFS = @DEFS@ -I. -I$(srcdir) -I.
196CPPFLAGS = @CPPFLAGS@
197LDFLAGS = @LDFLAGS@
198LIBS = @LIBS@
4b422a5a
JB
199libguile_la_OBJECTS = alist.lo arbiters.lo async.lo backtrace.lo \
200boolean.lo chars.lo continuations.lo debug.lo dynl.lo dynwind.lo eq.lo \
201error.lo eval.lo feature.lo filesys.lo fluids.lo fports.lo gc.lo \
202gdbint.lo genio.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo \
203gh_io.lo gh_list.lo gh_predicates.lo gsubr.lo hash.lo hashtab.lo \
204init.lo ioext.lo kw.lo list.lo load.lo mallocs.lo markers.lo net_db.lo \
205numbers.lo objects.lo objprop.lo options.lo pairs.lo ports.lo posix.lo \
206print.lo procprop.lo procs.lo ramap.lo read.lo readline.lo root.lo \
207scmsigs.lo script.lo simpos.lo smob.lo socket.lo srcprop.lo stackchk.lo \
208stacks.lo stime.lo strings.lo strop.lo strorder.lo strports.lo \
209struct.lo symbols.lo tag.lo throw.lo unif.lo variable.lo vectors.lo \
210version.lo vports.lo weaks.lo
0487b82f
JB
211PROGRAMS = $(bin_PROGRAMS)
212
213guile_OBJECTS = guile.o
214guile_DEPENDENCIES = libguile.la
215guile_LDFLAGS =
ee2a8b9b
JB
216gh_test_c_OBJECTS = gh_test_c.o
217gh_test_c_DEPENDENCIES = libguile.la
218gh_test_c_LDFLAGS =
219gh_test_repl_OBJECTS = gh_test_repl.o
220gh_test_repl_DEPENDENCIES = libguile.la
221gh_test_repl_LDFLAGS =
adb75a41
TT
222SCRIPTS = $(bin_SCRIPTS)
223
733943b9
TT
224CFLAGS = @CFLAGS@
225COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
e13d8dc0 226LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
de185a27 227LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
733943b9
TT
228DATA = $(modinclude_DATA)
229
7bfd3b9e 230HEADERS = $(include_HEADERS) $(modinclude_HEADERS) $(noinst_HEADERS) \
ee2a8b9b 231$(pkginclude_HEADERS)
733943b9 232
4a5fa91c 233DIST_COMMON = COPYING ChangeLog Makefile.am Makefile.in guile-snarf.in \
c02daa09 234scmconfig.h.in stamp-h.in versiondat.h.in
733943b9
TT
235
236
e13d8dc0 237DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
733943b9 238
2fe609e0 239TAR = tar
e13d8dc0 240GZIP = --best
5bab3ef8
JB
241DEP_FILES = .deps/alist.P .deps/alloca.P .deps/arbiters.P .deps/async.P \
242.deps/backtrace.P .deps/boolean.P .deps/chars.P .deps/continuations.P \
243.deps/cpp_err_symbols .deps/cpp_sig_symbols .deps/debug.P .deps/dynl.P \
244.deps/dynwind.P .deps/eq.P .deps/error.P .deps/eval.P .deps/feature.P \
245.deps/filesys.P .deps/fluids.P .deps/fports.P .deps/gc.P .deps/gdbint.P \
246.deps/genio.P .deps/gh_data.P .deps/gh_eval.P .deps/gh_funcs.P \
247.deps/gh_init.P .deps/gh_io.P .deps/gh_list.P .deps/gh_predicates.P \
248.deps/gh_test_c.P .deps/gh_test_repl.P .deps/gsubr.P .deps/guile.P \
249.deps/hash.P .deps/hashtab.P .deps/inet_aton.P .deps/init.P \
250.deps/ioext.P .deps/iselect.P .deps/kw.P .deps/list.P .deps/load.P \
251.deps/mallocs.P .deps/markers.P .deps/net_db.P .deps/numbers.P \
252.deps/objects.P .deps/objprop.P .deps/options.P .deps/pairs.P \
253.deps/ports.P .deps/posix.P .deps/print.P .deps/procprop.P \
254.deps/procs.P .deps/putenv.P .deps/ramap.P .deps/read.P \
255.deps/readline.P .deps/regex-posix.P .deps/root.P .deps/scmsigs.P \
256.deps/script.P .deps/simpos.P .deps/smob.P .deps/socket.P \
257.deps/srcprop.P .deps/stackchk.P .deps/stacks.P .deps/stime.P \
258.deps/strerror.P .deps/strings.P .deps/strop.P .deps/strorder.P \
259.deps/strports.P .deps/struct.P .deps/symbols.P .deps/tag.P \
260.deps/threads.P .deps/throw.P .deps/unif.P .deps/variable.P \
261.deps/vectors.P .deps/version.P .deps/vports.P .deps/weaks.P
0487b82f
JB
262SOURCES = $(libguile_la_SOURCES) $(EXTRA_libguile_la_SOURCES) $(guile_SOURCES) $(gh_test_c_SOURCES) $(gh_test_repl_SOURCES)
263OBJECTS = $(libguile_la_OBJECTS) $(guile_OBJECTS) $(gh_test_c_OBJECTS) $(gh_test_repl_OBJECTS)
733943b9 264
5798fd97 265all: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) $(HEADERS) scmconfig.h
0f2d19dd 266
733943b9 267.SUFFIXES:
341eaef0 268.SUFFIXES: .S .c .lo .o .s .x
5798fd97 269$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
b1e9e9d1 270 cd $(top_srcdir) && $(AUTOMAKE) --foreign libguile/Makefile
84da179f 271
5798fd97 272Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
84da179f 273 cd $(top_builddir) \
b1e9e9d1 274 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
84da179f 275
733943b9 276
de185a27 277scmconfig.h: stamp-h
cbab9700 278 @:
de185a27 279stamp-h: $(srcdir)/scmconfig.h.in $(top_builddir)/config.status
733943b9 280 cd $(top_builddir) \
de185a27 281 && CONFIG_FILES= CONFIG_HEADERS=libguile/scmconfig.h \
733943b9
TT
282 $(SHELL) ./config.status
283 @echo timestamp > stamp-h
de185a27 284$(srcdir)/scmconfig.h.in: @MAINT@$(srcdir)/stamp-h.in
b1e9e9d1 285$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
e13d8dc0 286 cd $(top_srcdir) && $(AUTOHEADER)
cbab9700 287 @echo timestamp > $(srcdir)/stamp-h.in
733943b9
TT
288
289mostlyclean-hdr:
290
291clean-hdr:
292
293distclean-hdr:
7370e377 294 -rm -f scmconfig.h
733943b9
TT
295
296maintainer-clean-hdr:
adb75a41 297guile-snarf: $(top_builddir)/config.status guile-snarf.in
3f622d2b 298 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
c02daa09
JB
299versiondat.h: $(top_builddir)/config.status versiondat.h.in
300 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
733943b9 301
e13d8dc0 302mostlyclean-libLTLIBRARIES:
733943b9 303
e13d8dc0 304clean-libLTLIBRARIES:
7370e377 305 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
733943b9 306
e13d8dc0 307distclean-libLTLIBRARIES:
733943b9 308
e13d8dc0 309maintainer-clean-libLTLIBRARIES:
733943b9 310
e13d8dc0
JB
311install-libLTLIBRARIES: $(lib_LTLIBRARIES)
312 @$(NORMAL_INSTALL)
5798fd97 313 $(mkinstalldirs) $(DESTDIR)$(libdir)
e13d8dc0 314 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
733943b9 315 if test -f $$p; then \
5798fd97
MD
316 echo "$(LIBTOOL) --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
317 $(LIBTOOL) --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
733943b9 318 else :; fi; \
0f7876f5
JB
319 done
320
e13d8dc0 321uninstall-libLTLIBRARIES:
5798fd97 322 @$(NORMAL_UNINSTALL)
e13d8dc0 323 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
5798fd97 324 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
0f2d19dd
JB
325 done
326
341eaef0
GH
327.s.o:
328 $(COMPILE) -c $<
329
330.S.o:
331 $(COMPILE) -c $<
332
733943b9 333mostlyclean-compile:
5798fd97 334 -rm -f *.o core *.core
733943b9
TT
335
336clean-compile:
337
338distclean-compile:
7370e377 339 -rm -f *.tab.c
733943b9
TT
340
341maintainer-clean-compile:
733943b9 342
341eaef0
GH
343.s.lo:
344 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
345
346.S.lo:
347 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
348
1bb9f4db 349mostlyclean-libtool:
7370e377 350 -rm -f *.lo
1bb9f4db
MV
351
352clean-libtool:
341eaef0 353 -rm -rf .libs _libs
1bb9f4db
MV
354
355distclean-libtool:
356
357maintainer-clean-libtool:
1bb9f4db
MV
358
359libguile.la: $(libguile_la_OBJECTS) $(libguile_la_DEPENDENCIES)
ee2a8b9b
JB
360 $(LINK) -rpath $(libdir) $(libguile_la_LDFLAGS) $(libguile_la_OBJECTS) $(libguile_la_LIBADD) $(LIBS)
361
0487b82f
JB
362mostlyclean-binPROGRAMS:
363
364clean-binPROGRAMS:
7370e377 365 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
0487b82f
JB
366
367distclean-binPROGRAMS:
368
369maintainer-clean-binPROGRAMS:
370
371install-binPROGRAMS: $(bin_PROGRAMS)
372 @$(NORMAL_INSTALL)
5798fd97 373 $(mkinstalldirs) $(DESTDIR)$(bindir)
0487b82f
JB
374 @list='$(bin_PROGRAMS)'; for p in $$list; do \
375 if test -f $$p; then \
5798fd97
MD
376 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
377 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
0487b82f
JB
378 else :; fi; \
379 done
380
381uninstall-binPROGRAMS:
5798fd97 382 @$(NORMAL_UNINSTALL)
0487b82f 383 list='$(bin_PROGRAMS)'; for p in $$list; do \
5798fd97 384 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
0487b82f
JB
385 done
386
ee2a8b9b
JB
387mostlyclean-checkPROGRAMS:
388
389clean-checkPROGRAMS:
7370e377 390 -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
ee2a8b9b
JB
391
392distclean-checkPROGRAMS:
393
394maintainer-clean-checkPROGRAMS:
395
0487b82f
JB
396guile: $(guile_OBJECTS) $(guile_DEPENDENCIES)
397 @rm -f guile
398 $(LINK) $(guile_LDFLAGS) $(guile_OBJECTS) $(guile_LDADD) $(LIBS)
399
ee2a8b9b
JB
400gh_test_c: $(gh_test_c_OBJECTS) $(gh_test_c_DEPENDENCIES)
401 @rm -f gh_test_c
402 $(LINK) $(gh_test_c_LDFLAGS) $(gh_test_c_OBJECTS) $(gh_test_c_LDADD) $(LIBS)
403
404gh_test_repl: $(gh_test_repl_OBJECTS) $(gh_test_repl_DEPENDENCIES)
405 @rm -f gh_test_repl
406 $(LINK) $(gh_test_repl_LDFLAGS) $(gh_test_repl_OBJECTS) $(gh_test_repl_LDADD) $(LIBS)
0f2d19dd 407
adb75a41 408install-binSCRIPTS: $(bin_SCRIPTS)
e13d8dc0 409 @$(NORMAL_INSTALL)
5798fd97 410 $(mkinstalldirs) $(DESTDIR)$(bindir)
e13d8dc0 411 @list='$(bin_SCRIPTS)'; for p in $$list; do \
adb75a41 412 if test -f $$p; then \
5798fd97
MD
413 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
414 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
adb75a41 415 else if test -f $(srcdir)/$$p; then \
5798fd97
MD
416 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
417 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
adb75a41
TT
418 else :; fi; fi; \
419 done
420
421uninstall-binSCRIPTS:
5798fd97 422 @$(NORMAL_UNINSTALL)
e13d8dc0 423 list='$(bin_SCRIPTS)'; for p in $$list; do \
5798fd97 424 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
adb75a41
TT
425 done
426
733943b9 427install-modincludeDATA: $(modinclude_DATA)
e13d8dc0 428 @$(NORMAL_INSTALL)
5798fd97 429 $(mkinstalldirs) $(DESTDIR)$(modincludedir)
e13d8dc0 430 @list='$(modinclude_DATA)'; for p in $$list; do \
733943b9 431 if test -f $(srcdir)/$$p; then \
5798fd97
MD
432 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(modincludedir)/$$p"; \
433 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(modincludedir)/$$p; \
733943b9 434 else if test -f $$p; then \
5798fd97
MD
435 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(modincludedir)/$$p"; \
436 $(INSTALL_DATA) $$p $(DESTDIR)$(modincludedir)/$$p; \
733943b9 437 fi; fi; \
60704a73 438 done
733943b9
TT
439
440uninstall-modincludeDATA:
5798fd97 441 @$(NORMAL_UNINSTALL)
e13d8dc0 442 list='$(modinclude_DATA)'; for p in $$list; do \
5798fd97 443 rm -f $(DESTDIR)$(modincludedir)/$$p; \
0f2d19dd
JB
444 done
445
7f52af65 446install-includeHEADERS: $(include_HEADERS)
e13d8dc0 447 @$(NORMAL_INSTALL)
5798fd97 448 $(mkinstalldirs) $(DESTDIR)$(includedir)
e13d8dc0 449 @list='$(include_HEADERS)'; for p in $$list; do \
5798fd97
MD
450 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
451 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
452 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
7f52af65
MD
453 done
454
455uninstall-includeHEADERS:
5798fd97 456 @$(NORMAL_UNINSTALL)
e13d8dc0 457 list='$(include_HEADERS)'; for p in $$list; do \
5798fd97 458 rm -f $(DESTDIR)$(includedir)/$$p; \
7f52af65
MD
459 done
460
ef12d978 461install-modincludeHEADERS: $(modinclude_HEADERS)
e13d8dc0 462 @$(NORMAL_INSTALL)
5798fd97 463 $(mkinstalldirs) $(DESTDIR)$(modincludedir)
e13d8dc0 464 @list='$(modinclude_HEADERS)'; for p in $$list; do \
5798fd97
MD
465 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
466 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(modincludedir)/$$p"; \
467 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(modincludedir)/$$p; \
ef12d978
GH
468 done
469
470uninstall-modincludeHEADERS:
5798fd97 471 @$(NORMAL_UNINSTALL)
e13d8dc0 472 list='$(modinclude_HEADERS)'; for p in $$list; do \
5798fd97 473 rm -f $(DESTDIR)$(modincludedir)/$$p; \
ef12d978
GH
474 done
475
ee2a8b9b
JB
476install-pkgincludeHEADERS: $(pkginclude_HEADERS)
477 @$(NORMAL_INSTALL)
5798fd97 478 $(mkinstalldirs) $(DESTDIR)$(pkgincludedir)
ee2a8b9b 479 @list='$(pkginclude_HEADERS)'; for p in $$list; do \
5798fd97
MD
480 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
481 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgincludedir)/$$p"; \
482 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgincludedir)/$$p; \
ee2a8b9b
JB
483 done
484
485uninstall-pkgincludeHEADERS:
5798fd97 486 @$(NORMAL_UNINSTALL)
ee2a8b9b 487 list='$(pkginclude_HEADERS)'; for p in $$list; do \
5798fd97 488 rm -f $(DESTDIR)$(pkgincludedir)/$$p; \
ee2a8b9b
JB
489 done
490
733943b9
TT
491tags: TAGS
492
341eaef0
GH
493ID: $(HEADERS) $(SOURCES) $(LISP)
494 here=`pwd` && cd $(srcdir) \
495 && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
733943b9 496
341eaef0 497TAGS: $(HEADERS) $(SOURCES) scmconfig.h.in $(TAGS_DEPENDENCIES) $(LISP)
733943b9
TT
498 tags=; \
499 here=`pwd`; \
5798fd97
MD
500 list='$(SOURCES) $(HEADERS)'; \
501 unique=`for i in $$list; do echo $$i; done | \
502 awk ' { files[$$0] = 1; } \
503 END { for (i in files) print i; }'`; \
504 test -z "$(ETAGS_ARGS)scmconfig.h.in$$unique$(LISP)$$tags" \
505 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags scmconfig.h.in $$unique $(LISP) -o $$here/TAGS)
733943b9
TT
506
507mostlyclean-tags:
508
509clean-tags:
510
511distclean-tags:
7370e377 512 -rm -f TAGS ID
733943b9
TT
513
514maintainer-clean-tags:
515
b1e9e9d1
JB
516distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
517
518subdir = libguile
de185a27 519
733943b9 520distdir: $(DISTFILES)
de185a27
JB
521 here=`cd $(top_builddir) && pwd`; \
522 top_distdir=`cd $(top_distdir) && pwd`; \
7370e377 523 distdir=`cd $(distdir) && pwd`; \
de185a27
JB
524 cd $(top_srcdir) \
525 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign libguile/Makefile
733943b9
TT
526 @for file in $(DISTFILES); do \
527 d=$(srcdir); \
528 test -f $(distdir)/$$file \
529 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
530 || cp -p $$d/$$file $(distdir)/$$file; \
531 done
cbab9700
JB
532
533DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
733943b9
TT
534
535-include $(DEP_FILES)
733943b9
TT
536
537mostlyclean-depend:
538
539clean-depend:
540
541distclean-depend:
542
543maintainer-clean-depend:
7370e377 544 -rm -rf .deps
733943b9 545
5798fd97
MD
546%.o: %.c
547 @echo '$(COMPILE) -c $<'; \
548 $(COMPILE) -Wp,-MD,.deps/$(*F).P -c $<
549
550%.lo: %.c
551 @echo '$(LTCOMPILE) -c $<'; \
552 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).p -c $<
0f62a9b3 553 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o:/' \
5798fd97
MD
554 < .deps/$(*F).p > .deps/$(*F).P
555 @-rm -f .deps/$(*F).p
0f2d19dd 556info:
733943b9 557dvi:
ee2a8b9b 558check: all $(check_PROGRAMS)
52f980e4 559 $(MAKE) check-local
733943b9 560installcheck:
0487b82f 561install-exec: install-libLTLIBRARIES install-binPROGRAMS install-binSCRIPTS
e13d8dc0 562 @$(NORMAL_INSTALL)
733943b9 563
ee2a8b9b 564install-data: install-modincludeDATA install-includeHEADERS install-modincludeHEADERS install-pkgincludeHEADERS
e13d8dc0 565 @$(NORMAL_INSTALL)
733943b9
TT
566
567install: install-exec install-data all
568 @:
569
0487b82f 570uninstall: uninstall-libLTLIBRARIES uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-modincludeDATA uninstall-includeHEADERS uninstall-modincludeHEADERS uninstall-pkgincludeHEADERS
733943b9 571
733943b9 572install-strip:
cbab9700 573 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
733943b9 574installdirs:
5798fd97
MD
575 $(mkinstalldirs) $(DATADIR)$(libdir) $(DATADIR)$(bindir) \
576 $(DATADIR)$(bindir) $(DATADIR)$(modincludedir) \
577 $(DATADIR)$(includedir) $(DATADIR)$(modincludedir) \
578 $(DATADIR)$(pkgincludedir)
733943b9
TT
579
580
581mostlyclean-generic:
7370e377 582 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
733943b9
TT
583
584clean-generic:
7370e377 585 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
733943b9
TT
586
587distclean-generic:
7370e377
JB
588 -rm -f Makefile $(DISTCLEANFILES)
589 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
590 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
733943b9
TT
591
592maintainer-clean-generic:
7370e377
JB
593 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
594 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
e13d8dc0 595mostlyclean: mostlyclean-hdr mostlyclean-libLTLIBRARIES \
1bb9f4db 596 mostlyclean-compile mostlyclean-libtool \
0487b82f
JB
597 mostlyclean-binPROGRAMS mostlyclean-checkPROGRAMS \
598 mostlyclean-tags mostlyclean-depend mostlyclean-generic
733943b9 599
e13d8dc0 600clean: clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \
0487b82f
JB
601 clean-binPROGRAMS clean-checkPROGRAMS clean-tags \
602 clean-depend clean-generic mostlyclean
733943b9 603
e13d8dc0 604distclean: distclean-hdr distclean-libLTLIBRARIES distclean-compile \
0487b82f
JB
605 distclean-libtool distclean-binPROGRAMS \
606 distclean-checkPROGRAMS distclean-tags distclean-depend \
607 distclean-generic clean
7370e377
JB
608 -rm -f config.status
609 -rm -f libtool
733943b9 610
e13d8dc0 611maintainer-clean: maintainer-clean-hdr maintainer-clean-libLTLIBRARIES \
1bb9f4db 612 maintainer-clean-compile maintainer-clean-libtool \
0487b82f 613 maintainer-clean-binPROGRAMS \
ee2a8b9b
JB
614 maintainer-clean-checkPROGRAMS maintainer-clean-tags \
615 maintainer-clean-depend maintainer-clean-generic \
616 distclean
733943b9
TT
617 @echo "This command is intended for maintainers to use;"
618 @echo "it deletes files that may require special tools to rebuild."
733943b9 619
5798fd97
MD
620.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
621mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
622clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
623uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
624distclean-compile clean-compile maintainer-clean-compile \
625mostlyclean-libtool distclean-libtool clean-libtool \
626maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
627clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
628install-binPROGRAMS mostlyclean-checkPROGRAMS distclean-checkPROGRAMS \
629clean-checkPROGRAMS maintainer-clean-checkPROGRAMS uninstall-binSCRIPTS \
630install-binSCRIPTS uninstall-modincludeDATA install-modincludeDATA \
ee2a8b9b
JB
631uninstall-includeHEADERS install-includeHEADERS \
632uninstall-modincludeHEADERS install-modincludeHEADERS \
633uninstall-pkgincludeHEADERS install-pkgincludeHEADERS tags \
ef12d978
GH
634mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
635distdir mostlyclean-depend distclean-depend clean-depend \
52f980e4
JB
636maintainer-clean-depend info dvi check-local installcheck install-exec \
637install-data install uninstall all installdirs mostlyclean-generic \
638distclean-generic clean-generic maintainer-clean-generic clean \
639mostlyclean distclean maintainer-clean
733943b9 640
0f2d19dd 641
52f980e4
JB
642check-local:
643 echo '(+ 1 2 3)' | ./gh_test_c; echo
644 echo '(+ 1 2 3)' | ./gh_test_repl; echo
645
daa4f38c 646libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
e151bee6
JB
647 @echo "Generating libpath.h..."
648 @rm -f libpath.tmp
649 @echo '/* generated by Makefile */' > libpath.tmp
650 @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp
651 @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(VERSION)"'>>libpath.tmp
652 @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp
653 @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp
654 @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp
655 @echo ' { "top_srcdir", "'"`cd @top_srcdir@; pwd`"'" }, \' \
656 >> libpath.tmp
657 @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp
658 @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp
659 @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp
660 @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp
661 @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp
662 @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp
663 @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp
664 @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp
665 @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp
666 @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp
667 @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp
668 @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp
669 @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp
670 @echo ' { "pkgdatadir", "$(datadir)/@PACKAGE@" }, \' >> libpath.tmp
671 @echo ' { "pkglibdir", "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp
672 @echo ' { "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \
673 >> libpath.tmp
daa4f38c 674 @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp
e151bee6
JB
675 @echo '}' >> libpath.tmp
676 @mv libpath.tmp libpath.h
733943b9 677.c.x:
adb75a41 678 ./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@
733943b9 679
a0e90145
JB
680cpp_err_symbols.c: cpp_err_symbols.in
681 $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \
593d151f
JB
682 cpp_err_symbols.tmp
683 mv cpp_err_symbols.tmp cpp_err_symbols.c
67ec3667 684
a0e90145
JB
685cpp_sig_symbols.c: cpp_sig_symbols.in
686 $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \
593d151f
JB
687 cpp_sig_symbols.tmp
688 mv cpp_sig_symbols.tmp cpp_sig_symbols.c
67ec3667
GH
689
690check_signals:
691 gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \
692 | cut -f2 -d' ' | sort > cpp_sig_symbols_here
a0e90145
JB
693 diff -u $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_here \
694 | egrep '^\+S' \
67ec3667
GH
695 | cut -c2- > cpp_sig_symbols_diff
696 if test -s cpp_sig_symbols_diff ; then \
a0e90145 697 cat $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_diff \
67ec3667
GH
698 | sort > cpp_sig_symbols_new ;\
699 echo "cpp_sig_symbols_new has the following additions:" ;\
700 cat cpp_sig_symbols_diff ;\
701 else echo "No new symbols found."; \
702 fi
703
704check_errnos:
705 gcc -undef -dM -E $(srcdir)/cpp_errno.c | egrep ' E.+' \
706 | cut -f2 -d' ' | sort > cpp_err_symbols_here
a0e90145
JB
707 diff -u $(srcdir)/cpp_err_symbols.in cpp_err_symbols_here \
708 | egrep '^\+E' \
67ec3667
GH
709 | cut -c2- > cpp_err_symbols_diff
710 if test -s cpp_err_symbols_diff ; then \
a0e90145 711 cat $(srcdir)/cpp_err_symbols.in cpp_err_symbols_diff \
67ec3667
GH
712 | sort > cpp_err_symbols_new ;\
713 echo "cpp_err_symbols_new has the following additions:" ;\
714 cat cpp_err_symbols_diff ;\
715 else echo "No new symbols found."; \
716 fi
ee78fbb0 717
733943b9
TT
718# Tell versions [3.59,3.63) of GNU make to not export all variables.
719# Otherwise a system limit (for SysV at least) may be exceeded.
720.NOEXPORT: