aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-02-08 11:05:21 +0100
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-02-08 11:05:21 +0100
commitac9bad12d159288eeaf704da3aeed63a859339cf (patch)
tree9d61481c32b9097a3618ffbd069f32748d0cb486
parent35653e6bd56e589a0525c3012a16353420375a6f (diff)
downloadegawk-ac9bad12d159288eeaf704da3aeed63a859339cf.tar.gz
egawk-ac9bad12d159288eeaf704da3aeed63a859339cf.tar.bz2
egawk-ac9bad12d159288eeaf704da3aeed63a859339cf.zip
Explained how to get gawk built with CMake.
-rw-r--r--cmake/README.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/cmake/README.txt b/cmake/README.txt
index 836a4be4..aae024c6 100644
--- a/cmake/README.txt
+++ b/cmake/README.txt
@@ -8,3 +8,36 @@ should do this, read
Why the KDE project switched to CMake -- and how
http://lwn.net/Articles/188693/
+- How can I get gawk compiled with CMake as fast as possible ?
+ git clone git://git.savannah.gnu.org/gawk.git
+ cd gawk
+ git checkout cmake
+ mkdir build
+ cd build
+ cmake ..
+ make
+ ./gawk --version
+Notice that this git-checkout allows you to read the source code,
+track the cmake branch and get updates. You will not be able to
+commit anything. http://savannah.gnu.org/maintenance/UsingGit
+
+- What is the current status of the cmake branch ?
+It has just begun, pre-alpha, unclear if it will ever be taken up
+by the maintainer. We want to study if using CMake with such a
+basic tool like gawk is feasible and if it easier to use than
+the GNU build system.
+
+- Where can I find a tutorial on CMake basics ?
+Use the "official tutorial":
+ http://www.cmake.org/cmake/help/cmake_tutorial.html
+
+- Where is the reference of all commands and variables ?
+Depending on the CMake version you use, select one of these:
+ http://www.cmake.org/cmake/help/v2.8.10/cmake.html
+
+- How can I cross-compile ?
+Proceed in the same way as explained above for native compilation,
+but use a different build directory. When using CMake, do this:
+ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain_mingw32.cmake ..
+Write a new Toolchain file for your cross-compiler and use it.
+