From 1c9e9e85d4a4001a867637986a2fd2fa4b7a44f9 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 5 Nov 2012 23:32:21 +0700 Subject: [PATCH] #1 --- README.md | 4 +++- binding.gyp | 2 +- tcejdb/testejdb/Makefile | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0790835..6867fab 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ One snippet intro --------------------------------- ```JavaScript var EJDB = require("ejdb"); +//Open zoo DB var jb = EJDB.open("zoo", EJDB.DEFAULT_OPEN_MODE | EJDB.JBOTRUNC); var parrot1 = { @@ -66,7 +67,7 @@ jb.save("parrots", [parrot1, parrot2], function(err, oids) { console.log(cursor.field("name") + " likes toys!"); } cursor.close(); //It's not mandatory to close cursor explicitly - jb.close(); //Close database + jb.close(); //Close the database }); }); ``` @@ -75,6 +76,7 @@ Installation -------------------------------- **System libraries:** +* g++ * cunit * zlib diff --git a/binding.gyp b/binding.gyp index 4801c14..25f658c 100644 --- a/binding.gyp +++ b/binding.gyp @@ -29,7 +29,7 @@ '-L../tcejdb', '-Wl,-Bstatic -ltcejdb', '-Wl,-Bdynamic', - '-lbz2 -lz -lrt -lpthread -lm -lc' + '-lz -lrt -lpthread -lm -lc' ] }], ], diff --git a/tcejdb/testejdb/Makefile b/tcejdb/testejdb/Makefile index c412640..f3d54c6 100644 --- a/tcejdb/testejdb/Makefile +++ b/tcejdb/testejdb/Makefile @@ -4,7 +4,7 @@ CPPFLAGS = -I. -I.. -DDEBUG -D_DEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS CFLAGS = -std=c99 -Wall -fPIC -pedantic -fsigned-char -g -O0 LDFLAGS = -L. -L.. CMDLDFLAGS = -LIBS = -lbz2 -lz -lrt -lpthread -lm -lc -lcunit +LIBS = -lz -lrt -lpthread -lm -lc -lcunit RUNENV = LD_LIBRARY_PATH=.:.. TESTS = t1 t2 t3 -- 2.7.4