mirror of https://gitee.com/bigwinds/arangodb
cleanup of Makefiles, added caveat section
This commit is contained in:
parent
17b333ffbf
commit
132fc3776d
40
Makefile.am
40
Makefile.am
|
@ -1,15 +1,39 @@
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
AM_CFLAGS =
|
AM_CPPFLAGS = \
|
||||||
AM_CXXFLAGS =
|
-D_SYSCONFDIR_='"${sysconfdir}"' \
|
||||||
AM_CPPFLAGS = -D_SYSCONFDIR_='"${sysconfdir}"' -D_PKGDATADIR_='"${pkgdatadir}"' -D_DATABASEDIR_='"${localstatedir}/${PACKAGE_TARNAME}"'
|
-D_PKGDATADIR_='"${pkgdatadir}"' \
|
||||||
AM_LDFLAGS =
|
-D_DATABASEDIR_='"${localstatedir}/${PACKAGE_TARNAME}"' \
|
||||||
|
@BOOST_CPPFLAGS@ \
|
||||||
|
@LIBEV_CPPFLAGS@ \
|
||||||
|
@MATH_CPPFLAGS@ \
|
||||||
|
@NCURSES_CPPFLAGS@ \
|
||||||
|
@OPENSSL_CPPFLAGS@ \
|
||||||
|
@READLINE_CPPFLAGS@ \
|
||||||
|
@V8_CPPFLAGS@
|
||||||
|
|
||||||
|
AM_LDFLAGS = \
|
||||||
|
@BOOST_LDFLAGS@ \
|
||||||
|
@LIBEV_LDFLAGS@ \
|
||||||
|
@MATH_LDFLAGS@ \
|
||||||
|
@NCURSES_LDFLAGS@ \
|
||||||
|
@OPENSSL_LDFLAGS@ \
|
||||||
|
@READLINE_LDFLAGS@ \
|
||||||
|
@V8_LDFLAGS@
|
||||||
|
|
||||||
|
LIBS = \
|
||||||
|
@BOOST_LIBS@ \
|
||||||
|
@LIBEV_LIBS@ \
|
||||||
|
@MATH_LIBS@ \
|
||||||
|
@NCURSES_LIBS@ \
|
||||||
|
@OPENSSL_LIBS@ \
|
||||||
|
@READLINE_LIBS@ \
|
||||||
|
@V8_LIBS@
|
||||||
|
|
||||||
BUILT_SOURCES =
|
BUILT_SOURCES =
|
||||||
CLEANUP =
|
CLEANUP =
|
||||||
LIBS =
|
|
||||||
|
|
||||||
noinst_LIBRARIES = libavocadodb.a
|
sbin_PROGRAMS = avocado
|
||||||
bin_PROGRAMS = avocado
|
|
||||||
|
|
||||||
nobase_pkgdata_DATA = \
|
nobase_pkgdata_DATA = \
|
||||||
$(shell find @srcdir@/js/system -name "*.js" -print) \
|
$(shell find @srcdir@/js/system -name "*.js" -print) \
|
||||||
|
@ -25,7 +49,7 @@ install-data-local:
|
||||||
test -d @localstatedir@//${PACKAGE_TARNAME} || mkdir -p @localstatedir@//${PACKAGE_TARNAME}
|
test -d @localstatedir@//${PACKAGE_TARNAME} || mkdir -p @localstatedir@//${PACKAGE_TARNAME}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## avocado
|
## avocadodb
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
include Makefile.files
|
include Makefile.files
|
||||||
|
|
|
@ -54,6 +54,6 @@ wiki: $(WIKI)
|
||||||
## CLEANUP
|
## CLEANUP
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
CLEANUP += $(DOXYGEN) $(WIKI)
|
CLEANUP += $(DOXYGEN) $(WIKI) $(subst Doxygen/xml,Doxygen/wiki,$(WIKI))
|
||||||
|
|
||||||
|
|
||||||
|
|
105
Makefile.files
105
Makefile.files
|
@ -4,17 +4,7 @@
|
||||||
## avocadodb
|
## avocadodb
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
libavocadodb_a_CPPFLAGS = \
|
avocado_SOURCES = \
|
||||||
$(AM_CPPFLAGS) \
|
|
||||||
@BOOST_CPPFLAGS@ \
|
|
||||||
@LIBEV_CPPFLAGS@ \
|
|
||||||
@MATH_CPPFLAGS@ \
|
|
||||||
@NCURSES_CPPFLAGS@ \
|
|
||||||
@OPENSSL_CPPFLAGS@ \
|
|
||||||
@READLINE_CPPFLAGS@ \
|
|
||||||
@V8_CPPFLAGS@
|
|
||||||
|
|
||||||
libavocadodb_a_SOURCES = \
|
|
||||||
Admin/ApplicationAdminServer.cpp \
|
Admin/ApplicationAdminServer.cpp \
|
||||||
Admin/RestAdminBaseHandler.cpp \
|
Admin/RestAdminBaseHandler.cpp \
|
||||||
Admin/RestAdminFeConfigurationHandler.cpp \
|
Admin/RestAdminFeConfigurationHandler.cpp \
|
||||||
|
@ -99,6 +89,16 @@ libavocadodb_a_SOURCES = \
|
||||||
Logger/LoggerStream.cpp \
|
Logger/LoggerStream.cpp \
|
||||||
Logger/LoggerTiming.cpp \
|
Logger/LoggerTiming.cpp \
|
||||||
ProgramOptions/program-options.c \
|
ProgramOptions/program-options.c \
|
||||||
|
QL/ParserWrapper.cpp \
|
||||||
|
QL/ast-node.c \
|
||||||
|
QL/ast-query.c \
|
||||||
|
QL/error.c \
|
||||||
|
QL/formatter.c \
|
||||||
|
QL/javascripter.c \
|
||||||
|
QL/optimize.c \
|
||||||
|
QL/parser-context.c \
|
||||||
|
QL/parser.c \
|
||||||
|
QL/tokens.c \
|
||||||
Rest/AddressPort.cpp \
|
Rest/AddressPort.cpp \
|
||||||
Rest/AnyServer.cpp \
|
Rest/AnyServer.cpp \
|
||||||
Rest/HttpRequest.cpp \
|
Rest/HttpRequest.cpp \
|
||||||
|
@ -106,6 +106,16 @@ libavocadodb_a_SOURCES = \
|
||||||
Rest/Initialise.cpp \
|
Rest/Initialise.cpp \
|
||||||
Rest/SslInterface.cpp \
|
Rest/SslInterface.cpp \
|
||||||
Rest/Url.cpp \
|
Rest/Url.cpp \
|
||||||
|
RestHandler/RestActionHandler.cpp \
|
||||||
|
RestHandler/RestDocumentHandler.cpp \
|
||||||
|
RestHandler/RestSystemActionHandler.cpp \
|
||||||
|
RestHandler/RestVocbaseBaseHandler.cpp \
|
||||||
|
RestServer/ActionDispatcherThread.cpp \
|
||||||
|
RestServer/AvocadoHttpServer.cpp \
|
||||||
|
RestServer/AvocadoServer.cpp \
|
||||||
|
RestServer/JSLoader.cpp \
|
||||||
|
RestServer/SystemActionDispatcherThread.cpp \
|
||||||
|
RestServer/avocado.cpp \
|
||||||
ResultGenerator/HtmlResultGenerator.cpp \
|
ResultGenerator/HtmlResultGenerator.cpp \
|
||||||
ResultGenerator/Initialise.cpp \
|
ResultGenerator/Initialise.cpp \
|
||||||
ResultGenerator/JsonResultGenerator.cpp \
|
ResultGenerator/JsonResultGenerator.cpp \
|
||||||
|
@ -130,11 +140,11 @@ libavocadodb_a_SOURCES = \
|
||||||
ShapedJson/shape-accessor.c \
|
ShapedJson/shape-accessor.c \
|
||||||
ShapedJson/shaped-json.c \
|
ShapedJson/shaped-json.c \
|
||||||
V8/v8-actions.cpp \
|
V8/v8-actions.cpp \
|
||||||
|
V8/v8-conv.cpp \
|
||||||
V8/v8-json.cpp \
|
V8/v8-json.cpp \
|
||||||
|
V8/v8-line-editor.cpp \
|
||||||
V8/v8-shell.cpp \
|
V8/v8-shell.cpp \
|
||||||
V8/v8-utils.cpp \
|
V8/v8-utils.cpp \
|
||||||
V8/v8-conv.cpp \
|
|
||||||
V8/v8-line-editor.cpp \
|
|
||||||
V8/v8-vocbase.cpp \
|
V8/v8-vocbase.cpp \
|
||||||
Variant/VariantArray.cpp \
|
Variant/VariantArray.cpp \
|
||||||
Variant/VariantBlob.cpp \
|
Variant/VariantBlob.cpp \
|
||||||
|
@ -156,79 +166,25 @@ libavocadodb_a_SOURCES = \
|
||||||
Variant/VariantUInt64.cpp \
|
Variant/VariantUInt64.cpp \
|
||||||
Variant/VariantUInt8.cpp \
|
Variant/VariantUInt8.cpp \
|
||||||
Variant/VariantVector.cpp \
|
Variant/VariantVector.cpp \
|
||||||
VocBase/data-feeder.c \
|
|
||||||
VocBase/join-execute.c \
|
|
||||||
VocBase/order.c \
|
|
||||||
VocBase/blob-collection.c \
|
VocBase/blob-collection.c \
|
||||||
VocBase/collection.c \
|
VocBase/collection.c \
|
||||||
VocBase/compactor.c \
|
VocBase/compactor.c \
|
||||||
|
VocBase/data-feeder.c \
|
||||||
VocBase/datafile.c \
|
VocBase/datafile.c \
|
||||||
VocBase/document-collection.c \
|
VocBase/document-collection.c \
|
||||||
VocBase/fluent-query.c \
|
VocBase/fluent-query.c \
|
||||||
VocBase/select-result.c \
|
|
||||||
VocBase/join.c \
|
|
||||||
VocBase/query.c \
|
|
||||||
VocBase/headers.c \
|
VocBase/headers.c \
|
||||||
VocBase/index.c \
|
VocBase/index.c \
|
||||||
|
VocBase/join-execute.c \
|
||||||
|
VocBase/join.c \
|
||||||
|
VocBase/order.c \
|
||||||
|
VocBase/query.c \
|
||||||
VocBase/result-set.c \
|
VocBase/result-set.c \
|
||||||
|
VocBase/select-result.c \
|
||||||
VocBase/simple-collection.c \
|
VocBase/simple-collection.c \
|
||||||
VocBase/synchroniser.c \
|
VocBase/synchroniser.c \
|
||||||
VocBase/voc-shaper.c \
|
VocBase/voc-shaper.c \
|
||||||
VocBase/vocbase.c \
|
VocBase/vocbase.c
|
||||||
QL/ParserWrapper.cpp \
|
|
||||||
QL/ast-node.c \
|
|
||||||
QL/ast-query.c \
|
|
||||||
QL/error.c \
|
|
||||||
QL/formatter.c \
|
|
||||||
QL/javascripter.c \
|
|
||||||
QL/optimize.c \
|
|
||||||
QL/parser-context.c \
|
|
||||||
QL/parser.c \
|
|
||||||
QL/tokens.c
|
|
||||||
|
|
||||||
avocado_CPPFLAGS = \
|
|
||||||
$(AM_CPPFLAGS) \
|
|
||||||
@BOOST_CPPFLAGS@ \
|
|
||||||
@LIBEV_CPPFLAGS@ \
|
|
||||||
@MATH_CPPFLAGS@ \
|
|
||||||
@NCURSES_CPPFLAGS@ \
|
|
||||||
@OPENSSL_CPPFLAGS@ \
|
|
||||||
@READLINE_CPPFLAGS@ \
|
|
||||||
@V8_CPPFLAGS@
|
|
||||||
|
|
||||||
avocado_LDFLAGS = \
|
|
||||||
-L. \
|
|
||||||
@BOOST_LDFLAGS@ \
|
|
||||||
@LIBEV_LDFLAGS@ \
|
|
||||||
@MATH_LDFLAGS@ \
|
|
||||||
@NCURSES_LDFLAGS@ \
|
|
||||||
@OPENSSL_LDFLAGS@ \
|
|
||||||
@READLINE_LDFLAGS@ \
|
|
||||||
@V8_LDFLAGS@
|
|
||||||
|
|
||||||
avocado_LDADD = \
|
|
||||||
-lavocadodb \
|
|
||||||
@BOOST_LIBS@ \
|
|
||||||
@LIBEV_LIBS@ \
|
|
||||||
@MATH_LIBS@ \
|
|
||||||
@NCURSES_LIBS@ \
|
|
||||||
@OPENSSL_LIBS@ \
|
|
||||||
@READLINE_LIBS@ \
|
|
||||||
@V8_LIBS@
|
|
||||||
|
|
||||||
avocado_DEPENDENCIES = @builddir@/libavocadodb.a
|
|
||||||
|
|
||||||
avocado_SOURCES = \
|
|
||||||
RestHandler/RestActionHandler.cpp \
|
|
||||||
RestHandler/RestDocumentHandler.cpp \
|
|
||||||
RestHandler/RestSystemActionHandler.cpp \
|
|
||||||
RestHandler/RestVocbaseBaseHandler.cpp \
|
|
||||||
RestServer/ActionDispatcherThread.cpp \
|
|
||||||
RestServer/AvocadoHttpServer.cpp \
|
|
||||||
RestServer/AvocadoServer.cpp \
|
|
||||||
RestServer/JSLoader.cpp \
|
|
||||||
RestServer/SystemActionDispatcherThread.cpp \
|
|
||||||
RestServer/avocado.cpp
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## JavaScript source code as header
|
## JavaScript source code as header
|
||||||
|
@ -243,7 +199,6 @@ JAVASCRIPT_HEADER = \
|
||||||
js/server/js-json.h \
|
js/server/js-json.h \
|
||||||
js/server/js-shell.h
|
js/server/js-shell.h
|
||||||
|
|
||||||
|
|
||||||
BUILT_SOURCES += $(JAVASCRIPT_HEADER)
|
BUILT_SOURCES += $(JAVASCRIPT_HEADER)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
21
README.md
21
README.md
|
@ -14,15 +14,24 @@ effort to operate for the administrator.
|
||||||
5. create a directory `/var/lib/avocado` where you are allowed to read and write
|
5. create a directory `/var/lib/avocado` where you are allowed to read and write
|
||||||
6. "./avocado /var/lib/avocado" to start a REST server or "./avocado /var/lib/avocado --shell" for debugging
|
6. "./avocado /var/lib/avocado" to start a REST server or "./avocado /var/lib/avocado --shell" for debugging
|
||||||
|
|
||||||
### Mac OS X Hints
|
|
||||||
|
|
||||||
If you install AvocadoDB on Mac OS X we collected some hints for you:
|
|
||||||
|
|
||||||
* The version of bison delivered with OS X is out of date. Update it before installing.
|
|
||||||
|
|
||||||
## First Steps
|
## First Steps
|
||||||
|
|
||||||
./avocado --shell
|
./avocado --shell
|
||||||
avocado> db.examples.count();
|
avocado> db.examples.count();
|
||||||
avocado> db.examples.save({ Hallo: "World" });
|
avocado> db.examples.save({ Hallo: "World" });
|
||||||
avocado> db.examples.select();
|
avocado> db.examples.select();
|
||||||
|
|
||||||
|
## Caveat
|
||||||
|
|
||||||
|
Please note that this is a very early version if AvocadoDB. There will be
|
||||||
|
bugs and we'd realy appreciate it if you report them:
|
||||||
|
|
||||||
|
https://github.com/triAGENS/AvocadoDB/issues
|
||||||
|
|
||||||
|
To start AvocadoDB, run:
|
||||||
|
|
||||||
|
avocado
|
||||||
|
|
||||||
|
To start AvocadoDB with an interactive (REPL) shell, run:
|
||||||
|
|
||||||
|
avocado --shell
|
||||||
|
|
Loading…
Reference in New Issue