* validate.h
[bpt/guile.git] / libguile / Makefile.am
index a8b04eb..5a8cc58 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with Automake to create Makefile.in
 ##
-##     Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+##     Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 ##
 ##   This file is part of GUILE.
 ##   
 
 AUTOMAKE_OPTIONS = foreign
 
+## Prevent automake from adding extra -I options
+DEFS = @DEFS@
 ## 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)/.. ${THREAD_CPPFLAGS} $(INCLTDL)
+INCLUDES = -I.. -I$(srcdir)/.. ${INCLTDL}
 
 ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
    --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
@@ -36,70 +38,96 @@ guile_SOURCES = guile.c
 guile_LDADD = libguile.la ${THREAD_LIBS_LOCAL}
 guile_LDFLAGS = @DLPREOPEN@
 
-libguile_la_SOURCES = \
-    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 fluids.c fports.c gc.c gdbint.c        \
-    gh_data.c gh_eval.c gh_funcs.c gh_init.c gh_io.c gh_list.c         \
-    gh_predicates.c gsubr.c guardians.c hash.c hashtab.c init.c                \
-    ioext.c keywords.c lang.c list.c load.c macros.c mallocs.c         \
-    modules.c numbers.c objects.c objprop.c options.c pairs.c  \
-    ports.c print.c procprop.c procs.c random.c read.c \
-    root.c scmsigs.c script.c simpos.c smob.c sort.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 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 gsubr.x                                     \
-    guardians.x hash.x hashtab.x init.x ioext.x iselect.x keywords.x   \
-    lang.x list.x load.x macros.x mallocs.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 random.x ramap.x read.x regex-posix.x   \
-    root.x scmsigs.x script.x simpos.x smob.x socket.x sort.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             \
+libguile_la_SOURCES = alist.c arbiters.c async.c backtrace.c boolean.c     \
+    chars.c continuations.c debug.c deprecation.c dynl.c dynwind.c         \
+    environments.c eq.c error.c eval.c evalext.c extensions.c              \
+    feature.c fluids.c fports.c                                                    \
+    gc.c gc_os_dep.c gdbint.c gh_data.c gh_eval.c gh_funcs.c gh_init.c     \
+    gh_io.c gh_list.c gh_predicates.c goops.c gsubr.c guardians.c hash.c    \
+    hashtab.c hooks.c init.c ioext.c iselect.c keywords.c lang.c list.c            \
+    load.c macros.c mallocs.c modules.c numbers.c objects.c objprop.c      \
+    options.c pairs.c ports.c print.c procprop.c procs.c properties.c      \
+    random.c rdelim.c read.c root.c rw.c scmsigs.c script.c simpos.c smob.c \
+    sort.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 values.c        \
+    variable.c vectors.c version.c vports.c weaks.c symbols-deprecated.c
+
+DOT_X_FILES = alist.x arbiters.x async.x backtrace.x boolean.x chars.x   \
+    continuations.x debug.x deprecation.x dynl.x dynwind.x               \
+    environments.x eq.x                                                          \
+    error.x eval.x evalext.x extensions.x feature.x fluids.x fports.x    \
+    gc.x goops.x                                                         \
+    gsubr.x guardians.x hash.x hashtab.x hooks.x init.x ioext.x iselect.x \
+    keywords.x lang.x list.x load.x macros.x mallocs.x modules.x         \
+    numbers.x objects.x objprop.x options.x pairs.x ports.x print.x      \
+    procprop.x procs.x properties.x random.x rdelim.x read.x root.x rw.x  \
+    scmsigs.x script.x simpos.x smob.x sort.x srcprop.x                          \
+    stackchk.x stacks.x stime.x strings.x strop.x strorder.x strports.x          \
+    struct.x symbols.x tag.x throw.x values.x variable.x vectors.x       \
+    version.x vports.x weaks.x symbols-deprecated.x
+
+EXTRA_DOT_X_FILES = @EXTRA_DOT_X_FILES@
+
+DOT_DOC_FILES = alist.doc arbiters.doc async.doc backtrace.doc             \
+    boolean.doc chars.doc continuations.doc debug.doc dynl.doc             \
+    dynwind.doc environments.doc eq.doc error.doc eval.doc evalext.doc     \
+    extensions.doc feature.doc fluids.doc fports.doc gc.doc goops.doc      \
+    gsubr.doc                                                              \
+    guardians.doc hash.doc hashtab.doc hooks.doc init.doc ioext.doc        \
+    iselect.doc keywords.doc lang.doc list.doc load.doc macros.doc         \
+    mallocs.doc modules.doc numbers.doc objects.doc objprop.doc                    \
+    options.doc pairs.doc ports.doc print.doc procprop.doc                 \
+    procs.doc properties.doc random.doc rdelim.doc read.doc root.doc rw.doc \
+    scmsigs.doc script.doc simpos.doc smob.doc sort.doc                            \
+    srcprop.doc stackchk.doc stacks.doc stime.doc strings.doc strop.doc            \
+    strorder.doc strports.doc struct.doc symbols.doc tag.doc throw.doc     \
+    values.doc variable.doc vectors.doc version.doc vports.doc weaks.doc    \
+    symbols-deprecated.doc
+
+EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@
+
+BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h scmconfig.h \
+    $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) $(DOT_DOC_FILES)
+
+EXTRA_libguile_la_SOURCES = _scm.h                     \
     alloca.c inet_aton.c memmove.c putenv.c strerror.c \
