Regenerate charmonizer.c

Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/c27fdf42
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/c27fdf42
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/c27fdf42

Branch: refs/heads/c-bindings-wip2
Commit: c27fdf420f2afd66c8377f76aac2da122d4b3ac5
Parents: 7ec1cb8
Author: Nick Wellnhofer <[email protected]>
Authored: Sun Feb 24 19:56:02 2013 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Sun Feb 24 20:43:56 2013 +0100

----------------------------------------------------------------------
 common/charmonizer.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/c27fdf42/common/charmonizer.c
----------------------------------------------------------------------
diff --git a/common/charmonizer.c b/common/charmonizer.c
index b03944f..dd905ea 100644
--- a/common/charmonizer.c
+++ b/common/charmonizer.c
@@ -5976,12 +5976,17 @@ S_write_makefile() {
     chaz_MakeVar_append(var, "$(AUTOGEN_DIR)" DIR_SEP "source" DIR_SEP
                         "parcel$(OBJ_EXT)");
 
+    chaz_MakeFile_add_var(makefile, "TEST_LUCY_OBJS",
+                          "t" DIR_SEP "test_lucy$(OBJ_EXT)");
+
     /* Executables */
 
     chaz_MakeFile_add_var(makefile, "LEMON_EXE",
                           "$(LEMON_DIR)" DIR_SEP "lemon$(EXE_EXT)");
     chaz_MakeFile_add_var(makefile, "CFC_EXE",
                           "$(CFC_DIR)" DIR_SEP "cfc$(EXE_EXT)");
+    chaz_MakeFile_add_var(makefile, "TEST_LUCY_EXE",
+                          "t" DIR_SEP "test_lucy$(EXE_EXT)");
 
     /* Shared library */
 
@@ -6014,6 +6019,15 @@ S_write_makefile() {
 
     chaz_MakeFile_add_shared_obj(makefile, "$(LUCY_SHOBJ)", "$(LUCY_OBJS)");
 
+    chaz_MakeFile_add_rule(makefile, "$(TEST_LUCY_OBJS)", "$(AUTOGEN_DIR)");
+
+    rule = chaz_MakeFile_add_exe(makefile, "$(TEST_LUCY_EXE)",
+                                 "$(TEST_LUCY_OBJS)", "-L. -llucy");
+    chaz_MakeRule_add_prereq(rule, "$(LUCY_SHOBJ)");
+
+    rule = chaz_MakeFile_add_rule(makefile, "test", "$(TEST_LUCY_EXE)");
+    chaz_MakeRule_add_command(rule, "$(TEST_LUCY_EXE)");
+
     chaz_MakeFile_add_to_cleanup(makefile, "$(LUCY_OBJS)");
     chaz_MakeFile_add_to_cleanup(makefile, "$(AUTOGEN_DIR)");
     chaz_MakeFile_add_to_cleanup(makefile, json_parser_h);

Reply via email to