summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2012-10-29 07:05:21 +0000
committerPaul Smith <psmith@gnu.org>2012-10-29 07:05:21 +0000
commit7670c84f7732db29f5a9d9c145c2327f4b575f91 (patch)
tree1fafd8949c867b89444ef57c6d068e7b8fb1a70e /main.c
parent2efd6b47bf59c3202ccc6218b42ba360136d3789 (diff)
downloadgunmake-7670c84f7732db29f5a9d9c145c2327f4b575f91.tar.gz
Implement new "load" directive.
Provides support for dynamically loadable objects in GNU make, as a "technology preview".
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/main.c b/main.c
index a6d1454..7bcc07a 100644
--- a/main.c
+++ b/main.c
@@ -1149,6 +1149,12 @@ main (int argc, char **argv, char **envp)
#ifdef MAKE_SYMLINKS
" check-symlink"
#endif
+#ifdef HAVE_GUILE
+ " guile"
+#endif
+#ifdef MAKE_LOAD
+ " load"
+#endif
;
define_variable_cname (".FEATURES", features, o_default, 0);
@@ -1156,7 +1162,7 @@ main (int argc, char **argv, char **envp)
#ifdef HAVE_GUILE
/* Configure GNU Guile support */
- setup_guile ();
+ guile_gmake_setup (NILF);
#endif
/* Read in variables from the environment. It is important that this be
@@ -1661,8 +1667,7 @@ main (int argc, char **argv, char **envp)
/* Read all the makefiles. */
- read_makefiles
- = read_all_makefiles (makefiles == 0 ? 0 : makefiles->list);
+ read_makefiles = read_all_makefiles (makefiles == 0 ? 0 : makefiles->list);
#ifdef WINDOWS32
/* look one last time after reading all Makefiles */
@@ -3271,7 +3276,7 @@ die (int status)
if (directory_before_chdir != 0)
{
/* If it fails we don't care: shut up GCC. */
- int _x;
+ int _x UNUSED;
_x = chdir (directory_before_chdir);
}