-    threads.c regex-posix.c iselect.c \
-    filesys.c posix.c net_db.c socket.c \
-    ramap.c unif.c
+    threads.c regex-posix.c                            \
+    filesys.c posix.c net_db.c socket.c                        \
+    ramap.c unif.c debug-malloc.c
+
+## In next release, threads will be factored out of libguile.
+## Until then, the machine specific headers is a temporary kludge.
+OMIT_DEPENDENCIES = libguile.h ltdl.h \
+    axp.h hppa.h i386.h ksr.h m88k.h mips.h sparc.h vax.h
 
 ## 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
-## them here.  Perhaps we can deal with them normally once the merge
-## seems to be working.
-noinst_HEADERS = coop-threads.c coop-threads.h coop.c
+## compile, since they are #included.  So instead we list them here.
+## Perhaps we can deal with them normally once the merge seems to be
+## working.
+noinst_HEADERS = coop-threads.c coop-threads.h coop.c num2integral.i.c
 
 libguile_la_DEPENDENCIES = @LIBLOBJS@
 libguile_la_LIBADD = @LIBLOBJS@ $(LIBLTDL)
-libguile_la_LDFLAGS = -version-info 7:0 -export-dynamic
-
-include_HEADERS = libguile.h
+libguile_la_LDFLAGS = -version-info @LIBGUILE_MAJOR_VERSION@:@LIBGUILE_MINOR_VERSION@:@LIBGUILE_REVISION_VERSION@ -export-dynamic
 
 # These are headers visible as <guile/mumble.h> 
 pkginclude_HEADERS = gh.h
 
 # These are headers visible as <libguile/mumble.h>.
 modincludedir = $(includedir)/libguile
-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 guardians.h hash.h hashtab.h init.h       \
-    ioext.h keywords.h kw.h lang.h list.h load.h macros.h mallocs.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 random.h  \
-    ramap.h read.h root.h scmsigs.h validate.h script.h simpos.h smob.h socket.h       \
-    sort.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
+modinclude_HEADERS = __scm.h alist.h arbiters.h async.h backtrace.h boolean.h \
+    chars.h continuations.h coop-defs.h debug.h debug-malloc.h deprecation.h  \
+    dynl.h dynwind.h environments.h eq.h error.h eval.h evalext.h            \
+    extensions.h feature.h filesys.h fluids.h fports.h gc.h                  \
+    gdb_interface.h gdbint.h                                                 \
+    goops.h gsubr.h guardians.h hash.h hashtab.h hooks.h init.h ioext.h              \
+    iselect.h keywords.h lang.h list.h load.h macros.h mallocs.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 properties.h random.h ramap.h    \
+    rdelim.h read.h root.h rw.h scmsigs.h validate.h script.h simpos.h smob.h \
+    snarf.h socket.h sort.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 threads.h   \
+    throw.h unif.h values.h variable.h vectors.h version.h vports.h weaks.h
 
 ## This file is generated at configure time.  That is why it is DATA
 ## and not a header -- headers are included in the distribution.
