You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/03/09 18:14:55 UTC
[lucy-commits] [9/16] git commit: refs/heads/c-bindings-wip3 - Regenerate
charmonizer.c
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/4e5a61d4
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/4e5a61d4
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/4e5a61d4
Branch: refs/heads/c-bindings-wip3
Commit: 4e5a61d4e0dfebe2dcd56047db41dbc186f3dabf
Parents: 985b469
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Feb 24 19:56:02 2013 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat Mar 9 17:51:55 2013 +0100
----------------------------------------------------------------------
common/charmonizer.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/4e5a61d4/common/charmonizer.c
----------------------------------------------------------------------
diff --git a/common/charmonizer.c b/common/charmonizer.c
index 2c482e0..491b6db 100644
--- a/common/charmonizer.c
+++ b/common/charmonizer.c
@@ -6020,12 +6020,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 */
@@ -6059,6 +6064,16 @@ 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, "$(TEST_LUCY_OBJS)");
chaz_MakeFile_add_to_cleanup(makefile, "$(LUCY_OBJS)");
chaz_MakeFile_add_to_cleanup(makefile, json_parser_h);
chaz_MakeFile_add_to_cleanup(makefile, json_parser_c);