Merge threads directory into libguile.
[bpt/guile.git] / libguile / Makefile.in
CommitLineData
e13d8dc0 1# Makefile.in generated automatically by automake 1.1n from Makefile.am
0f2d19dd 2
733943b9
TT
3# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
4# This Makefile.in is free software; the Free Software Foundation
5# gives unlimited permission to copy, distribute and modify it.
0f2d19dd 6
0f2d19dd 7
733943b9 8SHELL = /bin/sh
0f2d19dd 9
733943b9
TT
10srcdir = @srcdir@
11top_srcdir = @top_srcdir@
12VPATH = @srcdir@
13prefix = @prefix@
0f2d19dd
JB
14exec_prefix = @exec_prefix@
15
733943b9
TT
16bindir = @bindir@
17sbindir = @sbindir@
18libexecdir = @libexecdir@
19datadir = @datadir@
20sysconfdir = @sysconfdir@
21sharedstatedir = @sharedstatedir@
22localstatedir = @localstatedir@
a2086f6f 23libdir = @libdir@
733943b9
TT
24infodir = @infodir@
25mandir = @mandir@
a2086f6f 26includedir = @includedir@
733943b9 27oldincludedir = /usr/include
0f2d19dd 28
733943b9
TT
29pkgdatadir = $(datadir)/@PACKAGE@
30pkglibdir = $(libdir)/@PACKAGE@
31pkgincludedir = $(includedir)/@PACKAGE@
0f2d19dd 32
733943b9 33top_builddir = .
0f2d19dd 34
e13d8dc0
JB
35ACLOCAL = @ACLOCAL@
36AUTOCONF = @AUTOCONF@
37AUTOMAKE = @AUTOMAKE@
38AUTOHEADER = @AUTOHEADER@
39
733943b9
TT
40INSTALL = @INSTALL@
41INSTALL_PROGRAM = @INSTALL_PROGRAM@
42INSTALL_DATA = @INSTALL_DATA@
43INSTALL_SCRIPT = @INSTALL_SCRIPT@
44transform = @program_transform_name@
e13d8dc0
JB
45
46NORMAL_INSTALL = true
47PRE_INSTALL = true
48POST_INSTALL = true
49NORMAL_UNINSTALL = true
50PRE_UNINSTALL = true
51POST_UNINSTALL = true
ef12d978 52host_alias = @host_alias@
e13d8dc0 53host_triplet = @host@
ef12d978 54AWK = @AWK@
ef12d978 55CC = @CC@
e13d8dc0
JB
56LIBLOBJS = @LIBLOBJS@
57LIBTOOL = @LIBTOOL@
ef12d978 58MAINT = @MAINT@
ef12d978 59PACKAGE = @PACKAGE@
e13d8dc0
JB
60RANLIB = @RANLIB@
61VERSION = @VERSION@
62module = @module@
63xtra_PLUGIN_guile_libs = @xtra_PLUGIN_guile_libs@
0f2d19dd 64
733943b9 65AUTOMAKE_OPTIONS = foreign
60704a73 66
733943b9 67INCLUDES = -I.. -I$(srcdir)/..
0f2d19dd 68
e13d8dc0 69lib_LTLIBRARIES = libguile.la
ee2a8b9b
JB
70
71libguile_la_SOURCES = \
72 alist.c append.c appinit.c arbiters.c async.c boolean.c chars.c \
73 continuations.c dynl.c dynwind.c eq.c error.c eval.c extchrs.c \
74 feature.c filesys.c fports.c gc.c gdbint.c genio.c gh_data.c gh_eval.c \
75 gh_funcs.c gh_init.c gh_io.c gh_list.c gh_predicates.c gsubr.c hash.c \
76 hashtab.c init.c ioext.c kw.c list.c load.c mallocs.c markers.c \
77 mbstrings.c net_db.c numbers.c objprop.c options.c pairs.c ports.c \
78 posix.c print.c procprop.c procs.c ramap.c read.c root.c scmsigs.c \
79 sequences.c simpos.c smob.c socket.c stackchk.c stime.c strings.c \
80 strop.c strorder.c strports.c struct.c symbols.c tag.c throw.c unif.c \
81 variable.c vectors.c version.c vports.c weaks.c
82EXTRA_libguile_la_SOURCES = _scm.h \
83 backtrace.c stacks.c debug.c srcprop.c \
7bfd3b9e
JB
84 strerror.c inet_aton.c putenv.c \
85 threads.c
86
87noinst_HEADERS = coop-threads.c coop-threads.h coop.c
88
78bda5f3 89libguile_la_DEPENDENCIES = @LIBLOBJS@
e13d8dc0 90libguile_la_LIBADD = @LIBLOBJS@
1bb9f4db 91libguile_la_LDFLAGS = -version-info 0:0 -rpath $(libdir)
0f2d19dd 92
733943b9 93include_HEADERS = libguile.h
0f2d19dd 94
ee2a8b9b
JB
95# These are headers visible as <guile/mumble.h>
96pkginclude_HEADERS = gh.h
97
733943b9
TT
98# These are headers visible as <libguile/mumble.h>.
99modincludedir = $(includedir)/@module@
100modinclude_HEADERS = __scm.h alist.h append.h arbiters.h async.h \
e13d8dc0
JB
101 backtrace.h boolean.h chars.h continuations.h debug.h dynl.h dynwind.h \
102 eq.h error.h eval.h extchrs.h feature.h filesys.h fports.h gc.h \
103 gdb_interface.h gdbint.h genio.h gsubr.h hash.h hashtab.h init.h \
104 ioext.h kw.h list.h load.h mallocs.h markers.h mbstrings.h net_db.h \
105 numbers.h objprop.h options.h pairs.h ports.h posix.h print.h \
106 procprop.h procs.h ramap.h read.h root.h scmhob.h scmsigs.h \
107 sequences.h simpos.h smob.h socket.h srcprop.h stackchk.h stacks.h \
108 stime.h strings.h strop.h strorder.h strports.h struct.h symbols.h \
109 tag.h tags.h throw.h unif.h variable.h vectors.h version.h vports.h \
7bfd3b9e 110 weaks.h snarf.h threads.h coop-defs.h
733943b9
TT
111
112modinclude_DATA = scmconfig.h
113
adb75a41
TT
114bin_SCRIPTS = guile-snarf
115
ee2a8b9b
JB
116THREAD_LIBS = @THREAD_LIBS@
117check_ldadd = libguile.la ${THREAD_LIBS}
118check_PROGRAMS = gh_test_c gh_test_repl
119gh_test_c_SOURCES = gh_test_c.c
120gh_test_c_LDADD = ${check_ldadd}
121gh_test_repl_SOURCES = gh_test_repl.c
122gh_test_repl_LDADD = ${check_ldadd}
123
496f55cd 124EXTRA_DIST = gscm.c gscm.h ChangeLog-scm dynl-dl.c dynl-dld.c dynl-shl.c \
e13d8dc0
JB
125 dynl-vms.c DYNAMIC-LINKING PLUGIN/REQ PLUGIN/guile.config \
126 PLUGIN/guile.libs.in cpp_signal.c cpp_errno.c cpp_err_symbols.in \
7bfd3b9e
JB
127 cpp_sig_symbols.in cpp_cnvt.awk \
128 coop-threads.h.cygnus coop-threads.c.cygnus mit-pthreads.h mit-pthreads.c \
129 fsu-pthreads.h
733943b9
TT
130
131SUFFIXES = .x
132
133MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
ee78fbb0 134
67ec3667
GH
135CLEANFILES=cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \
136 cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
e13d8dc0 137ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
733943b9 138CONFIG_HEADER_IN = scmconfig.h.in
e13d8dc0 139CONFIG_HEADER_FULL = scmconfig.h
733943b9
TT
140mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
141CONFIG_HEADER = scmconfig.h
67ec3667 142CONFIG_CLEAN_FILES = guile-snarf
e13d8dc0 143LTLIBRARIES = $(lib_LTLIBRARIES)
733943b9
TT
144
145
146DEFS = @DEFS@ -I. -I$(srcdir) -I.
147CPPFLAGS = @CPPFLAGS@
148LDFLAGS = @LDFLAGS@
149LIBS = @LIBS@
1bb9f4db 150libguile_la_OBJECTS = alist.lo append.lo appinit.lo arbiters.lo \
9dcf6a02
JB
151async.lo boolean.lo chars.lo continuations.lo dynl.lo dynwind.lo eq.lo \
152error.lo eval.lo extchrs.lo feature.lo filesys.lo fports.lo gc.lo \
ee2a8b9b
JB
153gdbint.lo genio.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo \
154gh_io.lo gh_list.lo gh_predicates.lo gsubr.lo hash.lo hashtab.lo \
155init.lo ioext.lo kw.lo list.lo load.lo mallocs.lo markers.lo \
156mbstrings.lo net_db.lo numbers.lo objprop.lo options.lo pairs.lo \
157ports.lo posix.lo print.lo procprop.lo procs.lo ramap.lo read.lo \
158root.lo scmsigs.lo sequences.lo simpos.lo smob.lo socket.lo stackchk.lo \
159stime.lo strings.lo strop.lo strorder.lo strports.lo struct.lo \
160symbols.lo tag.lo throw.lo unif.lo variable.lo vectors.lo version.lo \
161vports.lo weaks.lo
162gh_test_c_OBJECTS = gh_test_c.o
163gh_test_c_DEPENDENCIES = libguile.la
164gh_test_c_LDFLAGS =
165gh_test_repl_OBJECTS = gh_test_repl.o
166gh_test_repl_DEPENDENCIES = libguile.la
167gh_test_repl_LDFLAGS =
adb75a41
TT
168SCRIPTS = $(bin_SCRIPTS)
169
733943b9
TT
170CFLAGS = @CFLAGS@
171COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
e13d8dc0 172LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
1bb9f4db 173LINK = $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@
733943b9
TT
174DATA = $(modinclude_DATA)
175
7bfd3b9e 176HEADERS = $(include_HEADERS) $(modinclude_HEADERS) $(noinst_HEADERS) \
ee2a8b9b 177$(pkginclude_HEADERS)
733943b9
TT
178
179DIST_COMMON = COPYING ChangeLog Makefile.am Makefile.in acconfig.h \
67ec3667 180acinclude.m4 aclocal.m4 configure configure.in guile-snarf.in \
adb75a41 181scmconfig.h.in stamp-h.in
733943b9
TT
182
183
e13d8dc0 184DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
733943b9
TT
185
186TAR = tar
e13d8dc0 187GZIP = --best
733943b9 188DEP_FILES = .deps/alist.P .deps/append.P .deps/appinit.P \
78bda5f3
MV
189.deps/arbiters.P .deps/async.P .deps/backtrace.P .deps/boolean.P \
190.deps/chars.P .deps/continuations.P .deps/debug.P .deps/dynl.P \
191.deps/dynwind.P .deps/eq.P .deps/error.P .deps/eval.P .deps/extchrs.P \
192.deps/feature.P .deps/filesys.P .deps/fports.P .deps/gc.P \
ee2a8b9b
JB
193.deps/gdbint.P .deps/genio.P .deps/gh_data.P .deps/gh_eval.P \
194.deps/gh_funcs.P .deps/gh_init.P .deps/gh_io.P .deps/gh_list.P \
195.deps/gh_predicates.P .deps/gh_test_c.P .deps/gh_test_repl.P \
196.deps/gsubr.P .deps/hash.P .deps/hashtab.P .deps/inet_aton.P \
197.deps/init.P .deps/ioext.P .deps/kw.P .deps/list.P .deps/load.P \
198.deps/mallocs.P .deps/markers.P .deps/mbstrings.P .deps/net_db.P \
199.deps/numbers.P .deps/objprop.P .deps/options.P .deps/pairs.P \
200.deps/ports.P .deps/posix.P .deps/print.P .deps/procprop.P \
201.deps/procs.P .deps/putenv.P .deps/ramap.P .deps/read.P .deps/root.P \
202.deps/scmsigs.P .deps/sequences.P .deps/simpos.P .deps/smob.P \
203.deps/socket.P .deps/srcprop.P .deps/stackchk.P .deps/stacks.P \
204.deps/stime.P .deps/strerror.P .deps/strings.P .deps/strop.P \
205.deps/strorder.P .deps/strports.P .deps/struct.P .deps/symbols.P \
7bfd3b9e
JB
206.deps/tag.P .deps/threads.P .deps/throw.P .deps/unif.P .deps/variable.P \
207.deps/vectors.P .deps/version.P .deps/vports.P .deps/weaks.P
ee2a8b9b
JB
208SOURCES = $(libguile_la_SOURCES) $(EXTRA_libguile_la_SOURCES) $(gh_test_c_SOURCES) $(gh_test_repl_SOURCES)
209OBJECTS = $(libguile_la_OBJECTS) $(gh_test_c_OBJECTS) $(gh_test_repl_OBJECTS)
733943b9
TT
210
211default: all
0f2d19dd 212
733943b9 213.SUFFIXES:
1bb9f4db 214.SUFFIXES: .c .o .lo .x
e13d8dc0
JB
215$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
216 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
84da179f
MG
217
218Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
219 cd $(top_builddir) \
220 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
221
e13d8dc0
JB
222$(srcdir)/aclocal.m4: @MAINT@ configure.in acinclude.m4
223 cd $(srcdir) && $(ACLOCAL)
733943b9 224
733943b9
TT
225config.status: configure
226 $(SHELL) ./config.status --recheck
e13d8dc0
JB
227$(srcdir)/configure: @MAINT@configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
228 cd $(srcdir) && $(AUTOCONF)
733943b9
TT
229
230$(CONFIG_HEADER): stamp-h
231stamp-h: $(CONFIG_HEADER_IN) $(top_builddir)/config.status
232 cd $(top_builddir) \
e13d8dc0 233 && CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER_FULL) \
733943b9
TT
234 $(SHELL) ./config.status
235 @echo timestamp > stamp-h
15ae1bee 236$(srcdir)/$(CONFIG_HEADER_IN): @MAINT@stamp-h.in
e13d8dc0
JB
237$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
238 cd $(top_srcdir) && $(AUTOHEADER)
733943b9
TT
239 echo timestamp > $(srcdir)/stamp-h.in
240
241mostlyclean-hdr:
242
243clean-hdr:
244
245distclean-hdr:
246 rm -f $(CONFIG_HEADER)
247
248maintainer-clean-hdr:
adb75a41
TT
249guile-snarf: $(top_builddir)/config.status guile-snarf.in
250 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
733943b9 251
e13d8dc0 252mostlyclean-libLTLIBRARIES:
733943b9 253
e13d8dc0
JB
254clean-libLTLIBRARIES:
255 test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
733943b9 256
e13d8dc0 257distclean-libLTLIBRARIES:
733943b9 258
e13d8dc0 259maintainer-clean-libLTLIBRARIES:
733943b9 260
e13d8dc0
JB
261install-libLTLIBRARIES: $(lib_LTLIBRARIES)
262 @$(NORMAL_INSTALL)
733943b9 263 $(mkinstalldirs) $(libdir)
e13d8dc0 264 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
733943b9 265 if test -f $$p; then \
e13d8dc0
JB
266 echo "$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(libdir)/$$p"; \
267 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(libdir)/$$p; \
733943b9 268 else :; fi; \
0f7876f5
JB
269 done
270
e13d8dc0
JB
271uninstall-libLTLIBRARIES:
272 $(NORMAL_UNINSTALL)
273 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
274 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$$p; \
0f2d19dd
JB
275 done
276
733943b9
TT
277.c.o:
278 $(COMPILE) -c $<
279
280mostlyclean-compile:
281 rm -f *.o core
282
283clean-compile:
284
285distclean-compile:
286 rm -f *.tab.c
287
288maintainer-clean-compile:
733943b9 289
1bb9f4db
MV
290.c.lo:
291 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
292
293mostlyclean-libtool:
294 rm -f *.lo
295
296clean-libtool:
297 rm -rf .libs
298
299distclean-libtool:
300
301maintainer-clean-libtool:
1bb9f4db
MV
302
303libguile.la: $(libguile_la_OBJECTS) $(libguile_la_DEPENDENCIES)
ee2a8b9b
JB
304 $(LINK) -rpath $(libdir) $(libguile_la_LDFLAGS) $(libguile_la_OBJECTS) $(libguile_la_LIBADD) $(LIBS)
305
306mostlyclean-checkPROGRAMS:
307
308clean-checkPROGRAMS:
309 test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
310
311distclean-checkPROGRAMS:
312
313maintainer-clean-checkPROGRAMS:
314
315gh_test_c: $(gh_test_c_OBJECTS) $(gh_test_c_DEPENDENCIES)
316 @rm -f gh_test_c
317 $(LINK) $(gh_test_c_LDFLAGS) $(gh_test_c_OBJECTS) $(gh_test_c_LDADD) $(LIBS)
318
319gh_test_repl: $(gh_test_repl_OBJECTS) $(gh_test_repl_DEPENDENCIES)
320 @rm -f gh_test_repl
321 $(LINK) $(gh_test_repl_LDFLAGS) $(gh_test_repl_OBJECTS) $(gh_test_repl_LDADD) $(LIBS)
0f2d19dd 322
adb75a41 323install-binSCRIPTS: $(bin_SCRIPTS)
e13d8dc0 324 @$(NORMAL_INSTALL)
adb75a41 325 $(mkinstalldirs) $(bindir)
e13d8dc0 326 @list='$(bin_SCRIPTS)'; for p in $$list; do \
adb75a41 327 if test -f $$p; then \
e13d8dc0 328 echo " $(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
adb75a41
TT
329 $(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
330 else if test -f $(srcdir)/$$p; then \
e13d8dc0 331 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
f9d81b6b 332 $(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/`echo $$p|sed '$(transform)'`; \
adb75a41
TT
333 else :; fi; fi; \
334 done
335
336uninstall-binSCRIPTS:
e13d8dc0
JB
337 $(NORMAL_UNINSTALL)
338 list='$(bin_SCRIPTS)'; for p in $$list; do \
adb75a41
TT
339 rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
340 done
341
733943b9 342install-modincludeDATA: $(modinclude_DATA)
e13d8dc0 343 @$(NORMAL_INSTALL)
733943b9 344 $(mkinstalldirs) $(modincludedir)
e13d8dc0 345 @list='$(modinclude_DATA)'; for p in $$list; do \
733943b9 346 if test -f $(srcdir)/$$p; then \
e13d8dc0 347 echo " $(INSTALL_DATA) $(srcdir)/$$p $(modincludedir)/$$p"; \
733943b9
TT
348 $(INSTALL_DATA) $(srcdir)/$$p $(modincludedir)/$$p; \
349 else if test -f $$p; then \
e13d8dc0 350 echo " $(INSTALL_DATA) $$p $(modincludedir)/$$p"; \
733943b9
TT
351 $(INSTALL_DATA) $$p $(modincludedir)/$$p; \
352 fi; fi; \
60704a73 353 done
733943b9
TT
354
355uninstall-modincludeDATA:
e13d8dc0
JB
356 $(NORMAL_UNINSTALL)
357 list='$(modinclude_DATA)'; for p in $$list; do \
733943b9 358 rm -f $(modincludedir)/$$p; \
0f2d19dd
JB
359 done
360
7f52af65 361install-includeHEADERS: $(include_HEADERS)
e13d8dc0 362 @$(NORMAL_INSTALL)
7f52af65 363 $(mkinstalldirs) $(includedir)
e13d8dc0
JB
364 @list='$(include_HEADERS)'; for p in $$list; do \
365 echo " $(INSTALL_DATA) $(srcdir)/$$p $(includedir)/$$p"; \
7f52af65
MD
366 $(INSTALL_DATA) $(srcdir)/$$p $(includedir)/$$p; \
367 done
368
369uninstall-includeHEADERS:
e13d8dc0
JB
370 $(NORMAL_UNINSTALL)
371 list='$(include_HEADERS)'; for p in $$list; do \
7f52af65
MD
372 rm -f $(includedir)/$$p; \
373 done
374
ef12d978 375install-modincludeHEADERS: $(modinclude_HEADERS)
e13d8dc0 376 @$(NORMAL_INSTALL)
ef12d978 377 $(mkinstalldirs) $(modincludedir)
e13d8dc0
JB
378 @list='$(modinclude_HEADERS)'; for p in $$list; do \
379 echo " $(INSTALL_DATA) $(srcdir)/$$p $(modincludedir)/$$p"; \
ef12d978
GH
380 $(INSTALL_DATA) $(srcdir)/$$p $(modincludedir)/$$p; \
381 done
382
383uninstall-modincludeHEADERS:
e13d8dc0
JB
384 $(NORMAL_UNINSTALL)
385 list='$(modinclude_HEADERS)'; for p in $$list; do \
ef12d978
GH
386 rm -f $(modincludedir)/$$p; \
387 done
388
ee2a8b9b
JB
389install-pkgincludeHEADERS: $(pkginclude_HEADERS)
390 @$(NORMAL_INSTALL)
391 $(mkinstalldirs) $(pkgincludedir)
392 @list='$(pkginclude_HEADERS)'; for p in $$list; do \
393 echo " $(INSTALL_DATA) $(srcdir)/$$p $(pkgincludedir)/$$p"; \
394 $(INSTALL_DATA) $(srcdir)/$$p $(pkgincludedir)/$$p; \
395 done
396
397uninstall-pkgincludeHEADERS:
398 $(NORMAL_UNINSTALL)
399 list='$(pkginclude_HEADERS)'; for p in $$list; do \
400 rm -f $(pkgincludedir)/$$p; \
401 done
402
733943b9
TT
403tags: TAGS
404
405ID: $(HEADERS) $(SOURCES)
406 here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
407
408TAGS: $(HEADERS) $(SOURCES) scmconfig.h.in $(TAGS_DEPENDENCIES)
409 tags=; \
410 here=`pwd`; \
e13d8dc0 411 list='$(SUBDIRS)'; for subdir in $$list; do \
733943b9
TT
412 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
413 done; \
414 test -z "$(ETAGS_ARGS)scmconfig.h.in$(SOURCES)$(HEADERS)$$tags" \
e13d8dc0 415 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags scmconfig.h.in $(SOURCES) $(HEADERS) -o $$here/TAGS)
733943b9
TT
416
417mostlyclean-tags:
418
419clean-tags:
420
421distclean-tags:
422 rm -f TAGS ID
423
424maintainer-clean-tags:
425
426distdir = $(PACKAGE)-$(VERSION)
427# This target untars the dist file and tries a VPATH configuration. Then
428# it guarantees that the distribution is self-contained by making another
429# tarfile.
430distcheck: dist
431 rm -rf $(distdir)
e13d8dc0 432 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
733943b9
TT
433 mkdir $(distdir)/=build
434 mkdir $(distdir)/=inst
435 dc_install_base=`cd $(distdir)/=inst && pwd`; \
436 cd $(distdir)/=build \
437 && ../configure --srcdir=.. --prefix=$$dc_install_base \
438 && $(MAKE) \
439 && $(MAKE) dvi \
440 && $(MAKE) check \
441 && $(MAKE) install \
442 && $(MAKE) installcheck \
443 && $(MAKE) dist
444 rm -rf $(distdir)
445 @echo "========================"; \
446 echo "$(distdir).tar.gz is ready for distribution"; \
447 echo "========================"
448dist: distdir
449 -chmod -R a+r $(distdir)
e13d8dc0 450 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
733943b9
TT
451 rm -rf $(distdir)
452dist-all: distdir
453 -chmod -R a+r $(distdir)
e13d8dc0 454 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
733943b9
TT
455 rm -rf $(distdir)
456distdir: $(DISTFILES)
457 rm -rf $(distdir)
458 mkdir $(distdir)
459 -chmod 755 $(distdir)
460 here=`pwd`; distdir=`cd $(distdir) && pwd` \
461 && cd $(srcdir) \
e13d8dc0 462 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(srcdir) --output-dir=$$distdir --foreign
733943b9
TT
463 $(mkinstalldirs) $(distdir)/PLUGIN
464 @for file in $(DISTFILES); do \
465 d=$(srcdir); \
466 test -f $(distdir)/$$file \
467 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
468 || cp -p $$d/$$file $(distdir)/$$file; \
469 done
470.deps/.P:
471 test -d .deps || mkdir .deps
472 echo > $@
473
474-include $(DEP_FILES)
475$(DEP_FILES): .deps/.P
476
477mostlyclean-depend:
478
479clean-depend:
480
481distclean-depend:
482
483maintainer-clean-depend:
484 rm -rf .deps
485
f9d81b6b 486.deps/%.P: $(srcdir)/%.c
733943b9 487 @echo "Computing dependencies for $<..."
84da179f 488 @o='o'; \
f9d81b6b 489 test -n "$o" && o='$$o'; \
e13d8dc0 490 $(MKDEP) $< | sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," > $@
0f2d19dd 491info:
733943b9 492dvi:
ee2a8b9b 493check: all $(check_PROGRAMS)
733943b9
TT
494 $(MAKE)
495installcheck:
e13d8dc0
JB
496install-exec: install-libLTLIBRARIES install-binSCRIPTS
497 @$(NORMAL_INSTALL)
733943b9 498
ee2a8b9b 499install-data: install-modincludeDATA install-includeHEADERS install-modincludeHEADERS install-pkgincludeHEADERS
e13d8dc0 500 @$(NORMAL_INSTALL)
733943b9
TT
501
502install: install-exec install-data all
503 @:
504
ee2a8b9b 505uninstall: uninstall-libLTLIBRARIES uninstall-binSCRIPTS uninstall-modincludeDATA uninstall-includeHEADERS uninstall-modincludeHEADERS uninstall-pkgincludeHEADERS
733943b9 506
e13d8dc0 507all: $(LTLIBRARIES) $(SCRIPTS) $(DATA) $(HEADERS) Makefile scmconfig.h
733943b9
TT
508
509install-strip:
510 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
511installdirs:
ef12d978 512 $(mkinstalldirs) $(libdir) $(bindir) $(modincludedir) $(includedir) \
ee2a8b9b 513 $(modincludedir) $(pkgincludedir)
733943b9
TT
514
515
516mostlyclean-generic:
517 test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
518
519clean-generic:
520 test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
521
522distclean-generic:
523 rm -f Makefile $(DISTCLEANFILES)
524 rm -f config.cache config.log stamp-h
525 test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
526
527maintainer-clean-generic:
528 test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
529 test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
e13d8dc0 530mostlyclean: mostlyclean-hdr mostlyclean-libLTLIBRARIES \
1bb9f4db 531 mostlyclean-compile mostlyclean-libtool \
ee2a8b9b
JB
532 mostlyclean-checkPROGRAMS mostlyclean-tags \
533 mostlyclean-depend mostlyclean-generic
733943b9 534
e13d8dc0 535clean: clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \
ee2a8b9b
JB
536 clean-checkPROGRAMS clean-tags clean-depend \
537 clean-generic mostlyclean
733943b9 538
e13d8dc0 539distclean: distclean-hdr distclean-libLTLIBRARIES distclean-compile \
ee2a8b9b
JB
540 distclean-libtool distclean-checkPROGRAMS \
541 distclean-tags distclean-depend distclean-generic clean
733943b9 542 rm -f config.status
1bb9f4db 543 rm -f libtool
733943b9 544
e13d8dc0 545maintainer-clean: maintainer-clean-hdr maintainer-clean-libLTLIBRARIES \
1bb9f4db 546 maintainer-clean-compile maintainer-clean-libtool \
ee2a8b9b
JB
547 maintainer-clean-checkPROGRAMS maintainer-clean-tags \
548 maintainer-clean-depend maintainer-clean-generic \
549 distclean
733943b9
TT
550 @echo "This command is intended for maintainers to use;"
551 @echo "it deletes files that may require special tools to rebuild."
552 rm -f config.status
553
554.PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
e13d8dc0
JB
555maintainer-clean-hdr mostlyclean-libLTLIBRARIES \
556distclean-libLTLIBRARIES clean-libLTLIBRARIES \
557maintainer-clean-libLTLIBRARIES uninstall-libLTLIBRARIES \
558install-libLTLIBRARIES mostlyclean-compile distclean-compile \
559clean-compile maintainer-clean-compile mostlyclean-libtool \
560distclean-libtool clean-libtool maintainer-clean-libtool \
ee2a8b9b
JB
561mostlyclean-checkPROGRAMS distclean-checkPROGRAMS clean-checkPROGRAMS \
562maintainer-clean-checkPROGRAMS uninstall-binSCRIPTS install-binSCRIPTS \
563uninstall-modincludeDATA install-modincludeDATA \
564uninstall-includeHEADERS install-includeHEADERS \
565uninstall-modincludeHEADERS install-modincludeHEADERS \
566uninstall-pkgincludeHEADERS install-pkgincludeHEADERS tags \
ef12d978
GH
567mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
568distdir mostlyclean-depend distclean-depend clean-depend \
adb75a41
TT
569maintainer-clean-depend info dvi installcheck install-exec install-data \
570install uninstall all installdirs mostlyclean-generic distclean-generic \
571clean-generic maintainer-clean-generic clean mostlyclean distclean \
572maintainer-clean
733943b9 573
0f2d19dd 574
733943b9
TT
575libpath.h: Makefile
576 echo '/* generated by Makefile */' > libpath.h
f8d0b192
JB
577 echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.h
578 echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(VERSION)"' >> libpath.h
579 echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.h
733943b9 580.c.x:
adb75a41 581 ./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@
733943b9 582
a0e90145
JB
583cpp_err_symbols.c: cpp_err_symbols.in
584 $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \
67ec3667
GH
585 cpp_err_symbols.c
586
a0e90145
JB
587cpp_sig_symbols.c: cpp_sig_symbols.in
588 $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \
67ec3667
GH
589 cpp_sig_symbols.c
590
591check_signals:
592 gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \
593 | cut -f2 -d' ' | sort > cpp_sig_symbols_here
a0e90145
JB
594 diff -u $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_here \
595 | egrep '^\+S' \
67ec3667
GH
596 | cut -c2- > cpp_sig_symbols_diff
597 if test -s cpp_sig_symbols_diff ; then \
a0e90145 598 cat $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_diff \
67ec3667
GH
599 | sort > cpp_sig_symbols_new ;\
600 echo "cpp_sig_symbols_new has the following additions:" ;\
601 cat cpp_sig_symbols_diff ;\
602 else echo "No new symbols found."; \
603 fi
604
605check_errnos:
606 gcc -undef -dM -E $(srcdir)/cpp_errno.c | egrep ' E.+' \
607 | cut -f2 -d' ' | sort > cpp_err_symbols_here
a0e90145
JB
608 diff -u $(srcdir)/cpp_err_symbols.in cpp_err_symbols_here \
609 | egrep '^\+E' \
67ec3667
GH
610 | cut -c2- > cpp_err_symbols_diff
611 if test -s cpp_err_symbols_diff ; then \
a0e90145 612 cat $(srcdir)/cpp_err_symbols.in cpp_err_symbols_diff \
67ec3667
GH
613 | sort > cpp_err_symbols_new ;\
614 echo "cpp_err_symbols_new has the following additions:" ;\
615 cat cpp_err_symbols_diff ;\
616 else echo "No new symbols found."; \
617 fi
ee78fbb0 618
733943b9
TT
619# Tell versions [3.59,3.63) of GNU make to not export all variables.
620# Otherwise a system limit (for SysV at least) may be exceeded.
621.NOEXPORT: