temporarily disable elisp exception tests
[bpt/guile.git] / libguile / Makefile.am
index db93929..e4420be 100644 (file)
@@ -60,13 +60,12 @@ gen_scmconfig_SOURCES = gen-scmconfig.c
 ## the generated config.h and gen-scmconfig.h.  Nothing else from Guile
 ## is included by this code generator.
 gen-scmconfig.$(OBJEXT): gen-scmconfig.c
-       $(AM_V_GEN)                                             \
-       if [ "$(cross_compiling)" = "yes" ]; then               \
-               $(CC_FOR_BUILD) -DCROSS_COMPILING=1 $(DEFS)     \
-                  $(DEFAULT_INCLUDES) -I$(top_builddir)        \
-                  -c -o "$@" "$<";                             \
-       else                                                    \
-               $(COMPILE) -c -o "$@" "$<";                     \
+       $(AM_V_GEN) \
+       if [ "$(cross_compiling)" = "yes" ]; then \
+               $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) -I$(top_builddir) \
+                  -c -o $@ $<; \
+       else \
+               $(COMPILE) -c -o $@ $<; \
        fi
 
 ## Override default rule; this should run on BUILD host.
@@ -136,6 +135,7 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES =                             \
        debug.c                                 \
        deprecated.c                            \
        deprecation.c                           \
+       dynstack.c                              \
        dynwind.c                               \
        eq.c                                    \
        error.c                                 \
@@ -148,11 +148,11 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES =                           \
        finalizers.c                            \
        fluids.c                                \
        foreign.c                               \
+       foreign-object.c                        \
        fports.c                                \
        frames.c                                \
        gc-malloc.c                             \
        gc.c                                    \
-       gdbint.c                                \
        gettext.c                               \
        generalized-arrays.c                    \
        generalized-vectors.c                   \
@@ -170,13 +170,13 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES =                           \
        keywords.c                              \
        list.c                                  \
        load.c                                  \
+       loader.c                                \
        macros.c                                \
        mallocs.c                               \
        memoize.c                               \
        modules.c                               \
        null-threads.c                          \
        numbers.c                               \
-       objcodes.c                              \
        objprop.c                               \
        options.c                               \
        pairs.c                                 \
@@ -215,6 +215,7 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES =                             \
        threads.c                               \
        throw.c                                 \
        trees.c                                 \
+       unicode.c                               \
        uniform.c                               \
        values.c                                \
        variable.c                              \
@@ -222,7 +223,9 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES =                             \
        version.c                               \
        vm.c                                    \
        vports.c                                \
-       weaks.c
+       weak-set.c                              \
+       weak-table.c                            \
+       weak-vector.c
 
 DOT_X_FILES =                                  \
        alist.x                                 \
@@ -254,6 +257,7 @@ DOT_X_FILES =                                       \
        fluids.x                                \
        foreign.x                               \
        fports.x                                \
+       frames.x                                \
        gc-malloc.x                             \
        gc.x                                    \
        gettext.x                               \
@@ -267,10 +271,12 @@ DOT_X_FILES =                                     \
        hooks.x                                 \
        i18n.x                                  \
        init.x                                  \
+       instructions.x                          \
        ioext.x                                 \
        keywords.x                              \
        list.x                                  \
        load.x                                  \
+       loader.x                                \
        macros.x                                \
        mallocs.x                               \
        memoize.x                               \
@@ -283,6 +289,7 @@ DOT_X_FILES =                                       \
        print.x                                 \
        procprop.x                              \
        procs.x                                 \
+       programs.x                              \
        promises.x                              \
        r6rs-ports.x                            \
        random.x                                \
@@ -312,16 +319,17 @@ DOT_X_FILES =                                     \
        threads.x                               \
        throw.x                                 \
        trees.x                                 \
+       unicode.x                               \
        uniform.x                               \
        values.x                                \
        variable.x                              \
        vectors.x                               \
        version.x                               \
+       vm.x                                    \
        vports.x                                \
-       weaks.x
-
-# vm-related snarfs
-DOT_X_FILES += frames.x instructions.x objcodes.x programs.x vm.x
+       weak-set.x                              \
+       weak-table.x                            \
+       weak-vector.x
 
 EXTRA_DOT_X_FILES = @EXTRA_DOT_X_FILES@
 
@@ -413,24 +421,31 @@ DOT_DOC_FILES =                           \
        threads.doc                             \
        throw.doc                               \
        trees.doc                               \
+       unicode.doc                             \
        uniform.doc                             \
        values.doc                              \
        variable.doc                            \
        vectors.doc                             \
        version.doc                             \
        vports.doc                              \
-       weaks.doc
+       weak-set.doc                            \
+       weak-table.doc                          \
+       weak-vector.doc
 
 EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@
 
-DOT_I_FILES = vm-i-system.i vm-i-scheme.i vm-i-loader.i
-
-.c.i:
-       $(AM_V_GEN)$(GREP) '^VM_DEFINE' $< > $@
+vm-operations.h: vm-engine.c
+       @echo '/* This file was generated automatically from $<; do not' > $@
+       @echo '   edit.  See the source file for copyright information.  */' >> $@
+       @echo '' >> $@
+       @echo "#define FOR_EACH_VM_OPERATION(M) \\" >> $@
+       $(AM_V_GEN)$(GREP) '^ *VM_DEFINE_OP' $< \
+       | sed -e 's,VM_DEFINE_OP (\(.*\)).*,  M (\1) \\,' >> $@
+       @echo '' >> $@
 
 BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h \
     scmconfig.h \
-    $(DOT_I_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES)
+    $(DOT_I_FILES) vm-operations.h $(DOT_X_FILES) $(EXTRA_DOT_X_FILES)
 
 # Force the generation of `guile-procedures.texi' because the top-level
 # Makefile expects it to be built.