@@ -107,21 +135,8 @@ modinclude_DATA = scmconfig.h
 
 bin_SCRIPTS = guile-snarf guile-doc-snarf guile-snarf.awk guile-func-name-check
 
-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}
-gh_test_repl_SOURCES = gh_test_repl.c
-gh_test_repl_LDADD = ${check_ldadd}
-
-check-local:
-       echo '(+ 1 2 3)' | GUILE_LOAD_PATH=${top_srcdir}:.. ./gh_test_c; echo
-       echo '(+ 1 2 3)' | GUILE_LOAD_PATH=${top_srcdir}:.. ./gh_test_repl; echo
-
 EXTRA_DIST = ChangeLog-gh ChangeLog-scm ChangeLog-threads cpp_signal.c \
-    cpp_errno.c cpp_err_symbols.in cpp_sig_symbols.in cpp_cnvt.awk     \
-    coop-threads.h.cygnus coop-threads.c.cygnus mit-pthreads.h         \
-    mit-pthreads.c fsu-pthreads.h
+    cpp_errno.c cpp_err_symbols.in cpp_sig_symbols.in cpp_cnvt.awk
 
 ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
 libpath.h: $(srcdir)/Makefile.in  $(top_builddir)/config.status
@@ -152,6 +167,8 @@ libpath.h: $(srcdir)/Makefile.in  $(top_builddir)/config.status
        @echo ' { "pkglibdir",     "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp
        @echo ' { "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \
                >> libpath.tmp
+       @echo ' { "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp
+       @echo ' { "libguileversion", "@LIBGUILE_VERSION@" }, \' >> libpath.tmp
        @echo ' { "LIBS",          "@GUILE_LIBS@" }, \' >> libpath.tmp
        @echo '}' >> libpath.tmp
        @mv libpath.tmp libpath.h
@@ -161,27 +178,39 @@ libpath.h: $(srcdir)/Makefile.in  $(top_builddir)/config.status
 
 SUFFIXES = .x .doc
 .c.x:
-       PATH=.:${PATH} ./guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
+       ./guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
        || { rm $@; false; }
-.c.doc:
-       PATH=.:${PATH} ./guile-doc-snarf $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< \
+.x.doc:
+       ./guile-doc-snarf $(srcdir)/$*.c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(srcdir)/$*.c > /dev/null \
         || { rm $@; false; }
 
-## GJB:FIXME:: this is ugly;  generate the *.doc files from the *.x file list, above
-guile-procedures.txt: *.doc
-       cat *.doc > $@
+*.x: snarf.h guile-doc-snarf.in
+*.doc: guile-snarf.awk.in
+
+error.x: cpp_err_symbols.c
+posix.x: cpp_sig_symbols.c
+load.x: libpath.h
 
-pkgdata_DATA = guile-procedures.txt
+guile.texi: $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES)
+       echo "@paragraphindent 0" > $@
+       cat *.doc >> $@
+
+guile-procedures.txt: guile.texi
+       rm -f $@
+       makeinfo --force -o $@ $< || test -f $@
+
+schemelibdir = $(pkgdatadir)/$(VERSION)
+schemelib_DATA = guile-procedures.txt
 
 ## Add -MG to make the .x magic work with auto-dep code.
 MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 
-cpp_err_symbols.c: cpp_err_symbols.in
+cpp_err_symbols.c: cpp_err_symbols.in cpp_cnvt.awk
        $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \
                cpp_err_symbols.tmp
        mv cpp_err_symbols.tmp cpp_err_symbols.c
 
-cpp_sig_symbols.c: cpp_sig_symbols.in
+cpp_sig_symbols.c: cpp_sig_symbols.in cpp_cnvt.awk
        $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \
                cpp_sig_symbols.tmp
        mv cpp_sig_symbols.tmp cpp_sig_symbols.c
@@ -221,7 +250,4 @@ MOSTLYCLEANFILES = \
        cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \
        cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
 
-CLEANFILES = libpath.h
-
-DISTCLEANFILES = *.x *.doc
-
+CLEANFILES = libpath.h *.x *.doc