## Process this file with Automake to create Makefile.in
+##
+## Copyright (C) 1998 Free Software Foundation, Inc.
+##
+## This file is part of GUILE.
+##
+## GUILE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as
+## published by the Free Software Foundation; either version 2, or
+## (at your option) any later version.
+##
+## GUILE is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public
+## License along with GUILE; see the file COPYING. If not, write
+## to the Free Software Foundation, Inc., 59 Temple Place, Suite
+## 330, Boston, MA 02111-1307 USA
AUTOMAKE_OPTIONS = foreign
## Check for headers in $(srcdir)/.., so that #include
## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
## building.
-INCLUDES = -I.. -I$(srcdir)/..
+INCLUDES = -I.. -I$(srcdir)/.. ${THREAD_CPPFLAGS}
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(PROC\|PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/'
bin_PROGRAMS = guile
guile_SOURCES = guile.c
-guile_LDADD = libguile.la ${THREAD_LIBS}
+guile_LDADD = libguile.la ${THREAD_LIBS_LOCAL}
libguile_la_SOURCES = \
- alist.c append.c appinit.c arbiters.c async.c boolean.c chars.c \
- continuations.c dynl.c dynwind.c eq.c error.c eval.c extchrs.c \
- feature.c filesys.c fports.c gc.c gdbint.c genio.c gh_data.c gh_eval.c \
- gh_funcs.c gh_init.c gh_io.c gh_list.c gh_predicates.c gsubr.c hash.c \
- hashtab.c init.c ioext.c kw.c list.c load.c mallocs.c markers.c \
- mbstrings.c net_db.c numbers.c objprop.c options.c pairs.c ports.c \
- posix.c print.c procprop.c procs.c ramap.c read.c root.c scmsigs.c \
- script.c sequences.c simpos.c smob.c socket.c stackchk.c stime.c \
+ alist.c arbiters.c async.c backtrace.c boolean.c chars.c \
+ continuations.c debug.c dynl.c dynwind.c eq.c error.c eval.c evalext.c \
+ feature.c filesys.c fluids.c fports.c gc.c gdbint.c genio.c \
+ gh_data.c gh_eval.c gh_funcs.c gh_init.c gh_io.c gh_list.c \
+ gh_predicates.c gsubr.c hash.c hashtab.c init.c ioext.c kw.c \
+ list.c load.c macros.c mallocs.c markers.c modules.c net_db.c \
+ numbers.c objects.c \
+ objprop.c options.c pairs.c ports.c posix.c print.c procprop.c \
+ procs.c ramap.c read.c readline.c root.c scmsigs.c script.c \
+ simpos.c smob.c socket.c srcprop.c stackchk.c stacks.c stime.c \
strings.c strop.c strorder.c strports.c struct.c symbols.c tag.c \
throw.c unif.c variable.c vectors.c version.c vports.c weaks.c
+BUILT_SOURCES = \
+ cpp_err_symbols.c cpp_sig_symbols.c libpath.h \
+ alist.x arbiters.x async.x backtrace.x boolean.x chars.x \
+ continuations.x debug.x dynl.x dynwind.x eq.x error.x eval.x evalext.x \
+ feature.x filesys.x fluids.x fports.x gc.x gdbint.x genio.x \
+ gh_data.x gh_eval.x gh_funcs.x gh_init.x gh_io.x gh_list.x \
+ gh_predicates.x gsubr.x hash.x hashtab.x init.x ioext.x iselect.x \
+ kw.x list.x load.x macros.x mallocs.x markers.x modules.x \
+ net_db.x numbers.x \
+ objects.x objprop.x options.x pairs.x ports.x posix.x print.x \
+ procprop.x procs.x ramap.x read.x readline.x regex-posix.x root.x \
+ scmsigs.x script.x simpos.x smob.x socket.x srcprop.x stackchk.x \
+ stacks.x stime.x strings.x strop.x strorder.x strports.x struct.x \
+ symbols.x tag.x threads.x throw.x unif.x variable.x vectors.x \
+ version.x vports.x weaks.x
+
EXTRA_libguile_la_SOURCES = _scm.h \
- backtrace.c stacks.c debug.c srcprop.c \
strerror.c inet_aton.c putenv.c \
threads.c alloca.c \
- regex-posix.c
+ regex-posix.c iselect.c
## This is kind of nasty... there are ".c" files that we don't want to
## compile, since they are #included in threads.c. So instead we list
noinst_HEADERS = coop-threads.c coop-threads.h coop.c
libguile_la_DEPENDENCIES = @LIBLOBJS@
-libguile_la_LIBADD = @LIBLOBJS@ @ALLOCA@
-libguile_la_LDFLAGS = -version-info 2:0 -rpath $(libdir)
+libguile_la_LIBADD = @LIBLOBJS@
+libguile_la_LDFLAGS = -version-info 4:0 -export-dynamic
include_HEADERS = libguile.h
# These are headers visible as <libguile/mumble.h>.
modincludedir = $(includedir)/libguile
-modinclude_HEADERS = __scm.h alist.h append.h arbiters.h async.h \
- backtrace.h boolean.h chars.h continuations.h debug.h dynl.h dynwind.h \
- eq.h error.h eval.h extchrs.h feature.h filesys.h fports.h gc.h \
- gdb_interface.h gdbint.h genio.h gsubr.h hash.h hashtab.h init.h \
- ioext.h kw.h list.h load.h mallocs.h markers.h mbstrings.h net_db.h \
- numbers.h objprop.h options.h pairs.h ports.h posix.h regex-posix.h print.h \
- procprop.h procs.h ramap.h read.h root.h scmhob.h scmsigs.h script.h \
- sequences.h simpos.h smob.h socket.h srcprop.h stackchk.h stacks.h \
- stime.h strings.h strop.h strorder.h strports.h struct.h symbols.h \
- tag.h tags.h throw.h unif.h variable.h vectors.h version.h vports.h \
- weaks.h snarf.h threads.h coop-defs.h
+modinclude_HEADERS = \
+ __scm.h alist.h arbiters.h async.h backtrace.h boolean.h chars.h \
+ continuations.h debug.h dynl.h dynwind.h eq.h error.h eval.h evalext.h \
+ feature.h filesys.h fports.h gc.h gdb_interface.h gdbint.h genio.h \
+ gsubr.h hash.h hashtab.h init.h ioext.h kw.h list.h load.h \
+ macros.h mallocs.h markers.h modules.h net_db.h numbers.h \
+ objects.h objprop.h \
+ options.h pairs.h ports.h posix.h regex-posix.h print.h procprop.h \
+ procs.h ramap.h read.h readline.h root.h scmsigs.h script.h \
+ simpos.h smob.h socket.h srcprop.h stackchk.h stacks.h stime.h \
+ strings.h strop.h strorder.h strports.h struct.h symbols.h tag.h \
+ tags.h throw.h unif.h variable.h vectors.h version.h vports.h \
+ weaks.h snarf.h threads.h coop-defs.h fluids.h iselect.h
## This file is generated at configure time. That is why it is DATA
## and not a header -- headers are included in the distribution.
bin_SCRIPTS = guile-snarf
-THREAD_LIBS = @THREAD_LIBS@
-check_ldadd = libguile.la ${THREAD_LIBS}
+check_ldadd = libguile.la ${THREAD_LIBS_LOCAL}
check_PROGRAMS = gh_test_c gh_test_repl
gh_test_c_SOURCES = gh_test_c.c
gh_test_c_LDADD = ${check_ldadd}
coop-threads.c.cygnus mit-pthreads.h mit-pthreads.c fsu-pthreads.h
## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
-libpath.h: Makefile
+libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
@echo "Generating libpath.h..."
@rm -f libpath.tmp
@echo '/* generated by Makefile */' > libpath.tmp
@echo ' { "pkglibdir", "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp
@echo ' { "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \
>> libpath.tmp
+ @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp
@echo '}' >> libpath.tmp
@mv libpath.tmp libpath.h
-## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
-versiondat.h: Makefile
- @echo "Generating versiondat.h..."
- @rm -f versiondat.tmp
- @echo '/* generated by Makefile */' > versiondat.tmp
- @echo '#define GUILE_VERSION "$(GUILE_VERSION)"' >> versiondat.tmp
- @echo '#define GUILE_MAJOR_VERSION "$(GUILE_MAJOR_VERSION)"' \
- >> versiondat.tmp
- @echo '#define GUILE_MINOR_VERSION "$(GUILE_MINOR_VERSION)"' \
- >> versiondat.tmp
- @echo '#define GUILE_STAMP "$(GUILE_STAMP)"' >> versiondat.tmp
- @mv versiondat.tmp versiondat.h
-
SUFFIXES = .x
.c.x:
./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@