@@ -450,9 +465,9 @@ EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = _scm.h                \
 install-exec-hook:
        rm -f $(DESTDIR)$(bindir)/guile-snarf.awk
 
-install-data-hook: libguile-2.0-gdb.scm
+install-data-hook: libguile-2.2-gdb.scm
        @$(MKDIR_P) $(DESTDIR)$(libdir)
-## We want to install libguile-2.0-gdb.scm as SOMETHING-gdb.scm.
+## We want to install libguile-2.2-gdb.scm as SOMETHING-gdb.scm.
 ## SOMETHING is the full name of the final library.  We want to ignore
 ## symlinks, the .la file, and any previous -gdb.py file.  This is
 ## inherently fragile, but there does not seem to be a better option,
@@ -475,18 +490,25 @@ $(DESTDIR)$(libdir)/$$libname-gdb.scm";                           \
        $(INSTALL_DATA) "$<"                                    \
            "$(DESTDIR)$(libdir)/$$libname-gdb.scm"
 
+# Remove the GDB support file and the Info 'dir' file that
+# 'install-info' 5.x installs.
+uninstall-hook:
+       -rm "$(DESTDIR)$(libdir)/libguile-@GUILE_EFFECTIVE_VERSION@"*-gdb.scm
+       -rm -f "$(DESTDIR)$(infodir)/dir"
+
 ## This is kind of nasty... there are ".c" files that we don't want to
 ## 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 = conv-integer.i.c conv-uinteger.i.c            \
+                 elf.h                                         \
                  srfi-14.i.c                                   \
                  quicksort.i.c                                  \
                  win32-uname.h                                 \
-                private-gc.h private-options.h ports-internal.h
+                private-options.h ports-internal.h
 
 # vm instructions
-noinst_HEADERS += vm-engine.c vm-i-system.c vm-i-scheme.c vm-i-loader.c
+noinst_HEADERS += vm-engine.c
 
 libguile_@GUILE_EFFECTIVE_VERSION@_la_DEPENDENCIES = @LIBLOBJS@
 
@@ -556,6 +578,7 @@ modinclude_HEADERS =                                \
        deprecated.h                            \
        deprecation.h                           \
        dynl.h                                  \
+       dynstack.h                              \
        dynwind.h                               \
        eq.h                                    \
        error.h                                 \
@@ -568,11 +591,11 @@ modinclude_HEADERS =                              \
        filesys.h                               \
        fluids.h                                \
        foreign.h                               \
+       foreign-object.h                        \
        fports.h                                \
        frames.h                                \
        gc.h                                    \
-       gdb_interface.h                         \
-       gdbint.h                                \
+       gc-inline.h                             \
        gettext.h                               \
        generalized-arrays.h                    \
        generalized-vectors.h                   \
@@ -591,6 +614,7 @@ modinclude_HEADERS =                                \
        keywords.h                              \
        list.h                                  \
        load.h                                  \
+       loader.h                                \
        macros.h                                \
        mallocs.h                               \
        memoize.h                               \
@@ -598,7 +622,6 @@ modinclude_HEADERS =                                \
        net_db.h                                \
        null-threads.h                          \
        numbers.h                               \
-       objcodes.h                              \
        objprop.h                               \
        options.h                               \
        pairs.h                                 \
@@ -644,15 +667,18 @@ modinclude_HEADERS =                              \
        throw.h                                 \
        trees.h                                 \
        validate.h                              \
+       unicode.h                               \
        uniform.h                               \
        values.h                                \
        variable.h                              \
        vectors.h                               \
-       vm-engine.h                             \
+       vm-builtins.h                           \
        vm-expand.h                             \
        vm.h                                    \
        vports.h                                \
-       weaks.h
+       weak-set.h                              \
+       weak-table.h                            \
+       weak-vector.h
 
 nodist_modinclude_HEADERS = version.h scmconfig.h
 
@@ -668,7 +694,7 @@ EXTRA_DIST = ChangeLog-scm ChangeLog-threads                                \
     cpp-E.syms cpp-E.c cpp-SIG.syms cpp-SIG.c                          \
     c-tokenize.lex                                                     \
     scmconfig.h.top libgettext.h unidata_to_charset.pl libguile.map    \
-    libguile-2.0-gdb.scm
+    libguile-2.2-gdb.scm
 #    $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) \
 #    guile-procedures.txt guile.texi
 
@@ -717,7 +743,7 @@ libpath.h: $(srcdir)/Makefile.in  $(top_builddir)/config.status
        $(AM_V_GEN)mv libpath.tmp libpath.h
 
 
-snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
+snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS)
 
 SUFFIXES = .x .doc
 
@@ -736,8 +762,7 @@ load.x: libpath.h
 dynl.x: libpath.h
 
 alldotdocfiles    = $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES)
-snarf2checkedtexi = GUILE_INSTALL_LOCALE=1 GUILE_AUTO_COMPILE=0 \
-       $(top_builddir)/meta/uninstalled-env guild snarf-check-and-output-texi
+snarf2checkedtexi = GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guild snarf-check-and-output-texi
 dotdoc2texi       = cat $(alldotdocfiles) | $(snarf2checkedtexi)
 
 guile.texi: $(alldotdocfiles) guile$(EXEEXT)
@@ -811,7 +836,6 @@ chknew-E chknew-SIG:                                                \
 MOSTLYCLEANFILES = \
        scmconfig.h scmconfig.h.tmp
 
-CLEANFILES = libpath.h *.x *.doc guile-procedures.txt guile-procedures.texi guile.texi \
-       vm-i-*.i
+CLEANFILES = libpath.h *.x *.doc guile-procedures.txt guile-procedures.texi guile.texi
 
 MAINTAINERCLEANFILES = c-tokenize.c