diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-23 17:20:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-23 17:20:00 +0200 |
commit | 8a3cee6930e816820ca4aea06667bcceb8cf4994 (patch) | |
tree | 825dd781cb4553359b1e0ee6726063e3f052c2cf | |
parent | a8a4f6a5c6f3b7ef5c7b8102ad8604e8fb764cf4 (diff) |
Add INSTALL file
-rw-r--r-- | INSTALL | 60 | ||||
-rw-r--r-- | makefile | 2 |
2 files changed, 61 insertions, 1 deletions
@@ -0,0 +1,60 @@ +Prerequisites +============= + + - GNU g++ >= 4.5.0 http://gcc.gnu.org/ + - libcutl http://www.codesynthesis.com/projects/libcutl/ + +Building on UNIX +================ + +The following build instructions are for the Linux/UNIX/Mac OS X +operating systems. + +The standard autotools-based build system is used on these platforms. +After unpacking the source code archive, change to the odb package +directory (referred to as odb/ from now on) and run the configure +script: + +./configure + +To see the available configuration options run configure with --help: + +./configure --help + +The configure script expects the libcutl headers and libraries to be +installed in a directory where the C++ compiler and linker will search +for them by default (normally /usr and /usr/local). If libcutl is +installed in another directory, you can use the CPPFLAGS and LDFLAGS +configure variables to specify its location, for example: + +./configure CPPFLAGS=-I/opt/libcutl/include LDFLAGS=-L/opt/libcutl/lib + +If libcutl is not installed and you would like to use its build +directory instead, you can use the --with-libcutl configure option +to specify its location, for example: + +./configure --with-libcutl=/tmp/libcutl + +As another example, the following configure command uses the specified +GNU g++ compiler and compiles with optimization and without the debug +information: + +./configure CXX=g++-4.5 CXXFLAGS=-O3 + +Once configuration is complete, run make to build odb: + +make + +Once the build completes successfully, you can install odb using the install +target (you may need to do this step as root depending on the installation +directory): + +make install + + +Building on Windows +=================== + +Building odb on Windows involves a custom build procedure. Consider +using the pre-compiled binary distribution of odb for Windows or write +to odb-users@codesynthesis.com for more information. @@ -14,7 +14,7 @@ clean := $(out_base)/.clean $(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs))) $(dist): export dirs := $(dirs) -$(dist): export docs := GPLv3 LICENSE README NEWS version +$(dist): export docs := GPLv3 LICENSE README INSTALL NEWS version $(dist): data_dist := $(dist): exec_dist := bootstrap $(dist): export extra_dist := $(data_dist) $(exec_dist) |